Results 1 to 3 of 3

Thread: Ajuda de desconect

  1. #1
    Normal User
    Join Date
    Sep 2012
    Posts
    14
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    4 Post(s)
    Reputation
    10
    Rep Power
    5

    Ajuda de desconect

    TENHO O SEGUINTE ACTION PARA DESCONECTAR QUANDO ACABA POTION DE MANA OU CAP

    --Name health potion:
    local nameHp = "health potion"

    --Minimum health potion:
    local minHp = 2

    --Name mana potion:
    local nameMp = "mana potion"

    --Minimum mana potion:
    local minMp = 3

    --Minimum cap:
    local minCap = 5


    if itemcount(nameHp) <= minHp or itemcount(nameMp) <= minMp or cap <= minCap
    then
    setcavebot("off")
    end

    SO QUE ASSIM QUE UM DOS DOIS ACABA SO DESLIGA CAVEBOOT , E DEMORA MTO PARA DESCONECTAR , TERIA COMO ALTERAR A ACTION PARA DESCONECTAR NO MESMO TEMPO QUE SAI O BATTLE ?

  2. #2
    Premium User Norkk's Avatar
    Join Date
    Jan 2013
    Location
    BH - MG - Brazil
    Posts
    1,167
    Mentioned
    78 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    207 Post(s)
    Reputation
    135
    Rep Power
    7
    Pode fazer assim pra quando estiver sem battle

    Lua Code:
     
    if not battlesigned and (itemcount(nameHp) <= minHp or itemcount(nameMp) <= minMp or cap <= minCap) then
        setcavebot("off")	
        logout()
    end


    p.s:nao testei ainda
    My Scripts - Norkk Free Scripts
    New Project - Norkk Project

    EK 208 sold to @yhuel

  3. #3
    Normal User
    Join Date
    Sep 2012
    Posts
    14
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    4 Post(s)
    Reputation
    10
    Rep Power
    5
    vou fazer o teste aqui , mais pelo visto por enquanto deu certo sim !! obg

Posting Permissions

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