Page 1 of 1
get current heal potions
Posted: Thu Jul 07, 2011 12:34 pm
by cheater
how can i get the current healpots in inventory
and how can i get the value of healpotions i saved in my profile? ty

Re: get current heal potions
Posted: Thu Jul 07, 2011 8:53 pm
by rock5
What do you mean? What is it that you are trying to do?
The basic inventory find command is.
Code: Select all
pots = inventory:findItem("PotName")
Re: get current heal potions
Posted: Fri Jul 08, 2011 2:50 am
by cheater
that i found, too.
i want to look in my inventory if there are potions left. if the lvl req is 5 or 55, that doesn't matter. i thought there is a function for that because if i run the bot and he my health is under HP_LOW_POTION the bot tells me that there are no useable potions left. Is that a function or does it checks EVERY potionid?
i hope u understand me

Re: get current heal potions
Posted: Fri Jul 08, 2011 2:57 am
by wizzyslo
What about to chack how much potions do you have them in bag?
Code: Select all
if 20 < inventory:itemTotalCount(itemID) then
..your code...
end
Re: get current heal potions
Posted: Fri Jul 08, 2011 4:36 am
by cheater
i want to use the waypointfile on more than2 chars. both of them use different healthportions. so i need to check about 3 id.. i hoped that there is a functions for this
last question:
is it possible to access the HP_LOW_POTION value that is saved in my profile?
something like player.HP_LOW_POTION?
Re: get current heal potions
Posted: Fri Jul 08, 2011 4:39 am
by lisa
If it says you don't have a usable potion in bags #-# there are a few things to concider.
First is are you using rental bags and haven't adjusted the maximum bag slot number in profile.
Second are you using a potion that isn't listed in rom/database/consumables.xml
Third are you using a client version that is old and the addresses may be incorrect.