Results 1 to 5 of 5

Thread: Anti stuck action

  1. #1
    Normal User
    Join Date
    Feb 2012
    Location
    Rio de Janeiro, Brazil
    Posts
    236
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    12
    Rep Power
    5

    Anti stuck action

    I need an action, that everytime my char is on a certain sqm, go to label 'skip'.

    Eg: if sqm (x, y, z) go to label skip

  2. #2
    iBot User
    Join Date
    Aug 2012
    Posts
    805
    Mentioned
    18 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    38 Post(s)
    Reputation
    180
    Rep Power
    7
    wpt action on this sqm with

    PHP Code:
    if islocation() then
    gotolabel
    ("skip")
    end 

  3. #3
    Normal User Balbek's Avatar
    Join Date
    May 2012
    Location
    LDZ
    Posts
    554
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    4 Post(s)
    Reputation
    84
    Rep Power
    6
    Lua Code:
    if (posx == X) and (posy == Y) and (posz == Z) then
        gotolabel('skip')
        wait(2000)
    end


    All u need to do is changing the posx co

  4. #4
    iBot User pink_panther's Avatar
    Join Date
    May 2012
    Location
    Australia
    Posts
    4,075
    Mentioned
    49 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    178 Post(s)
    Reputation
    309
    Rep Power
    10
    Quote Originally Posted by Balbek View Post
    Lua Code:
    if (posx == X) and (posy == Y) and (posz == Z) then
        gotolabel('skip')
        wait(2000)
    end


    All u need to do is changing the posx co
    no.. just no.

    First of of, technically it would work, but there is a function called islocationxyz that exists already.

    Secondly, why would you put a 2 second wait after jumping to another label?



    Use this.

    if islocationxyz(posx, posy, posz) then
    gotolabel("Skip")
    end
    Last edited by pink_panther; 02-03-2014 at 10:59 AM.

  5. #5
    iBot User
    Join Date
    Aug 2012
    Posts
    805
    Mentioned
    18 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    38 Post(s)
    Reputation
    180
    Rep Power
    7
    Quote Originally Posted by pink_panther View Post
    if islocationxyz(posx, posy, posz) then
    gotolabel("Skip")
    end
    but it will work the same as action which I suggested

    PHP Code:
    local x 12345
    local y 
    12345
    local z 
    7
    if islocationxyz(xyzthen
    gotolabel
    ("Skip")
    end 
    just put correct coordinates

Posting Permissions

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