Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS/Crypto gold? You can purchase vouchers from other users
  • How to check if potion is active


    Zalina

    Recommended Posts

    Like the title states. How can I check if a potion is currently active so I don't drink potions if they're already active?

    Ive figured it out, Ive simply opened tools->Game Explorer->Player settings
    I drank the potion I needed and it updates the id for the potions.
     

    if (PlayerSettings.getConfig(102) != 0) //Means potion is active

    102 in this case is for antidote++
     

    Link to comment
    Share on other sites

    I'm not sure if there is a PlayerSetting / varbit for that, but you can check by manually checking the time since you last took one, or use the ChatListener to see when it wears off?

    Link to comment
    Share on other sites

    I've already thought about doing it manually, but I was just hoping there is an easier way to check if its active. How can I check if there is a playerSettings for that. I've seen something about it online but have no idea about what id's are for what.

    Link to comment
    Share on other sites

    1 hour ago, Zalina said:

    I've already thought about doing it manually, but I was just hoping there is an easier way to check if its active. How can I check if there is a playerSettings for that. I've seen something about it online but have no idea about what id's are for what.

    I'm not really aware of any way that's easier than that, you can find playersettings and varbit in the Game Explorer (you can watch recent changes and take a potion to see if any are added).

    Link to comment
    Share on other sites

    Archived

    This topic is now archived and is closed to further replies.

    ×
    ×
    • Create New...

    Important Information

    We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.