Results 1 to 3 of 3

Thread: Print Screen when ...

  1. #1
    Normal User hiraansm's Avatar
    Join Date
    Oct 2012
    Posts
    700
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    2 Post(s)
    Reputation
    32
    Rep Power
    6

    Print Screen when ...

    i need an action ALERT when catch 2% to go next lvl

  2. #2
    Normal User
    Join Date
    Sep 2012
    Posts
    123
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    You can do anything like that:

    PHP Code:
    --[[ INIT START ]]--
        
    local ALERT_PC 2
    --[[ INIT END ]]--

    if 
    Self.LevelPercent() == "2" then
        Client
    .FlashWindow()
        
    System.PlaySound("alert.wav")
        
    message("Hey, wake up")
    end 

  3. #3
    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
    @up, you're trying to compare a string with a integer.
    PHP Code:
    --[[ INIT START ]]--
        
    local ALERT_PC 2
    --[[ INIT END ]]--

    if 
    Self.LevelPercent() <= ALERT_PC then
        Client
    .FlashWindow()
        
    System.PlaySound("alert.wav")
    end 

Posting Permissions

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