Results 1 to 3 of 3

Thread: Alert Low Health

  1. #1
    iBot User kurtpc's Avatar
    Join Date
    Mar 2012
    Posts
    11
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    10
    Rep Power
    5

    Alert Low Health

    could someone do or show me a action to alert when my character get low health

    example

    show screen and sound when < 1000 hp!

    ty

  2. #2
    Moderator Drakke's Avatar
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,898
    Mentioned
    216 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    390 Post(s)
    Reputation
    366
    Rep Power
    10
    Lua Code:
     
    local hptoalarm = 1000
     
    if hp < hptoalarm then
    if not focused then
    focusclient()
    wait(200,500)
    end
    playsound('alert.wav')
    end


    Something like this you want? @kurtpc

  3. #3
    iBot User kurtpc's Avatar
    Join Date
    Mar 2012
    Posts
    11
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    10
    Rep Power
    5
    Drakke thank you, let me try to use!

Posting Permissions

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