-
cheater
- Posts: 33
- Joined: Fri Jun 17, 2011 9:17 am
#1
Post
by cheater » Thu Jul 07, 2011 12:34 pm
how can i get the current healpots in inventory
and how can i get the value of healpotions i saved in my profile? ty

-
rock5
- Posts: 12173
- Joined: Tue Jan 05, 2010 3:30 am
- Location: Australia
#2
Post
by rock5 » Thu Jul 07, 2011 8:53 pm
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")
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:
- “They say hard work never hurt anybody, but I figure, why take the chance.”
-
cheater
- Posts: 33
- Joined: Fri Jun 17, 2011 9:17 am
#3
Post
by cheater » Fri Jul 08, 2011 2:50 am
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

-
wizzyslo
- Posts: 119
- Joined: Sun Nov 01, 2009 6:09 pm
#4
Post
by wizzyslo » Fri Jul 08, 2011 2:57 am
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
-
cheater
- Posts: 33
- Joined: Fri Jun 17, 2011 9:17 am
#5
Post
by cheater » Fri Jul 08, 2011 4:36 am
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?
-
lisa
- Posts: 8332
- Joined: Tue Nov 09, 2010 11:46 pm
- Location: Australia
#6
Post
by lisa » Fri Jul 08, 2011 4:39 am
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.
Who is online
Users browsing this forum: Ahrefs [Bot] and 25 guests