Pyth 127 Share Posted July 14, 2017 Has anyone noticed problems with interacting with ground items that are not showing on top of other items or is it just me? I'm simply using .interact("Take") and it keeps spinning around the camera Example: I cannot take the monk's robe using .interact("Take"), I must trigger a right click on the monk's robe tile (or a ground item that's being rendered on top of the monk's robe) in order to have the menu showing then I am able to interact with it using getClient().getMenu() NOTE: The list on the right is me (NOT THE SCRIPT) right clicking to show you that the item exists as detected by getGroundItems() I just tested the method and it seems to be working fine? Mind showing your code. https://gyazo.com/089d5844e119e77d32311f16856296f6 Edit: I actually copied your situation to the item and it worked perfectly, there is something wrong with your code. https://gyazo.com/2f824857736892a1a6d46dd3316cac05 Link to comment Share on other sites More sharing options...
Nex 2542 Share Posted July 14, 2017 I just tested the method and it seems to be working fine? Mind showing your code. https://gyazo.com/089d5844e119e77d32311f16856296f6 Edit: I actually copied your situation to the item and it worked perfectly, there is something wrong with your code. https://gyazo.com/2f824857736892a1a6d46dd3316cac05 it doesnt happen all the time, but it does happen sometimes. its when the camera cant get a good angle it will keep spinning till item is gone Link to comment Share on other sites More sharing options...
Manly 879 Share Posted July 14, 2017 it doesnt happen all the time, but it does happen sometimes. its when the camera cant get a good angle it will keep spinning till item is gone What if you set the interaction setting to move only? Link to comment Share on other sites More sharing options...
Nex 2542 Share Posted July 14, 2017 What if you set the interaction setting to move only? havent tried i just made it walk first then loot and that worked Link to comment Share on other sites More sharing options...
Scorpius 144 Author Share Posted July 14, 2017 Make it walk ontop of the pile first before looting This is what I'm already doing, it doesn't work. Here's my looting method (It jumps into the else block since the target is not on screen [not rendered]) public boolean interact(String action, Entity target) { if (target.isOnScreen()) { EntityDestination ed = new EntityDestination(getClient(), target); InteractionEvent ie = new InteractionEvent(ed); return ie.interactForceRight(action); } else { return target.interactForceRight(action); } } Link to comment Share on other sites More sharing options...
Nex 2542 Share Posted July 14, 2017 This is what I'm already doing, it doesn't work. Here's my looting method (It jumps into the else block since the target is not on screen [not rendered]) public boolean interact(String action, Entity target) { if (target.isOnScreen()) { EntityDestination ed = new EntityDestination(getClient(), target); InteractionEvent ie = new InteractionEvent(ed); return ie.interactForceRight(action); } else { return target.interactForceRight(action); } } cant really help u if u only post this bit of code, discord me the full code or PM Link to comment Share on other sites More sharing options...
Scorpius 144 Author Share Posted July 15, 2017 cant really help u if u only post this bit of code, discord me the full code or PM Sent you a PM Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.