Postado Março 30, 2014 11 anos Autor kkkkkkk desculpa te encher o saco mais ta dando um erro tipo td vez q eu deslogo ele volta pra vip baiak sorcerer
Postado Março 30, 2014 11 anos Agora dá certo, e me responde pm Actions.xml <action itemid="10137" script="Promotion.lua"/> actions/scripts/Promotion.lua function onUse(cid, item) if getPlayerVocation(cid) > 8 then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You already was promoted!") else if getPlayerVocation(cid) > 4 and getPlayerVocation(cid) < 9 then doPlayerSetVocation(cid, getPlayerVocation(cid)+4) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have been promoted!") doRemoveItem(item.uid, 1) setPlayerStorageValue(cid,989165792,1) end if getPlayerVocation(cid) <= 4 then doPlayerSetVocation(cid, getPlayerVocation(cid)+8) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have been promoted!") doRemoveItem(item.uid, 1) setPlayerStorageValue(cid,989165792,1) end end end CreatureScripts.xml <event type="login" name="Promotion" event="script" value="Promotion.lua"/> creaturescripts/scripts/Promotion.lua function onLogin(cid) if getPlayerStorageValue(cid,989165792) == -1 then setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)) else if getPlayerVocation(cid) > 4 and getPlayerVocation(cid) < 9 then doPlayerSetVocation(cid, getPlayerVocation(cid)+4) end if getPlayerVocation(cid) < 5 then doPlayerSetVocation(cid, getPlayerVocation(cid)+8) end return true end return true end
Postado Agosto 9, 2014 11 anos desculpa reviver o topico, mas estou com o mesmo problema, quando eu logo, a nova promotion some.. TE AJUDEI ? DA REP+
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.