Results 1 to 3 of 3

Thread: Action's para bank safe e outra para fechar o client.

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

    Action's para bank safe e outra para fechar o client.

    Boa noite amigos botter's

    Gostaria da ajuda de vocês se possível, são duas Actions que eu estou precisando, uma é depois que o char da balance se tiver <= a um valor pre definido fechar o client. Já a outra é se o npc falar uma msg especifica fechar o client também.

    Agradeço desde já.

  2. #2
    Normal User blakw's Avatar
    Join Date
    Mar 2012
    Location
    www.blakw.com
    Posts
    815
    Mentioned
    221 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    344 Post(s)
    Reputation
    462
    Rep Power
    10
    Safe Bank (com mensagem):

    Lua Code:
     
    local msgs = getnewmessages("NPCs") 
    local qtd = msgs.count-1 
     
    for i=0,qtd 
    do 
        if msgs[qtd].text:find("There is not enough gold on your account.") 
        then 
            closetibia() 
        end 
    end



    Safe Bank (com balance):

    Lua Code:
     
    --Minimo balance (gold coins):
    local minimoBalance = 1000
     
    say("hi")
    wait(1500, 2500)
    npcsay("balance")
    wait(1500, 2500)
     
    if balance <= minimoBalance
    then
        closeclient()
    end


    ------------------------------------Latest Releases:------------------------------------
    Vocations:
    Darashia Lions Rock
    Oramond Seacrest Serpents X1

    For a better iBot!

    (◣_◢)

  3. #3
    Normal User
    Join Date
    Jun 2012
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    Obrigado, blakw era exatamente isso que precisava. / Thanks, that was exactly what blakw needed.

Posting Permissions

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