Results 1 to 8 of 8

Thread: Alarm when less than 50 mana potions

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

    Alarm when less than 50 mana potions

    As a title. How I can do this?

  2. #2
    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
    PHP Code:
    if itemcount('mana potion') <= 50 then
      
    for i=0,do
          
    playsound('alert.wav')
      
    end
    end 

  3. #3
    iBot User pazskt's Avatar
    Join Date
    Jul 2012
    Posts
    24
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    9
    Rep Power
    0
    at bot
    alerts > item
    new
    Mana Potion > count

  4. #4
    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
    settings->alerts->item

  5. #5
    Normal User Templar's Avatar
    Join Date
    Jun 2012
    Posts
    416
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    18
    Rep Power
    5
    But everytime you close ur bp, alarm will beep

  6. #6
    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
    Quote Originally Posted by Templar View Post
    But everytime you close ur bp, alarm will beep
    Code:
    if (itemcount('mana potion') <= 50) and (windowcount(SupplyBP) == 1) then
        for i=0,4 do
            playsound('alert.wav')
        end
    end

  7. #7
    Normal User RafiXWPT's Avatar
    Join Date
    Jun 2012
    Location
    (Poland) http://rafixwptscripts.com
    Posts
    1,602
    Mentioned
    31 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    128 Post(s)
    Reputation
    128
    Rep Power
    9
    or:
    PHP Code:
    if itemcount(MPName) < ManaAlert and not pzone then playsound("alert.wav"end 

  8. #8
    Banned
    Join Date
    May 2012
    Posts
    680
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    24
    Rep Power
    0
    Quote Originally Posted by soder View Post
    Code:
    if (itemcount('mana potion') <= 50) and (windowcount(SupplyBP) == 1) then
        for i=0,4 do
            playsound('alert.wav')
        end
    end
    is the loop really nessecary, just set updatetime to 400-500 ms and it will play often enough.

Posting Permissions

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