Results 1 to 6 of 6

Thread: Alerts

  1. #1
    Normal User Stanky's Avatar
    Join Date
    Aug 2012
    Posts
    112
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    20
    Rep Power
    5

    Red face Alerts

    Can someone help me I need a alert set up for if stamina falls below 14:00 and also if x player messages me sound alarm weird I know.

    Thanks

  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
    Code:
    if stamina < 840 then playsound("alert.wav") end
    Code:
    --not sure if this one works
    local name = "Soder"
    local msgs = getmessages("Local Chat")
    local qtd = msgs.count-1 
    
    for i=0,qtd do 
        if msgs[qtd].text:find(name) then 
            for i=2,4 do
                playsound("alert.wav")
            end
        end 
    end
    Last edited by soder; 09-15-2012 at 05:33 AM.

  3. #3
    Normal User Stanky's Avatar
    Join Date
    Aug 2012
    Posts
    112
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    20
    Rep Power
    5
    Ill give it a try tomorrow thanks for the help!

  4. #4
    iBot User
    Join Date
    Dec 2012
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    How do calculate the hours?

  5. #5
    iBot User pink_panther's Avatar
    Join Date
    May 2012
    Location
    Australia
    Posts
    4,075
    Mentioned
    49 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    178 Post(s)
    Reputation
    309
    Rep Power
    10
    stam alert is built into the bot.

  6. #6
    Normal User
    Join Date
    Dec 2012
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    Quote Originally Posted by pink_panther View Post
    stam alert is built into the bot.
    True but look the date of the first post
    Alsos if soder take a look someday again to this post, you should change your getmessage for getnewmessage , like you alredy you I'm sure

Posting Permissions

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