function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.uid == 2221 and item.itemid == 1945 or item.itemid == 1946 then
if not getPlayerLearnedInstantSpell(cid, "Death Strike") then -- just change "Death Strike" to your spell name
doPlayerLearnInstantSpell(cid, "Death Strike")
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You have learned Death Strike spell!.')
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You have already learned this spell')
end
end
if item.itemid == 1945 then doTransformItem(item.uid, item.itemid + 1)
else doTransformItem(item.uid, item.itemid -1)
end
return TRUE
end