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
Gotolabel x when player appear on screen
#1
Hello.

I need a script to run to a label when player is on screen out of safe list.
Reply

#2
local SAFE_LIST = { 'friend', 'maker', 'another maker' }
local WAYPOINT = 'go_safe'

if paroundignore(0, table.unpack(SAFE_LIST)) > 0 then
    gotolabel(WAYPOINT)
end

Or this script, which will also check if you already are between a waypoint range and only calls gotolabel if not. So if you are already are between wpt range then it will do nothing.
This is useful when you need to walk few waypoints instead of just one. Otherwise, it will keep comming back to waypoint you setup.
local SAFE_LIST = { 'friend', 'maker', 'another maker' }
local WAYPOINT = 'go_safe'
local WAYPOINT_RANGE = { Start = 5, End = 10 }

if paroundignore(0, table.unpack(SAFE_LIST)) > 0 then
    local wpt = waypoint()
    if wpt.index == -1 or wpt.index < WAYPOINT_RANGE.Start or wpt.index > WAYPOINT_RANGE.End then
        gotolabel(WAYPOINT)
    end
end
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016