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
IsNotLocation verification
#1
Lightbulb 
Good morning, I'd like a script to check if the character is in that position, and if it's not that it goes to a particular label.  Preventing the escript from running with the character away from the correct location.
I imagine something like "

{
 If isnotlocation(x)
Go to label (rope)
}
And keep repeating until he could use the rope for example.


Thank you very much !
Reply

#2
Hello.

If you want to check if it's in location based on current waypoint then use LUA function islocation().
|Only Registered members can see download links. | Click here to buy subscription or here to register.

islocation(optional number range) [boolean] Returns true if the action script is executed at the location where the action waypoint was set and false otherwise. If the optional parameter range is specified, return true/false if you are standing within range tiles of the waypoint location in x or y.
if not islocation() then
     gotolabel('rope')
end
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016