Some one help me? hard script
i add promotion 1 time if you dead lose it
but i need Stone when leader guild click give all promotion
how i do that
i add promotion 1 time if you dead lose it
but i need Stone when leader guild click give all promotion
how i do that
function onUse(cid, item, frompos, item2, topos)
if getPlayerVocation(cid) == 5 and getPlayerItemCount(cid,2348) >= 1 then
doPlayerSetVocation(cid, 9)
doSendAnimatedText(getPlayerPosition(cid), "Promotion", TEXTCOLOR_RED)
elseif getPlayerVocation(cid) == 6 and getPlayerItemCount(cid,2348) >= 1 then
doPlayerSetVocation(cid, 10)
doSendAnimatedText(getPlayerPosition(cid), "Promotion", TEXTCOLOR_RED)
elseif getPlayerVocation(cid) == 7 and getPlayerItemCount(cid,2348) >= 1 then
doPlayerSetVocation(cid, 11)
doSendAnimatedText(getPlayerPosition(cid), "Promotion", TEXTCOLOR_RED)
elseif getPlayerVocation(cid) == 8 and getPlayerItemCount(cid,2348) >= 1 then
doPlayerSetVocation(cid, 12)
doSendAnimatedText(getPlayerPosition(cid), "Promotion", TEXTCOLOR_RED)
else
end
end