Sirion_Mido
Experienced Member
this script could be not hard but could be useful for some people
Here We Are
in your actions/scripts create file name voc.lua and paste the following
now in your actions/actions.xml paste the following:
Rep++ If It helpful For You
Here We Are
in your actions/scripts create file name voc.lua and paste the following
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local voc = {1,2,3,4}
if isInArray(voc,getPlayerVocation(cid)) then
doPlayerSetPromotionLevel(cid, 1)
doCreatureSay(cid, "Promoted !", TALKTYPE_ORANGE_1)
end
return true
end
now in your actions/actions.xml paste the following:
XML:
<action itemid="5785" event="script" value="voc.lua"/>
Rep++ If It helpful For You
Last edited: