Results 1 to 3 of 3

Thread: URjente ajuda

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

    Question URjente ajuda

    ajuda ia galera
    oq devo colcoa na action pra checa quantas mana e pot pra ir pra label de continuar cave ou de volta pra dp
    eu uso 2 check

  2. #2
    Normal User trevux's Avatar
    Join Date
    Jul 2012
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    Check de Mana Potion apenas:

    Code:
    local MPName = "mana potion"
    local MPMin = 30
    
    -- Nao edite nada abaixo
    
    if (itemcount(MPName) <= MPMin) then
    
    gotolabel("GoCity")
    
    else
    
    gotolabel("Hunt")
    
    end
    Check complementado:

    Code:
    local MPName = "mana potion"
    local MPMin = 30
    local HPName = "health potion"
    local HPMin = 25
    local CapMin = 50
    
    -- Nao edite nada abaixo
    
    if (itemcount(MPName) <= MPMin) or (itemcount(HPName) <= HPMin) or (cap <= CapMin) then
    
    gotolabel("GoCity")
    
    else
    
    gotolabel("Hunt")
    
    end
    Comming Soon

    Trevux Scripts

  3. #3
    Normal User felipeandrews's Avatar
    Join Date
    Jun 2012
    Location
    Curitiba
    Posts
    368
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    if itemcount(MPname) > MPtobuy or itemcount(HPname) > HPtobuy or cap > Captoback then
    gotolabel('Hunt')
    else
    gotolabel("refil")
    end

Posting Permissions

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