n1rosa
08-13-2013, 08:16 PM
hello all
(sorry if posted in wrong forum)
just bought xenobot today and i've tried a few scripts from this webiste. works fine, anyway..
im looking for some help to start scripting my own .lua files and making my own bot-hunts. I've looked up some tutorials on youtube and read some posts on this forum and im stocked to start experiment with this. one thing thought.. i've never done any programming in my whole life. brand new to this.
i got the scipting engine for windows from Lua's website.
got xenobot properly installed
anything else I need?
i was thinking about mixing programming with tibia related stuff(no shit:p). i mean immediately start scripting something for tibia. observe and check and try other ppls scripts for better understanding and learning, therefore become more experienced. hopefully!
so if you have any tips for me, please share
I already started some and can someone explain why this happens when I try to run script:
"attempt to call global 'registerEventListener' (a nil value)"
------------
script look like this:
local MinCap = 100
print("RookTest Script")
registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")
function SelectLabel(Label)
if (Label == ("check")) then
print("Current Capacity: " .. math.ceil(Self.Cap()))
if (Self.Cap() > MinCap) then
gotoLabel("leaveHunt")
end
end
Walker.Start()
end
/n1
(sorry if posted in wrong forum)
just bought xenobot today and i've tried a few scripts from this webiste. works fine, anyway..
im looking for some help to start scripting my own .lua files and making my own bot-hunts. I've looked up some tutorials on youtube and read some posts on this forum and im stocked to start experiment with this. one thing thought.. i've never done any programming in my whole life. brand new to this.
i got the scipting engine for windows from Lua's website.
got xenobot properly installed
anything else I need?
i was thinking about mixing programming with tibia related stuff(no shit:p). i mean immediately start scripting something for tibia. observe and check and try other ppls scripts for better understanding and learning, therefore become more experienced. hopefully!
so if you have any tips for me, please share
I already started some and can someone explain why this happens when I try to run script:
"attempt to call global 'registerEventListener' (a nil value)"
------------
script look like this:
local MinCap = 100
print("RookTest Script")
registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")
function SelectLabel(Label)
if (Label == ("check")) then
print("Current Capacity: " .. math.ceil(Self.Cap()))
if (Self.Cap() > MinCap) then
gotoLabel("leaveHunt")
end
end
Walker.Start()
end
/n1