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

Thread: Action Request - UH on monster alarm

  1. #1
    Normal User
    Join Date
    Aug 2012
    Location
    Sweden
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5

    Action Request - UH on monster alarm

    Hello, it's easy to make an action to play a sound if someone writes "exura gran mas res" but I'm having trouble with people using UH runes to heal my monsters, and I can't get my bot to alarm me if someone does it.
    Can someone help me with this? Does it have to be something to get a message "x healed monster for x hitpoints" from the server log tab?
    Thanks in advance

  2. #2
    Normal User
    Join Date
    Aug 2012
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    You dont happen to be botting Mutated Tigers, do ya?
    Because we did this on a dude for almost an hour on my server just now.

  3. #3
    Normal User
    Join Date
    Oct 2012
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    I dont believe that its possible an alarm for UH =/

  4. #4
    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
    Try
    PHP Code:
    local MESSAGES getnewmessages("Local Chat")
    local MESSAGES_QUANTITY MESSAGES.count 1

    for INDEX 0MESSAGES_QUANTITY do
        if ((
    MESSAGES[MESSAGES_QUANTITY INDEX].text:find(".+ was healed by .+ for .+ hitpoints.")) or (MESSAGES[MESSAGES_QUANTITY INDEX].text:find("exura gran mas res"))) then
        playsound
    ("alert.wav")
        
    end
    end 
    Last edited by soder; 10-12-2012 at 03:56 PM.

  5. #5
    Normal User
    Join Date
    Aug 2012
    Posts
    24
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    5
    Quote Originally Posted by soder View Post
    Try
    PHP Code:
    local MESSAGES getnewmessages("Local Chat")
    local MESSAGES_QUANTITY MESSAGES.count 1

    for INDEX 0MESSAGES_QUANTITY do
        if ((
    MESSAGES[MESSAGES_QUANTITY INDEX].text:find(".+ was healed by .+ for .+ hitpoints.")) or (MESSAGES[MESSAGES_QUANTITY INDEX].text:find("exura gran mas res"))) then
        playsound
    ("alert.wav")
        
    end
    end 
    I tested this action but it won't work, i tried to change the getnewmessages to "Server Log" too, but it won't worked either.

  6. #6
    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
    Try this:

    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
    Make sure you have it set in your console to see the status messages of others.

  7. #7
    Normal User Awskar's Avatar
    Join Date
    Aug 2012
    Location
    svärje
    Posts
    371
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    15
    Rep Power
    5
    just put alarm if someone say "exura gran mas res"... fucking simple

  8. #8
    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
    Quote Originally Posted by Awskar View Post
    just put alarm if someone say "exura gran mas res"... fucking simple
    I think he's trying to say that he has a mass res alarm, but now people are UH'ing his monsters and the alarm for mass res doesn't go off if somebody uses a UH.

  9. #9
    Normal User
    Join Date
    Aug 2012
    Location
    Sweden
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    I do not bot mutated tigers :P thanks for all responses, going to test now. And yeah, what I'm looking for is the rune healing, not the "exura gran mas res" alarm.

  10. #10
    Normal User
    Join Date
    Apr 2012
    Posts
    44
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    9
    Rep Power
    0
    Anyways I wont matter if someone will uh or just ih ur monster. You have got to find solution to make an actions to alarm when X monster get like 400+hp back. Anyways there are a lot monster healing themselfs for 400hp so its quiet hard to make.

Posting Permissions

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