Results 1 to 5 of 5

Thread: Action to loggout when get server msg

  1. #1
    Normal User
    Join Date
    Feb 2013
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    10
    Rep Power
    4

    Action to loggout when get server msg

    Please, i need you guys to create one action to make my character loggout when get the following server messages: "Lancer beetles troop up in Farmine. Beware!"

  2. #2
    iBot User Canu13's Avatar
    Join Date
    Nov 2012
    Location
    Barcelona
    Posts
    273
    Mentioned
    21 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    38 Post(s)
    Reputation
    39
    Rep Power
    5
    Lua Code:
    local msgs = getmessages("Server Log") 
    local qtd = msgs.count-1 
     
    for i=0,qtd 
    do 
        if msgs[qtd].text:find("Lancer beetles troop up in Farmine. Beware!") 
        then 
            setcavebot("off") 
            settargeting("off")
            setsettings("Settings\\Alerts\\Disconnect\\PlaySound", "no")
            wait(5000,10000) 
            closetibia() 
        end 
    end

    Eli Scripts Last Releases Vocation
    New Water Elemental ED - MS
    Glooth Bandits x3 ED - MS
    Meriana Gargoyle Cave ED - MS
    Glooth Bandits x2 ED-MS

  3. #3
    Normal User
    Join Date
    Feb 2013
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    10
    Rep Power
    4
    At first I wanna say thanks for the script!!! Well, in this Script that you have posted to me... theres a way to change the "exit" of the action to "kill all the surround monsters, stop and w8 battle to loggout"?

  4. #4
    iBot User Canu13's Avatar
    Join Date
    Nov 2012
    Location
    Barcelona
    Posts
    273
    Mentioned
    21 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    38 Post(s)
    Reputation
    39
    Rep Power
    5
    Quote Originally Posted by Krisiun Grim View Post
    At first I wanna say thanks for the script!!! Well, in this Script that you have posted to me... theres a way to change the "exit" of the action to "kill all the surround monsters, stop and w8 battle to loggout"?
    Try with this

    Lua Code:
     
    local msgs = getmessages("Server Log") 
    local qtd = msgs.count-1 
     
    for i=0,qtd 
    do 
        if msgs[qtd].text:find("Lancer beetles troop up in Farmine. Beware!") then
                setcavebot("off")
     
     
                if battlesigned == false then
                   logout()
                else
                   wait(30000)
                   logout()
                end 
        end 
    end
    Last edited by Canu13; 04-25-2014 at 10:38 PM.

    Eli Scripts Last Releases Vocation
    New Water Elemental ED - MS
    Glooth Bandits x3 ED - MS
    Meriana Gargoyle Cave ED - MS
    Glooth Bandits x2 ED-MS

  5. #5
    Normal User
    Join Date
    Feb 2013
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    10
    Rep Power
    4
    Thx very much for you help!

    +rep for you
    Last edited by Krisiun Grim; 04-25-2014 at 10:29 PM.

Posting Permissions

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