Ir para conteúdo

Featured Replies

  • Respostas 6
  • Visualizações 1.1k
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • function onAdvance(cid, skill, newLevel, oldLevel) if skill == 8 then if newLevel >= 20 and getPlayerStorageValue(cid, 38273) < 1 then setPlayerStorageValue(cid, 38273, 1) doPlayerSetProm

  • Não testei. function onAdvance(cid, skill, oldlevel, newlevel) local config = { level = 20, storage = 6576, } if (getPlayerLevel(cid) >= config.level and getCreatur

Postado
function onAdvance(cid, skill, newLevel, oldLevel)


if skill == 8 then


if newLevel >= 20 and getPlayerStorageValue(cid, 38273) < 1 then


setPlayerStorageValue(cid, 38273, 1)

doPlayerSetPromotionLevel(cid, 1)


end

end

return true

end

Editado por Skyforever (veja o histórico de edições)

Retirado.

 

Skype: joaoxtibia85.

Postado

Não testei.


function onAdvance(cid, skill, oldlevel, newlevel)

 local config = {

	   level = 20,

	   storage = 6576,

			    }


 if (getPlayerLevel(cid) >= config.level and getCreatureStorage(cid, config.storage) <= 0) then

	 doCreatureSetStorage(cid, config.storage, 1)

	 doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE, 'Voce foi promovido!')

	 return doPlayerSetPromotionLevel(cid, 1)

 end


end

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.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo