Ir para conteúdo

Promotion Automatica


Kuro o Shiniga

Posts Recomendados

Opa Galera Venho Trazer Um Script Aqui De Promotion Automatica Quando O Player Alcança O Certo Level ele Ganha A Promotion Acho Bem Legal Por Nos Server Porque Varios Jogadores Não Sabem Aonde Fica O Npc Ow Para Aqueles Server Que Querem Que Começa Promotion.

 

Intão Vamos Começar :smile_positivo:

 

 

 

Creaturescript / Scripts / Promotion.lua E Adicione

 

 

local config = {

promoLevel = 1, -- promotion level : )

needLevel = 20, -- level to get promotion

needPremium = "yes" -- need premium (YES/NO)? :D

}

 

function onAdvance(cid, skill, oldlevel, newlevel)

if (skill == 0) and (newlevel >= config.needLevel and getPlayerPromotionLevel(cid)<config.promoLevel) then

if(string.lower(config.needPremium) == "yes" and isPremium(cid) == TRUE) or (string.lower(config.needPremium) == "no") then

setPlayerPromotionLevel(cid, config.promoLevel)

doPlayerSendTextMessage(cid, 22, "You have been promoted to " .. getVocationInfo(getPlayerVocation(cid)).name .. ".")

end

end

return TRUE

end

 

 

 

Creaturescript.xml Adicione

 

 

 

<event type="advance" name="promotion" script="promotion.lua"/>

 

 

 

E Isso Galerinha :tongue2:

 

 

 

Se Tiver Duvidas Pergunte Que Ajudarei :penguin:

Link para o comentário
Compartilhar em outros sites

  • 4 months later...
×
×
  • Criar Novo...