Log in

View Full Version : OT: eat a stamina refiller when stamina low



Xini321
10-28-2016, 06:59 PM
Hey!

I'm playing an ot where you can refill your stamina by eating a stamina refiller. So now im in search for a script that eats this refiller at like 20 h stamina. So basicly a stamina checker with eating function

Is there any script for that out there or anybody that can help me out?

Thanks in advance

Oscagi
10-29-2016, 09:02 AM
if Self.Stamina() < (MinStamina) * 60 then
Self.UseItem(StaminaRefillerID)
end


Should be something like that I dont remember.

Xini321
10-30-2016, 12:19 PM
So i put the amount of stamina at which it shall eat the item where it sais "minstamina"? Should the amount be in minutes or hours? And then the item id where it sais ID, anything else? :)