Jump to content

Dodgy Necklace Config


yfoo

Recommended Posts

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 by yfoo
Link to comment
Share on other sites

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");
Link to comment
Share on other sites

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 by Khaleesi
  • Like 1
Link to comment
Share on other sites

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.

  • Like 1
Link to comment
Share on other sites

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:
aqO3zgJ.png

 

Edited by Wacky Jacky
Link to comment
Share on other sites

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:
aqO3zgJ.png

 

Thanks for the info. I eventually ended up with using the equipment check.

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...