Hello, can someone help me with persisten script if X mana potion then play sound?
Hello, can someone help me with persisten script if X mana potion then play sound?
Wrong area. Next time use Lua scripts > Requests
--Mana Alert
local ManaType = 'mana potion'
local PotionAlert = 200
local SoundAlertType = 'lowmana.wav' ---Docummentation--- Plays the sound with file name filename. All the sound files must be in the bot's '/sounds' directory.
---You need the backpack open sup---
auto(1000)
if itemcount(ManaType) < PotionAlert then
playsound(SoundAlertType)
end
You just need to write the type of mana you use. And if you want to change the type of sound to be emitted, is only going in the sounds folder button and write the sound of the name, not forgetting the (.wav)
PS: Is configured so that smaller X potion release the alarm, but if you want it to be just the X amount, line 9, change < to ==
Last edited by Cisco; 09-20-2016 at 09:59 PM.