Zalina 0 Share Posted April 10, 2021 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 More sharing options...
Pandemic 2675 Share Posted April 10, 2021 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 More sharing options...
Zalina 0 Author Share Posted April 10, 2021 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 More sharing options...
Pandemic 2675 Share Posted April 10, 2021 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.