Tente esse script:
function onEquip(cid, item, slot)
local spellName = "Light Healing"
if canPlayerLearnInstantSpell(cid, spellName) then
if not getPlayerLearnedInstantSpell(cid, spellName) then
doPlayerLearnInstantSpell(cid, spellName)
doPlayerSendTextMessage(cid,25,"Now you are able to cast " .. spellName .. ". These words is " .. getInstantSpellWords(spellName) .. ".")
else
doPlayerSendCancel(cid,"You already have learned the spell " .. spellName .. ".")
return FALSE
end
else
doPlayerSendCancel(cid,"You cannot learn the spell " .. spellName .. ".")
return FALSE
end
return TRUE
end
function onDeEquip(cid, item, slot)
local spellName = "Light Healing"
if getPlayerLearnedInstantSpell(cid, spellName) then
doPlayerUnlearnInstantSpell(cid, spellName)
doPlayerSendTextMessage(cid,25,"Now you are not able to cast " .. spellName .. ".")
end
return TRUE
end
Não se esqueça de adicionar a tag ao seu movements.xml e editar no script o nome da magia. No caso, está configurada para adicionar o Exura. Outra coisa a fazer é mudar na tag de sua magia, em spells.xml, a parte 'needlearn="0"' para 'needlearn="1"'.
flw