Results 1 to 8 of 8

Thread: Need action alert if heal monster

  1. #1
    Normal User
    Join Date
    Jul 2012
    Posts
    84
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    -6
    Rep Power
    0

    Need action alert if heal monster

    Hi guys please!



    Need the action if player heal with uh or ih or pots any monster play alarm!

    Thanks <3

  2. #2
    Normal User
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,671
    Mentioned
    18 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    8 Post(s)
    Reputation
    132
    Rep Power
    9
    UH,IH, mas res alarm
    PHP Code:
    local MESSAGES getnewmessages("Local Chat")
    local MESSAGES_QUANTITY MESSAGES.count 1
    local MESSAGES1 
    getnewmessages("Server Log"
    local MESSAGES1_QUANTITY MESSAGES1.count 

    for INDEX 0MESSAGES_QUANTITY do
        if (
    MESSAGES[MESSAGES_QUANTITY INDEX].text:find("exura gran mas res")) then
        playsound
    ("alert.wav")
        
    end
    end

    for INDEX 0MESSAGES1_QUANTITY do 
        if ((
    MESSAGES1[MESSAGES1_QUANTITY INDEX].text:find("(.+) was healed by (.+) for (.+) hitpoints."))) then 
        playsound
    ("alert.wav"
        
    end 
    end 

  3. #3
    iBot User
    Join Date
    May 2012
    Posts
    62
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    7 Post(s)
    Reputation
    9
    Rep Power
    0
    Quote Originally Posted by soder View Post
    UH,IH, mas res alarm
    PHP Code:
    local MESSAGES getnewmessages("Local Chat")
    local MESSAGES_QUANTITY MESSAGES.count 1
    local MESSAGES1 
    getnewmessages("Server Log"
    local MESSAGES1_QUANTITY MESSAGES1.count 

    for INDEX 0MESSAGES_QUANTITY do
        if (
    MESSAGES[MESSAGES_QUANTITY INDEX].text:find("exura gran mas res")) then
        playsound
    ("alert.wav")
        
    end
    end

    for INDEX 0MESSAGES1_QUANTITY do 
        if ((
    MESSAGES1[MESSAGES1_QUANTITY INDEX].text:find("(.+) was healed by (.+) for (.+) hitpoints."))) then 
        playsound
    ("alert.wav"
        
    end 
    end 
    How sohuld i edit it becasue this one dont work

  4. #4
    Normal User
    Join Date
    Oct 2012
    Posts
    86
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    sorry for refreshing old thread, but does this script work?

  5. #5
    Normal User Tswift's Avatar
    Join Date
    Aug 2012
    Location
    USA
    Posts
    114
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    13
    Rep Power
    5
    Idk if Soder's works or not, if it does then use his cause his will be better, but this one I wrote is simple and worked the last time I checked (over a month ago).

    Code:
    local serverlog_lines = getnewmessages("Server Log") 
    local serverlog_q = serverlog_lines.count - 1 
    
    for i = 0, serverlog_q do 
        if (serverlog_lines[serverlog_q - i].text:find("was healed by")) then 
            playsound("alert.wav")
        end 
    end

  6. #6
    Normal User
    Join Date
    Oct 2012
    Posts
    86
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    soders script did not work for me but i hope that your will. thanks ;-)

  7. #7
    Banned
    Join Date
    May 2012
    Posts
    1,364
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    127
    Rep Power
    0
    You need to be able to see white text on serverlog btw.

  8. #8
    Normal User
    Join Date
    Jan 2013
    Posts
    77
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    8
    Rep Power
    0
    How use stop attack and targeting for 7 sec if somebody heal?

Posting Permissions

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