Page 1 of 1

memorytable.lua:117

Posted: Fri Sep 17, 2010 11:44 am
by sebit2005
thats the error...what sould i do?

Re: memorytable.lua:117

Posted: Fri Sep 17, 2010 2:20 pm
by Starrider
nothing, just wait for an update... if its possible to fix.

By the way nice desktop with full of hacks, y'r a bad guy XD

Re: memorytable.lua:117

Posted: Fri Sep 17, 2010 4:14 pm
by macrouser
sebit2005 wrote:thats the error...what sould i do?

replace memorytable.lua with attached if your scripts don't use inventory

Re: memorytable.lua:117

Posted: Fri Sep 17, 2010 5:12 pm
by Kaelte
hey there, got the same problem after the patch comes out last week.. i'm using a script wich uses inventory, can you pls help me to fix it ^^

Re: memorytable.lua:117

Posted: Fri Sep 17, 2010 5:15 pm
by macrouser
Kaelte wrote:hey there, got the same problem after the patch comes out last week.. i'm using a script wich uses inventory, can you pls help me to fix it ^^

I don't know the whole rombot system well enough, you will probably have to wait until one of the gurus, works some magic.

Re: memorytable.lua:117

Posted: Fri Sep 17, 2010 5:32 pm
by zbynio
macrouser wrote:
sebit2005 wrote:thats the error...what sould i do?

replace memorytable.lua with attached if your scripts don't use inventory
Thank you - its work

if you use

Code: Select all

inventory:itemTotalCount(itemID);
This change is

Code: Select all

RoMScript("GetBagItemCount("..itemId..")");

Re: memorytable.lua:117

Posted: Fri Sep 17, 2010 8:22 pm
by Kaelte
yes, it works too on my script...

i work with the srcipt from rock5 from this thread --> http://www.solarstrike.net/phpBB3/viewt ... =21&t=1478

and just replace two lines in the script with the line he discribes in his thread on first page
What this means is the bot doesn't know you have the items in your inventory. Is it possible you are one of the people for who the new inventory:update() doesn't work properly? You can read more about it here.
http://www.solarstrike.net/phpBB3/viewt ... =21&t=1472

An easy fix is to bypass inventory:update(). Replace these 2 lines


Code:
inventory:update()
if 1 > inventory:itemTotalCount(204789) then -- Get more feed


with


Code:
repeat feedsacks = RoMScript("GetBagItemCount(204789)") until feedsacks
if 1 > feedsacks then -- Get more feed


The 'repeat' should stop it getting 'nil' errors.
i hope i can help some other users with this post ;)
big thanks to rock5 too :)

EDIT: forget to write, that i have taken your memorytable.lua and put it in the right folder ^^

Re: memorytable.lua:117

Posted: Sat Sep 18, 2010 6:52 am
by sebit2005
macrouser wrote:
sebit2005 wrote:thats the error...what sould i do?

replace memorytable.lua with attached if your scripts don't use inventory
now its working ...big thxx!

Re: memorytable.lua:117

Posted: Sat Sep 18, 2010 6:56 am
by zbynio
Yes :)
I always Repeat/Until :D
recommendable