View Full Version : alarm when less items then x
dani619
11-15-2012, 04:04 PM
you could use it as anti exura gran mas res at low levels (150-)
can some body make a script that will make alarm if the amount of health potions is lower then 50?
if you make your self to do a refill if you got less then 70 and it will start the alarm you will know that some thign is wrong!
such script will be realy help full!
Stusse
11-15-2012, 04:23 PM
HPID = 236 --Health potion ID
LowHP = 50 --How many health pots to alarm if lower than?
while true do
if (Self.ItemCount(HPID) < LowHP) then
alarm()
end
end
dani619
11-15-2012, 07:30 PM
Stusse tnx but its didnt work so i changed the alarm to alert. how do i change the voice that it makes? thats too creepy i cant use it hhhhhh.
i want it to do the player atk voice.
Stusse
11-15-2012, 07:49 PM
oh lol my bad its alert().
wrote it quickly ^^
dani619
11-15-2012, 08:21 PM
oh lol my bad its alert().
wrote it quickly ^^
so how can i change the sound that it makes? (its using siren voice, and i wanna make it use player atk)
dani619
11-15-2012, 08:40 PM
lol the script that you made, makes the pc work realy hard and its takes all my cpu XD probebly becouse he needs to do in loops checking if i got less then 50 health pots.
so its aint good..... is there any other possiblility?
DarkstaR
11-15-2012, 10:17 PM
lol the script that you made, makes the pc work realy hard and its takes all my cpu XD probebly becouse he needs to do in loops checking if i got less then 50 health pots.
so its aint good..... is there any other possiblility?
Before the last "end," add a wait(1000).
Stusse, if you're going to help the new people with scripts, please do them right. You should never indefinitely loop without a wait of at least 100 ms.
Stusse
11-15-2012, 11:13 PM
Aight, as said, wrote it quickly.
Crizzle
12-03-2012, 01:19 AM
Ohh dear god! That noise is so so creepy haha, actually shat myself
Crizzle
12-03-2012, 02:54 AM
Also, it goes off every backpack reset, know of any way to stop this happening?
Syntax
12-03-2012, 03:43 AM
Ohh dear god! That noise is so so creepy haha, actually shat myself..
http://forums.xenobot.net/customavatars/avatar6288_3.gif
ಠ_ಠ
Crizzle
12-03-2012, 08:02 AM
Haha, there is nothing creepy about big bad ron
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.