Potions mixup!

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
User avatar
jduartedj
Posts: 599
Joined: Sat Dec 19, 2009 12:18 am
Location: Lisbon
Contact:

Potions mixup!

#1 Post by jduartedj »

Hi I'm realised the bot mistakes potions with the same name!
Right now I have 151 Elemental Spirit Stone (lvl 46) and 99 Elemental Spirit Stone (lvl 51) and he is comsuming the lvl 46 ones, that are not minstack nor best potion! (I'm lvl 53 btw)

So... woot!
Thanks for reading! :D

Some of you might find this useful: RoM-bot Wiki
User Functions Repository (and other useful files): Addon Repo
Latest SVN updates: SVN updates
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Potions mixup!

#2 Post by rock5 »

There are 2 entries in the rombat database for 'Elemental Spirit Stone' with different Ids. Looking at the code that chooses the best potion, it searches by Id. So I'm not sure how it could be confusing the 2.

Are you sure it's using the wrong one? Are they both in your bag?
  • 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
User avatar
Administrator
Site Admin
Posts: 5353
Joined: Sat Jan 05, 2008 4:21 pm

Re: Potions mixup!

#3 Post by Administrator »

At first I thought it would be because the code to use an item would expect a name. Guess I was wrong. And the inventory goes by bagslots. I'm not seeing anything in the code that would cause such a thing to happen. The only thing I can imagine it would be is if there was some bug in the memory-based inventory code that is causing it to read the level 51 potions as the level 49 potions. Maybe that scans the tables by name?
User avatar
jduartedj
Posts: 599
Joined: Sat Dec 19, 2009 12:18 am
Location: Lisbon
Contact:

Re: Potions mixup!

#4 Post by jduartedj »

rock5 wrote: Are you sure it's using the wrong one? Are they both in your bag?
I'm pretty sure ... my MP was going down really fast and I noticed I always had 99 (my default) of the lvl 51 potions! then I let the bot play a bit on wander and I noticed it used potions of lvl 46.

Will test again for double sure but I'm sure...
Thanks for reading! :D

Some of you might find this useful: RoM-bot Wiki
User Functions Repository (and other useful files): Addon Repo
Latest SVN updates: SVN updates
Post Reply