Alyhide
Banned User
Hello, I used a script to get the second promotion, but everytime I use the item that I set it to, it says..
Code:
[08/08/2011 16:15:57] [Warning - Vocations::getVocation] Vocation 4294967295 not found.
LUA:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local a = getPlayerPromotionLevel(cid)
if a == 0 then
doPlayerSendCancel(cid, 'You need to be promoted in order to use this item.')
elseif a == 2 then
doPlayerSendCancel(cid, 'Your\'re already promoted!')
else
doPlayerSetPromotionLevel(cid, 2)
doCreatureSay(cid, 'You are now ' .. getVocationInfo(getPlayerVocation(cid)).description .. '!', TALKTYPE_ORANGE_1)
doRemoveItem(item.uid)
end
return true
end