Amiroslo
Excellent OT User
- Joined
- Jul 28, 2009
- Messages
- 6,812
- Solutions
- 6
- Reaction score
- 822
Code:
function onUse(cid, item, frompos, item2, topos)
local rand = math.random(1,10)
if rand == 1 then
doPlayerSay(cid, "Cough!, Cough!..." ,16)
doPlayerAddHealth(cid, -5)
doSendMagicEffect(topos,34)
doRemoveItem(item.uid, 1)
return 1
else
doPlayerSay(cid, "Fhuuu..." ,16)
doSendMagicEffect(topos,2)
doRemoveItem(item.uid, 1)
return 1
end
end
can someone make this work with tfs 0.3.6pl1 8.54?