Problem when Using Potion
Posted: Sun Jan 24, 2010 6:04 am
I'd like to ask anyone who can help me about this "Using Potion" problem.
I'm new to rombot(micromacro) but I did try to read all info and I finally set config
and make bot run ...
Everything is just fine .. except Bot always "STOP" when trying to use "Potion"
it always show this message
--------------------------------------------------------------------------------------------------------
"...romacro/micromacro/scripts/rom/classes/inventory.lua:214: attempt to compare
number with nil
Please enter the script name to run.
Type in 'exit' <without quotes> to exit.
Script>
--------------------------------------------------------------------------------------------------------
Here is the code when I look at inventory.lua (line 214)
-- check item slots slot by slot
for slot,item in pairs(self.BagSlot) do
local consumable = database.consumables[item.Id];
if( consumable and -- item in database
consumable.Type == type and -- right type (mana, arrow, ...)
consumable.Level <= player.Level and -- level ok
item.ItemCount > 0 ) then -- use only if some available <<<<<< line 214
--------------------------------------------------------------------------------------------------------
any idea what's wrong with this?
I'm new to rombot(micromacro) but I did try to read all info and I finally set config
and make bot run ...
Everything is just fine .. except Bot always "STOP" when trying to use "Potion"
it always show this message
--------------------------------------------------------------------------------------------------------
"...romacro/micromacro/scripts/rom/classes/inventory.lua:214: attempt to compare
number with nil
Please enter the script name to run.
Type in 'exit' <without quotes> to exit.
Script>
--------------------------------------------------------------------------------------------------------
Here is the code when I look at inventory.lua (line 214)
-- check item slots slot by slot
for slot,item in pairs(self.BagSlot) do
local consumable = database.consumables[item.Id];
if( consumable and -- item in database
consumable.Type == type and -- right type (mana, arrow, ...)
consumable.Level <= player.Level and -- level ok
item.ItemCount > 0 ) then -- use only if some available <<<<<< line 214
--------------------------------------------------------------------------------------------------------
any idea what's wrong with this?