Results 1 to 5 of 5

Thread: Action not working to check floor

  1. #1
    Normal User
    Join Date
    Aug 2012
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5

    Action not working to check floor

    EDIT: CHANGED MY MIND

    How to set this PERSISTENT ACTION

    if (standtime > 60000) and (posz==10) then
    gotolabel ("Hunt4")
    elseif if (standtime > 60000) and (posz==11) then
    gotolabel ("Hunt5")
    elseif if (standtime > 60000) and (posz==9) then
    gotolabel ("Hunt3")
    elseif if (standtime > 60000) and (posz==8) then
    gotolabel ("Hunt2")
    end
    Last edited by drgol; 10-03-2012 at 05:15 AM. Reason: changed

  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
    elseif not else if

  3. #3
    Normal User
    Join Date
    Aug 2012
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    It skips the action but doesnt go to the label anyway

  4. #4
    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
    not elseif if..just elseif

    PHP Code:
    if (standtime 60000) and (posz==10then
    gotolabel 
    ("Hunt4")
    elseif (
    standtime 60000) and (posz==11then
    gotolabel 
    ("Hunt5")
    elseif (
    standtime 60000) and (posz==9then
    gotolabel 
    ("Hunt3")
    elseif (
    standtime 60000) and (posz==8then
    gotolabel 
    ("Hunt2")
    end 
    if still get problem show you debug window

  5. #5
    Normal User
    Join Date
    Aug 2012
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    I didnt notice I had put if twice, my bad

Posting Permissions

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