Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: alert if mas res

  1. #1
    Normal User Topotonixs's Avatar
    Join Date
    Apr 2012
    Posts
    42
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5

    alert if mas res

    i have this

    Mas Res
    Code:
    auto(100) foreach newmessage m do if m.type == MSG_DEFAULT and m.content == 'exura gran mas res' then beep() end end
    Anti Unjust
    Code:
    auto(100) foreach newmessage m do if m.type == MSG_RAID and m.content:match('Warning! The murder of .+ was not justified.') then closeclient() wait(100,200) pausebot() end end
    who can convert?

  2. #2
    Banned
    Join Date
    May 2012
    Posts
    1,081
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    127
    Rep Power
    0
    Hello, It's not possible to do it on Ibot yet. We need wait Jonatas make this function on next versions of bot

  3. #3
    Normal User
    Join Date
    Apr 2012
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    I would love to get it. It is so usefull :P

  4. #4
    Normal User Souls's Avatar
    Join Date
    May 2012
    Posts
    104
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    BUMP, its important to implement this ! ! ! !
    + REP if I help!

  5. #5
    Normal User
    Join Date
    Apr 2012
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    Can this be done atm?

  6. #6
    Normal User Topotonixs's Avatar
    Join Date
    Apr 2012
    Posts
    42
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    I make this Anti-Unjust

    its good?
    i dont used

    Code:
    local msgs = getmessages("Server Log") 
    local qtd = msgs.count-1 
    
    for i=0,qtd 
    do 
        if msgs[qtd].text:find("Warning! The murder of .+ was not justified.") 
        then 
            setcavebot("off") 
            settargeting("off") 
            setsettings("Settings\\Alerts\\Disconnect\\PlaySound", "no")
            setsettings("Settings\\Actions\\List\\Auto Reconnect\\Enabled", "no")
            wait(5000,10000) 
            closetibia() 
        end 
    end

  7. #7
    Normal User
    Join Date
    Apr 2012
    Posts
    38
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    Quote Originally Posted by Topotonixs View Post
    I make this Anti-Unjust

    its good?
    i dont used

    Code:
    local msgs = getmessages("Server Log") 
    local qtd = msgs.count-1 
    
    for i=0,qtd 
    do 
        if msgs[qtd].text:find("Warning! The murder of .+ was not justified.") 
        then 
            setcavebot("off") 
            settargeting("off") 
            setsettings("Settings\\Alerts\\Disconnect\\PlaySound", "no")
            setsettings("Settings\\Actions\\List\\Auto Reconnect\\Enabled", "no")
            wait(5000,10000) 
            closetibia() 
        end 
    end
    It works? if it works, is easy to edit for mas res healer!
    Flogão: /ntx

    Nahvi Team.

  8. #8
    Normal User Topotonixs's Avatar
    Join Date
    Apr 2012
    Posts
    42
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    Quote Originally Posted by NtxScripts View Post
    It works? if it works, is easy to edit for mas res healer!
    yes work and for mas res too :P

  9. #9
    Normal User Topotonixs's Avatar
    Join Date
    Apr 2012
    Posts
    42
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    Sound Alarms if player make Exura Gran Mas Res

    PHP Code:
    local msgs getmessages("Local Chat"
    local qtd msgs.count-

    for i=0,qtd 
    do 
        if 
    msgs[qtd].text:find("exura gran mas res"
        
    then 
        playsound
    ("alert.wav")    
        
    end 
    end 

    Anti-Unjust, when you recived Unjustified, the tibia is closed

    PHP Code:
    local msgs getmessages("Server Log"
    local qtd msgs.count-

    for i=0,qtd 
    do 
        if 
    msgs[qtd].text:find("Warning! The murder of .+ was not justified."
        
    then 
            setcavebot
    ("off"
            
    settargeting("off"
            
    setsettings("Settings\\Alerts\\Disconnect\\PlaySound""no")
            
    setsettings("Settings\\Actions\\List\\Auto Reconnect\\Enabled""no")
            
    wait(5000,10000
            
    closetibia() 
        
    end 
    end 

  10. #10
    Normal User Elertov's Avatar
    Join Date
    May 2012
    Location
    Poland
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    Work nice !
    Great th x !

Posting Permissions

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