Vlwws, vo testa jah jah edito...
function onSay(cid, words, param)
if isPremium(cid) == TRUE then
if getPlayerStorageValue(cid, 1020) == 50 then
if(getPlayerVocation(cid) > 11) then
if(doPlayerRemoveItem(cid, 8839,50) == TRUE) then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "msg.")
setPlayerPromotionLevel(cid, 1)
else
doPlayerSendTextMessage(cid,22, "item.")
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
end
else
doPlayerSendCancel(cid, "promot.")
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
end
return TRUE
end
end
end
Vc pode me responder esta? tipo esse eh um talkaction que precisa ter um item pra virar 2° promotion...
mas na parte if(getPlayerVocation(cid) > 11) then, tem de botar a id da vocation? [em negrito]