TheAppFoundry 11 Posted August 13, 2017 I'm developing a GDK script that uses a glory for teleporting. It will open up the equipment tab and then, item.interact("Edgeville"); So it will right click the amulet and click on Edgeville.This works.. MOST of the time. After a few hours it will accidentally (misclick) teleport to Karamja. This is one of my last bugs and I don't think it's even a bug of mine. getEquipment().open(); sleepUntil(() -> getEquipment().open(), randNumber.nextInt(7500) + 5000); getEquipment().getItemInSlot((EquipmentSlot.AMULET).getSlot()).interact("Edgeville");
TheMcPker 74 Posted August 13, 2017 even tho its not a very good solution you can have a area in karamja and if you are in that area you try teleport again to edgevile or use the getMouse and manually click the amulet+teleport
LogicSoup 92 Posted August 14, 2017 just use this dude????? public boolean interact(EquipmentSlot slot, java.lang.String action) Interacts with the slot specified with the action specified Parameters: slot - action - Returns:] https://dreambot.org/javadocs/org/dreambot/api/methods/container/impl/equipment/Equipment.html
Rubick 30 Posted August 14, 2017 just use this dude????? public boolean interact(EquipmentSlot slot, java.lang.String action) Interacts with the slot specified with the action specified Parameters: slot - action - Returns:] https://dreambot.org/javadocs/org/dreambot/api/methods/container/impl/equipment/Equipment.html He is. And it's mis-clicking rarely. I have a similar problem with using equipped jewelry actions. I just do what TheMcPker said with the areas. Your own little fail safe.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.