geoffrey456 Posted May 1, 2017 Share Posted May 1, 2017 https://gyazo.com/3be8c60c73f47341408ef884b7e0df28 Currently!!!! How can i let it drop like thishttps://gyazo.com/54236d18af9705f3012abaa320661f68 I want it to do This pattern kappa Quote Link to comment Share on other sites More sharing options...
The Undefeated Posted May 1, 2017 Share Posted May 1, 2017 s.getInventory().getItemInSlot(0).interact("Drop"); s.getInventory().getItemInSlot(4).interact("Drop"); s.getInventory().getItemInSlot(1).interact("Drop"); s.getInventory().getItemInSlot(5).interact("Drop"); s.getInventory().getItemInSlot(6).interact("Drop"); s.getInventory().getItemInSlot(2).interact("Drop"); Go ahead and use this. Quote Link to comment Share on other sites More sharing options...
Pseudo Posted May 1, 2017 Share Posted May 1, 2017 You just modify your dropping method to drop at specific inventory indices, for example, if the first slot in the inventory is slot 0, then the first on the second line would be 4. So using basic maths principles you can create an algorithm to do the drop > 1 down drop > repeat method you've shown in your second gif. Quote Link to comment Share on other sites More sharing options...
geoffrey456 Posted May 1, 2017 Author Share Posted May 1, 2017 9 minutes ago, The Undefeated said: s.getInventory().getItemInSlot(0).interact("Drop"); s.getInventory().getItemInSlot(4).interact("Drop"); s.getInventory().getItemInSlot(1).interact("Drop"); s.getInventory().getItemInSlot(5).interact("Drop"); s.getInventory().getItemInSlot(6).interact("Drop"); s.getInventory().getItemInSlot(2).interact("Drop"); Go ahead and use this. But if my inv is filled with waterskin and i drops the empty waterskins then i would drop too the skins if u know what i mean? Quote Link to comment Share on other sites More sharing options...
The Undefeated Posted May 1, 2017 Share Posted May 1, 2017 1 minute ago, geoffrey456 said: But if my inv is filled with waterskin and i drops the empty waterskins then i would drop too the skins if u know what i mean? You should just let it drop normally because it won't go any faster. You should use interact if you want to drop items faster but I don't recommend it. Quote Link to comment Share on other sites More sharing options...
geoffrey456 Posted May 1, 2017 Author Share Posted May 1, 2017 1 minute ago, The Undefeated said: You should just let it drop normally because it won't go any faster. You should use interact if you want to drop items faster but I don't recommend it. i don want it to drop faster i want it to change the pattern Like the gif Quote Link to comment Share on other sites More sharing options...
The Undefeated Posted May 1, 2017 Share Posted May 1, 2017 (edited) 4 minutes ago, geoffrey456 said: i don want it to drop faster i want it to change the pattern Like the gif Why? Edited May 1, 2017 by The Undefeated Quote Link to comment Share on other sites More sharing options...
geoffrey456 Posted May 1, 2017 Author Share Posted May 1, 2017 1 minute ago, The Undefeated said: Why? Look first give it 100% a bot xD Quote Link to comment Share on other sites More sharing options...
Juggles Posted May 1, 2017 Share Posted May 1, 2017 Drop 0,4,1,5,2,6etc Quote Link to comment Share on other sites More sharing options...
geoffrey456 Posted May 1, 2017 Author Share Posted May 1, 2017 5 minutes ago, Juggles said: Drop 0,4,1,5,2,6etc but that would trigger to drop water skins when they go up? Quote Link to comment Share on other sites More sharing options...
Pseudo Posted May 1, 2017 Share Posted May 1, 2017 3 minutes ago, geoffrey456 said: but that would trigger to drop water skins when they go up? So write the method to exclude them.. Quote Link to comment Share on other sites More sharing options...
geoffrey456 Posted May 1, 2017 Author Share Posted May 1, 2017 1 minute ago, Pseudo said: So write the method to exclude them.. poor scripter right here! Quote Link to comment Share on other sites More sharing options...
Vilius Posted May 1, 2017 Share Posted May 1, 2017 Damn all of these people cannot show you a simple snippet, smh int[] slot = { 0, 4, 1, 5 }; for(int i : slot){ if(getInventory().getItemInSlot(i).getName().equals("whatever")) getInventory().getItemInSlot(i).interact("Drop"); } Just replace the slot array with the slots you want to be dropped. 3 Quote Link to comment Share on other sites More sharing options...
Pseudo Posted May 1, 2017 Share Posted May 1, 2017 1 minute ago, Vilius said: Damn all of these people cannot show you a simple snippet, smh int[] slot = { 0, 4, 1, 5 }; for(int i : slot){ if(getInventory().getItemInSlot(i).getName().equals("whatever")) getInventory().getItemInSlot(i).interact("Drop"); } Just replace the slot array with the slots you want to be dropped. It's more so just trying to help him understand the code and write it himself; It's not a difficult principle and he obviously hasn't bothered to take the time to try and write it himself. Quote Link to comment Share on other sites More sharing options...
Explv Posted May 1, 2017 Share Posted May 1, 2017 1 hour ago, geoffrey456 said: https://gyazo.com/3be8c60c73f47341408ef884b7e0df28 Currently!!!! How can i let it drop like thishttps://gyazo.com/54236d18af9705f3012abaa320661f68 I want it to do This pattern kappa No idea why you would want to do this (assumes shift drop enabled): private void funkyDropAll(final String itemName) throws InterruptedException { getKeyboard().pressKey(VK_SHIFT); for (int i : new int[]{0, 4, 1, 5, 2, 6, 3, 7, 8, 12, 9, 13, 10, 14, 11, 15, 16, 20, 17, 21, 18, 22, 19, 23, 24, 25, 26, 27}) { Item item = getInventory().getItemInSlot(i); if (item != null && item.getName().equals(itemName)) { getInventory().interact(i); MethodProvider.sleep(random(20, 25)); } } getKeyboard().releaseKey(VK_SHIFT); } 4 Quote Link to comment Share on other sites More sharing options...