function onUse(cid, item, frompos, item2, topos)
if item.uid == 8012 then
queststatus = getPlayerStorageValue(cid,303)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"Learn Spell.")
playerLearnInstantSpell(cid, 'name_spell')
setPlayerStorageValue(cid,303,1)
else
doPlayerSendTextMessage(cid,22,"You have this spell .")
end
else
return 0
end
return 1
end