get current heal potions

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
cheater
Posts: 33
Joined: Fri Jun 17, 2011 9:17 am

get current heal potions

#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 :)

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: get current heal potions

#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.”
          • Ronald Reagan

cheater
Posts: 33
Joined: Fri Jun 17, 2011 9:17 am

Re: get current heal potions

#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

Re: get current heal potions

#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

Re: get current heal potions

#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?

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: get current heal potions

#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.
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 2 guests