Results 1 to 4 of 4

Thread: isnotlocation

  1. #1
    iBot User
    Join Date
    Jun 2012
    Posts
    42
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    10
    Rep Power
    5

    isnotlocation

    Hey guys, ive got minor problem with function isnotlocation, basicaly i dont know how to use this function^^, could someone explain me how to use this? I guess i use this function f.e after entering teleport/stairs/hole etc to make sure bot is in location, and if bot is not in location he goes back to previerous waypoint am i right?

  2. #2
    Banned
    Join Date
    May 2012
    Location
    Rio de Janero - RJ / Canada
    Posts
    870
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    30
    Rep Power
    0
    the function is
    islocation()
    You have 2 ways of doing that:
    You can add an action with the same location as the previous stand saying

    1:
    if not islocation() then gotolabel('upstairsagain') end
    or
    2:
    if islocation() then gotolabel('keepwalking') end
    Number 1 means if the script is not on the location of the previous stand its gonna move back to the label 'upstairsagain', for example

    Upstairsagain......,........ 33023 32212 7
    Stair ..........................33022 32212 7
    Top........................... 33022 32212 6
    Action........................ 33022 32212 6 if not islocation() then gotolabel('Upstairsagain') end
    Example 2:
    Upstairsagain......,........ 33023 32212 7
    Stair ..........................33022 32212 7
    Top........................... 33022 32212 6
    Action........................ 33022 32212 6 if islocation() then gotolabel('keepwalking') else gotolabel('Upstairsagain') end
    keepwalking.................33021 32212 6

  3. #3
    iBot User
    Join Date
    Jun 2012
    Posts
    42
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    10
    Rep Power
    5
    Wow, thanks a lot.
    That's explains everything for me, gonna use example 2 cuz it seems to be more perfect

  4. #4
    Banned
    Join Date
    May 2012
    Location
    Rio de Janero - RJ / Canada
    Posts
    870
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    30
    Rep Power
    0
    Glad I could help you out =)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •