nilmarti
12-08-2015, 12:10 AM
Hey, could anyone help me with an error a .lua keeps giving. Always I try to execute it, the bot sends me this message
01:01 XenoScript Error:
Script: AmazonCarlin.lua
Line #: 12
Chunk: C:?Users?NILMAR?1?DOCUME?1?XenoBot?Scripts??AMAZON ?1.LUA
Error: 'end' expected (to close 'function' at line 4) near '<eof>'
This is an error with user-input and should not be reported as a bug with XenoBot.
The .lua used is the next one, hope you find the error to it.. I've tryed looking on forums, tutorials, copying other .lua but none solve my problem..
registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")
dofile("AmazonCarlin.lua")
function onWalkerSelectLabel(labelName)
if (labelName == "End Hunt") then
Walker.ConditionalGoto((Self.ItemCount(3031) <= 200) or (Self.Cap() < 100), "Depositer", "Start Hunt")
elseif (labelName == "End") then
gotoLabel("Start")
end
Hope you can help me,
King regards,
Nil
PD. Sorry if my english is not the best, I try my best :p
01:01 XenoScript Error:
Script: AmazonCarlin.lua
Line #: 12
Chunk: C:?Users?NILMAR?1?DOCUME?1?XenoBot?Scripts??AMAZON ?1.LUA
Error: 'end' expected (to close 'function' at line 4) near '<eof>'
This is an error with user-input and should not be reported as a bug with XenoBot.
The .lua used is the next one, hope you find the error to it.. I've tryed looking on forums, tutorials, copying other .lua but none solve my problem..
registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")
dofile("AmazonCarlin.lua")
function onWalkerSelectLabel(labelName)
if (labelName == "End Hunt") then
Walker.ConditionalGoto((Self.ItemCount(3031) <= 200) or (Self.Cap() < 100), "Depositer", "Start Hunt")
elseif (labelName == "End") then
gotoLabel("Start")
end
Hope you can help me,
King regards,
Nil
PD. Sorry if my english is not the best, I try my best :p