Page 1 of 1

Potions mixup!

Posted: Fri Dec 10, 2010 2:14 pm
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!

Re: Potions mixup!

Posted: Fri Dec 10, 2010 7:52 pm
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?

Re: Potions mixup!

Posted: Fri Dec 10, 2010 8:51 pm
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?

Re: Potions mixup!

Posted: Sat Dec 11, 2010 4:28 am
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...