local soul = 1 --- Here edit how much soul gain onuse!
local max = 100 -- Max soul
function onUse(cid, item, frompos, item2, topos)
if isPlayer(cid) then
doPlayerAddSoul(cid,soul)
doSendAnimatedText(getCreaturePosition(cid), "SOUL!", TEXTCOLOR_RED)
doPlayerSendTextMessage(cid, 27, "You have recived "..soul.." soul point.")
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_FIREWORK_RED)
return true
end
if getPlayerSoul(cid, max) then
doPlayerSendCancel(cid, "Sorry, but you cant gain more than "..max.." soul points.")
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
end
return true
end