function onUse(cid, item, fromPosition, itemEx, toPosition)
first to one vocation to test but it don't work when i click on it nothing happend;/ alpha 4
Code:
local spells = {
{{1,5},{"winter ue"}},
{{2,6},{"paralyze ue"}},
{{3,7},{"divine mass"}},
{{4,8},{"ue berserk"}}
}
local voc = getPlayerVocation(cid)
if 8189 == item.itemid then
if isInArray(spells[2][1],voc) == TRUE then
if getPlayerStorageValue(cid,78786886) < 1 then
doCreatureSay(cid,spells[2][2][1],TALKTYPE_ORANGE_1)
doTransformItem(item.uid,5756)
doPlayerLearnInstantSpell(cid,"paralyzeue")
end
end
elseif voc < 1 or voc > 8 then
doPlayerSendCancel(cid,"You can't learn this spell.")
end
end
return TRUE
end
first to one vocation to test but it don't work when i click on it nothing happend;/ alpha 4
Last edited: