01-06-2019, 11:29 PM
Hi there,
I need help to make a cap check and send character to correct "label" in action waypoint
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
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 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

