May 1, 20178 yr https://gyazo.com/3be8c60c73f47341408ef884b7e0df28 Currently!!!! How can i let it drop like thishttps://gyazo.com/54236d18af9705f3012abaa320661f68 I want it to do This pattern kappa
May 1, 20178 yr 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.
May 1, 20178 yr 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.
May 1, 20178 yr Author 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?
May 1, 20178 yr 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.
May 1, 20178 yr Author 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
May 1, 20178 yr 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, 20178 yr by The Undefeated
May 1, 20178 yr Author 5 minutes ago, Juggles said: Drop 0,4,1,5,2,6etc but that would trigger to drop water skins when they go up?
May 1, 20178 yr 3 minutes ago, geoffrey456 said: but that would trigger to drop water skins when they go up? So write the method to exclude them..
May 1, 20178 yr Author 1 minute ago, Pseudo said: So write the method to exclude them.. poor scripter right here!
May 1, 20178 yr 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.
May 1, 20178 yr 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.
May 1, 20178 yr 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); }
Create an account or sign in to comment