Bot don't use hp potions

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
edecr
Posts: 6
Joined: Mon Jan 28, 2013 6:54 am

Bot don't use hp potions

#1 Post by edecr »

Hello people,

I have a big problem! I started playing the Portuguese version of the game and as I have little time to play, I started using bot rom.
My problem is related to the use of potions hp.
This is the message that appears: "No more (usable) hp potions available at bagslot 1 to 240." I have potions in my bag ;)
Ex: local item = inventory.findItem(200811)
In this case item returns nil, do not use the name of the item because it is in Portuguese and has special characters. Ex: English = "Health Potions" | Portuguse = "Poções de Cura" (ç and õ).
Another function that was tried using inventory.useItem(200811) but this function use findItem too.
Sorry for my bad english, I'm brazilian.
Thank you in advance!
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Bot don't use hp potions

#2 Post by lisa »

it checks for the id aswell, so the name shouldn't be an issue.

Code: Select all

item.Id == itemNameOrId
I suspect you might have an incorrect address for inventory.
save this file to the rom/userfunctions folder
userfunction_printinventory.lua
(324 Bytes) Downloaded 146 times
Start bot using commandline as the waypoint

Code: Select all

rom/bot path:commandline
type

Code: Select all

printinventory()
It will then print on your micromacro screen all the inventory info.
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
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Bot don't use hp potions

#3 Post by rock5 »

Just to make sure, you have Barbarian Herbs(Ervas Bárbaras) in your bags?
  • 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
edecr
Posts: 6
Joined: Mon Jan 28, 2013 6:54 am

Re: Bot don't use hp potions

#4 Post by edecr »

Hello lisa and rock5,
At the moment I'm at work. Thanks for the quick help from you!
I tested with all below level 25 potions, including "Ervas Barbáras".
In an hour, I go home and test their tips.
Thank you again.
edecr
Posts: 6
Joined: Mon Jan 28, 2013 6:54 am

Re: Bot don't use hp potions

#5 Post by edecr »

Hello again,
lisa, I did what you asked me.
I added a picture with the result.
function_return.png
thx
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Bot don't use hp potions

#6 Post by rock5 »

What version of the game does the Portuguese use anyway?
  • 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
edecr
Posts: 6
Joined: Mon Jan 28, 2013 6:54 am

Re: Bot don't use hp potions

#7 Post by edecr »

The version of the game is 4.0.6
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Bot don't use hp potions

#8 Post by rock5 »

A lot of places seem to be using 4.0.6. Try this version
http://www.solarstrike.net/phpBB3/viewt ... 625#p41625
Just follow the instructions.
  • 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
edecr
Posts: 6
Joined: Mon Jan 28, 2013 6:54 am

Re: Bot don't use hp potions

#9 Post by edecr »

I'm working, when I get home I'll try your tip.
Thank you again rock5 and lisa.
edecr
Posts: 6
Joined: Mon Jan 28, 2013 6:54 am

Re: Bot don't use hp potions

#10 Post by edecr »

Thanks for the help rock5 and lisa.
I used the link that you shared rock5 and the tips of lisa.
Now the bot is working perfectly!!
Post Reply