Santy
Member
- Joined
- Aug 14, 2007
- Messages
- 654
- Reaction score
- 22
This is a fountain that heals your hp full and it has exhaustion for 15 mins..
Credits to papercut for the exhaustion.. everything else to me.
Code:
function onUse(cid, item, frompos, item2, topos)
local exhausttime = 1200
local storevalue = 4850
if item.uid == 3912 then
if (exhaust(cid, storevalue, exhausttime) == 1) then
doSendAnimatedText(getPlayerPosition(cid), "Ahh", TEXTCOLOR_LIGHTBLUE)
doPlayerAddHealth(cid,1000000)
else
doPlayerSendCancel(cid,"You are full of water.")
end
end
end
Credits to papercut for the exhaustion.. everything else to me.