When i am running this script,
every few hours or so the bot stops and this message comes up on the micromacro window
User\Desktop\bot\micromacro\scripts\rom/bot.lua:505: onLoad error: [string "..."]:105: attempt to index local 'SmallStack' <a nil value>
I have not changed anything in the folders after the initial setup of SVN checkout on the rom folder in the micromacro folder,
Here is the waypoint im currently using,
-- wplata surek, zielone i opisane
GuildDonate()
GuildDonateItems({"Guild Rune", "xx", "oo"})
keptitems = {203163, 203086, 203087, 203085, 203291, 203292, 203293, 203294, 203295, 240743}
keptitems = {203163, 203086, 203087, 203085, 203291, 203292, 203293, 203294, 203295, 240743}
for k,v in pairs(keptitems) do
if inventory:itemTotalCount(v) > 0 then
local SmallStack = inventory:findItem(v);
SmallStack:delete();
end;
end;
</onLoad>
</waypoints>
If anyone can help me it would be very appreciated!
Thanks
Pumpkin Festival Error
Pumpkin Festival Error
Last edited by kx3killza on Mon Nov 26, 2012 8:23 pm, edited 1 time in total.
Re: Pumpkin Festival Error
Code: Select all
inventory:findItem(v)
Code: Select all
SmallStack:delete()
Code: Select all
if SmallStack then
SmallStack:delete()
end
- 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
Re: Pumpkin Festival Error
sorry but im pretty stupid when it comes to lua codes
but where do i put
if SmallStack then
SmallStack:delete()
end
and do i need to replacing something with that?
but where do i put
if SmallStack then
SmallStack:delete()
end
and do i need to replacing something with that?
Re: Pumpkin Festival Error
Search through the file and find
and change it to
Code: Select all
SmallStack:delete();
Code: Select all
if SmallStack then
SmallStack:delete();
end
- 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
Re: Pumpkin Festival Error
can i just remove the line SmallStack:delete(); ?
i let lootomatic do the rest,because my bot keep stop working with that smallstack issue
i let lootomatic do the rest,because my bot keep stop working with that smallstack issue
Who is online
Users browsing this forum: Ahrefs [Bot], Google [Bot] and 2 guests