Satho
τnє đєv
- Joined
- Aug 19, 2007
- Messages
- 175
- Reaction score
- 1
Well i just tryed to make a script and here is the script:
Code:
Everything is working except the exhaustion....
Please help me so i can get it working
I am using The Forgotten Server
Code:
Code:
function onUse(cid, item, frompos, item2, topos)
if item.itemid == 1156 then
doCreatureAddHealth(cid,113)
doPlayerSendTextMessage(cid,22,"You drank the water of healing")
doSendMagicEffect(frompos, 12)
storevalue = 1245 -- value where exhausted is saved
exhausttime = 50 -- 2 seconds exhaustion
if (exhaust(cid, storevalue, exhausttime) == 1) then
--not exhausted
else
--exhausted
end
end
end
Everything is working except the exhaustion....
Please help me so i can get it working
I am using The Forgotten Server