Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onSay(cid, words, param, channel)
- if isDruid(cid) then
- if getPlayerSoul(cid) == 100 then
- local maxh = getCreatureMaxHealth(cid)
- doCreatureAddHealth(cid, maxh)
- doSendMagicEffect(getCreaturePosition(cid), CONST_ME_MAGIC_RED)
- doPlayerAddSoul(cid, -100)
- doPlayerSendTextMessage(cid, 22, 'You used your soul successfully!')
- else
- doPlayerSendCancel(cid, "You dont have 100 soul.")
- end
- else
- doSendMagicEffect(getCreaturePosition(cid), CONST_ME_MAGIC_POFF)
- doPlayerSendTextMessage(cid, 21, 'You are not druid, as punishment, the ancient gods will punish you removing you life.')
- doPlayerSendTextMessage(cid, 21, 'Dont try this again!')
- doCreatureAddHealth(cid, -5)
- end
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment