eu quero que chegue a vocação na conta na hora, e nao que chegue um item pra da use
esse script ja ta sendo usado nas outra voc que eu peguei a base
to usando esses dois script
<item id="13496" article="a" name="Bills">
<attribute key="slotType" value="necklace" />
<attribute key="weight" value="1" />
</item>
---------------------------------------------------------
function onThink(cid, interval)
local itemid = 13496
local outfit = {lookType = 551}
if isPlayer(cid) then
if getPlayerItemCount(cid, itemid) >= 1 then
if getPlayerStorageValue(cid,30023) == 4 then
doPlayerSetVocation(cid, 490)
else
doPlayerSetVocation(cid, 495)
end
doPlayerRemoveItem(cid, itemid, 1)
doCreatureChangeOutfit(cid, outfit)
addEvent(doRemoveCreature, 1, cid)
end
end
return true
end