local spell = 'Exori'
function onUse(cid, item, fromPosition, itemEx, toPosition)
if(not isKnight(cid)) then
doCreatureSay(cid, "Only knights may open this scroll.", TALKTYPE_ORANGE_1, cid)
return true
end
if getPlayerLearnedInstantSpell(cid, spell) == FALSE then
playerLearnInstantSpell(cid, spell)
doSendMagicEffect(fromPosition, CONST_ME_MAGIC_BLUE)
doCreatureSay(cid, 'You have learned the spell ' .. spell .. '.', TALKTYPE_ORANGE_1)
doRemoveItem(item.uid)
else
doPlayerSendCancel(cid, 'You have already know this spell.')
end
return TRUE
end