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")...