Everyone who has never used our Bots before, can test each one for 2 days without any limitation.
The trial is given automatically when you login on the Bot, but in some cases it wouldn't work (security reasons).
If this happens, send me a private message and i will be checking the failed trials manually and adding it for those who didn't get it.
We are looking for resellers who may accept payment methods different from ours, including classictibia's cash, realesta's cash, mastercores' cash, etc. Interested? Click here at anytime.



Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Capacity checked / goto label commands
#1
Hi there,

I need help to make a cap check and send character to correct "label" in action waypoint


PHP Code:
if cap <= 50 then
     gotolabel
('back')
 
    else
 
    gotolabel('exp')
end 
Action waypoint added with this text above.
Action named "kap"

My console show then : 
00:15:54 - Core:Lua:ExecuteScript:Cavebot/Action:#kap: 3: 'then' expected near 'gotolabel'

00:19:49 - Core:Lua:ExecuteScript:Cavebot/Action:#kap: 1: attempt to compare userdata with number

#2
|Only Registered members can see download links. | Click here to buy subscription or here to register.

Hello.

It's "cap()", not "cap".
if cap() <= 50 then
     gotolabel('back')
else
     gotolabel('exp')
end



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016