Results 1 to 7 of 7

Thread: Action request

  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

    Action request

    I need an action wich play an alarm if i have "x" mana potions but only if "x" backpack is opened because if i use item alarm it sound everytime when my script close the supplies backpack

  2. #2
    Normal User draziw's Avatar
    Join Date
    Jun 2013
    Location
    New Zealand
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    20
    Rep Power
    4
    if (itemcount('mana potion') <= 50) and (windowcount(SupplyBP) == 1) then
    for i=0,4 do
    playsound('alert.wav')
    end
    end

  3. #3
    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
    omg!! it works thanks a lot!! but.. another thing, why sound a lot?! xD the sound of the normal alarm is like 1 per time and this sound like a lot of alarms at same time :S if u dont understand me here is an example normal alarm sound beep wait 1 second beep wait 1 second beep and this alarm sound briiiiirrrppppppp briiiiirrrppppppp briiiiirrrppppppp!! xD
    Last edited by JimWar; 11-02-2013 at 05:45 PM.

  4. #4
    Normal User draziw's Avatar
    Join Date
    Jun 2013
    Location
    New Zealand
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    20
    Rep Power
    4
    Remove the line for i=0,4 do and set the Spamrate in the action menu to 400-500, that might work.

  5. #5
    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
    yep ! it solved all, again thanks <3

  6. #6
    Normal User draziw's Avatar
    Join Date
    Jun 2013
    Location
    New Zealand
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    20
    Rep Power
    4
    No worries! Take care

  7. #7
    Banned
    Join Date
    May 2012
    Posts
    1,364
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    127
    Rep Power
    0
    Just add a wait(1000) in draziw's code:

    PHP Code:
    if (itemcount('mana potion') <= 50) and (windowcount(SupplyBP) == 1then
    for i=0,do
    playsound('alert.wav')
    wait(1000)
    end
    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
  •