Results 1 to 3 of 3

Thread: Alarm if exura gran mas res but not .wav

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

    Alarm if exura gran mas res but not .wav

    It is possible to sound an alarm if exura gran mas res and snooze it if not mas res????? because all alarms are .wav and it sound until you close Ibot right?

  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
    It does not loop the sound until you close ibot.

    Code:
    local MESSAGES = getnewmessages("Local Chat")
    local MESSAGES_QUANTITY = MESSAGES.count - 1
    
    for INDEX = 0, MESSAGES_QUANTITY do
        if (MESSAGES[MESSAGES_QUANTITY - INDEX].text:find("exura gran mas res")) then
    	playsound("alert.wav")
        end
    end

  3. #3
    Normal User Moe's Avatar
    Join Date
    Mar 2012
    Location
    Halifax, Canada
    Posts
    491
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    5 Post(s)
    Reputation
    90
    Rep Power
    5
    Or you can clear your "Local Chat" window and that'll stop it

Posting Permissions

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