Sei sim:
function onUse(cid, item, frompos, item2, topos)
config = {
storage = 15896,
spellName = "Light Healing"
}
if getPlayerStorageValue(cid, config.storage) <= 0 then
if not getPlayerLearnedInstantSpell(cid, config.spellName) then
if canPlayerLearnInstantSpell(cid, config.spellName) then
doPlayerLearnInstantSpell(cid, config.spellName)
doPlayerSendTextMessage(cid, 25, "Congratulations! Now you are able to use the spell Light Healing.")
setPlayerStorageValue(cid, config.storage, 1)
else
doPlayerSendCancel(cid, "You cannot do this mission because you cant learn the spell.")
end
else
doPlayerSendCancel(cid, "You have already learned the spell.")
end
else
doPlayerSendCancel(cid, "You have already done.")
end
return TRUE
end
Só edite nas configs, alterando o nome da magia e a storage.
flw