yfoo Posted April 21 Share Posted April 21 (edited) Anyone willing to share how dodgy necklaces charges are detected? Its a persistent value on logout so I'm sure that means its a config. Personally rather use a config than a onMessage solution. Looking at config change history until I figure out the pattern . Edit: Looks like something to do with config 1042. Edited April 21 by yfoo Quote Link to comment Share on other sites More sharing options...
yfoo Posted April 21 Author Share Posted April 21 1042 doesn't work. it increments even when I don't consume a charge. The Runelite plugin doesn't know what the charges are until they are manually checked. Then it starts counting. Pretty sure its checking if I get hit and the stun anim plays (Player height > 230 or whatever). I can use check ammy slot for simplicity equipment.isWearingItem(EquipmentSlot.AMULET, "Dodge necklace"); Quote Link to comment Share on other sites More sharing options...
Khaleesi Posted April 21 Share Posted April 21 (edited) 6 hours ago, yfoo said: Anyone willing to share how dodgy necklaces charges are detected? Its a persistent value on logout so I'm sure that means its a config. Personally rather use a config than a onMessage solution. Looking at config change history until I figure out the pattern . Edit: Looks like something to do with config 1042. Charges like that are usually never stored in configs, you will have to "Check" on it at start to cache it if it's so important And use messages to keep track of charges. or just bring a few and equip a new one if the old one breaks Edited April 21 by Khaleesi 1 Quote Link to comment Share on other sites More sharing options...
Czar Posted April 21 Share Posted April 21 Already answered above but yeah some items don't have any tracking/configs on them including toxic blowpipe, tridents, ring of recoils, dodgy necklaces, BUT with dodgy necklaces it's easier because the item disappears when it runs out so we can always assume a dodgy necklace has >0 charges. On my thiever bot I use dodgy necklaces and I simply ask how many necklaces to bring, usually 3 or so per trip. 1 Quote Link to comment Share on other sites More sharing options...
Wacky Jacky Posted April 25 Share Posted April 25 (edited) For my thiever I just use this: if (!getEquipment().isWearingItem(EquipmentSlot.AMULET) || (getEquipment().getItemInSlot(EquipmentSlot.AMULET.slot) != null) && !getEquipment().getItemInSlot(EquipmentSlot.AMULET.slot).getName().contains("Dodgy necklace")){ t("Need dodgy amulet"); return false; } When it returns false, I run code to check if the inventory contains more of them, and equip it. And if it doesn't just go to the bank and gets some new ones. Like the two gents above already told you. Also, Config 1042 is a very common one that pops up all the time, when interactions are happening or dialog etc. So just ignore that one. Here an example while fishing: Edited April 25 by Wacky Jacky Quote Link to comment Share on other sites More sharing options...
yfoo Posted April 26 Author Share Posted April 26 14 hours ago, Wacky Jacky said: For my thiever I just use this: if (!getEquipment().isWearingItem(EquipmentSlot.AMULET) || (getEquipment().getItemInSlot(EquipmentSlot.AMULET.slot) != null) && !getEquipment().getItemInSlot(EquipmentSlot.AMULET.slot).getName().contains("Dodgy necklace")){ t("Need dodgy amulet"); return false; } When it returns false, I run code to check if the inventory contains more of them, and equip it. And if it doesn't just go to the bank and gets some new ones. Like the two gents above already told you. Also, Config 1042 is a very common one that pops up all the time, when interactions are happening or dialog etc. So just ignore that one. Here an example while fishing: Thanks for the info. I eventually ended up with using the equipment check. 1 Quote Link to comment Share on other sites More sharing options...