Ir para conteúdo
  • Cadastre-se

Posts Recomendados

  • 4 months later...
  • Respostas 13
  • Created
  • Última resposta

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

Fala Galerinha nessa madrugada eu modifiquei meu script e resolvi posta-lo para ajudar os OT-Admin iniciantes e ter algo diferente no server.   O Sistem Funciona assim, sabe quando vem um noob e fala " ADM Ponhe Double XP!!", com esse sistema vc resolve esse problema, ele se resumi quanto mais Players Online + XP é Adc para quem estiver online, simples, simples, sem mais delongas.   Em /data/creaturescripts/ Adicione a seguinte tag: <event type="login" name="MultipleExp" event="script"

  Em 16/07/2014 em 09:16, Emersonssss disse:

Fala Galerinha nessa madrugada eu modifiquei meu script e resolvi posta-lo para ajudar os OT-Admin iniciantes e ter algo diferente no server.

 

O Sistem Funciona assim, sabe quando vem um noob e fala " ADM Ponhe Double XP!!", com esse sistema vc resolve esse problema, ele se resumi quanto mais Players Online + XP é Adc para quem estiver online, simples, simples, sem mais delongas.

 

Em /data/creaturescripts/

Adicione a seguinte tag:

<event type="login" name="MultipleExp" event="script" value="MultipleExpLogin.lua"/>

Em /data/creaturescripts/scripts/

Crie um arquivo.lua chamado MultipleExpLogin.lua e adicione :

local config = getBooleanFromString(getConfigInfo('experienceStages'))


function onLogin(cid)
registerCreatureEvent(cid, "MultipleExp")
if(config) then
		exp = getExperienceStage(getPlayerLevel(cid), getVocationInfo(getPlayerVocation(cid)).experienceMultiplier)
end
local players = getPlayersOnline()

if(#players >= 1 and #players <= 49) then
    for _, pid in ipairs(players) do
		if isPremium(pid) then
		doPlayerSetRate(pid, SKILL__LEVEL, 1.5)
		else
		doPlayerSetRate(pid, SKILL__LEVEL, 1.0)
    end
end
if isPremium(cid) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "--[MultipleExp System]--\nPlayers Online : "..#players.."\nSeu Exp Foi Atualizado Para : ("..exp.."x + 0.5x)")
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "--[MultipleExp System]--\nPlayers Online : "..#players.."\nSeu Exp Foi Atualizado Para : ("..exp.."x)")
end
elseif(#players >= 50 and #players <= 99) then
    for _, pid in ipairs(players) do
		if isPremium(pid) then
		doPlayerSetRate(pid, SKILL__LEVEL, 1.6)
		else
		doPlayerSetRate(pid, SKILL__LEVEL, 1.1)
    end
end
if isPremium(cid) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "--[MultipleExp System]--\nPlayers Online : "..#players.."\nSeu Exp Foi Atualizado Para : ("..exp.."x + 0.5x + 0.1x)")
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "--[MultipleExp System]--\nPlayers Online : "..#players.."\nSeu Exp Foi Atualizado Para : ("..exp.."x + 0.1x)")
end
elseif(#players >= 100 and #players <= 149) then
    for _, pid in ipairs(players) do
		if isPremium(pid) then
		doPlayerSetRate(pid, SKILL__LEVEL, 1.7)
		else
		doPlayerSetRate(pid, SKILL__LEVEL, 1.2)
    end
end
if isPremium(cid) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "--[MultipleExp System]--\nPlayers Online : "..#players.."\nSeu Exp Foi Atualizado Para : ("..exp.."x + 0.5x + 0.2x)")
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "--[MultipleExp System]--\nPlayers Online : "..#players.."\nSeu Exp Foi Atualizado Para : ("..exp.."x + 0.2x)")
end
elseif(#players >= 150 and #players <= 199) then
    for _, pid in ipairs(players) do
		if isPremium(pid) then
		doPlayerSetRate(pid, SKILL__LEVEL, 1.8)
		else
		doPlayerSetRate(pid, SKILL__LEVEL, 1.3)
    end
end
if isPremium(cid) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "--[MultipleExp System]--\nPlayers Online : "..#players.."\nSeu Exp Foi Atualizado Para : ("..exp.."x + 0.5x + 0.3x)")
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "--[MultipleExp System]--\nPlayers Online : "..#players.."\nSeu Exp Foi Atualizado Para : ("..exp.."x + 0.3x)")
end
elseif(#players >= 200 and #players <= 249) then
    for _, pid in ipairs(players) do
		if isPremium(pid) then
		doPlayerSetRate(pid, SKILL__LEVEL, 1.9)
		else
		doPlayerSetRate(pid, SKILL__LEVEL, 1.4)
    end
end
if isPremium(cid) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "--[MultipleExp System]--\nPlayers Online : "..#players.."\nSeu Exp Foi Atualizado Para : ("..exp.."x + 0.5x + 0.4x)")
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "--[MultipleExp System]--\nPlayers Online : "..#players.."\nSeu Exp Foi Atualizado Para : ("..exp.."x + 0.4x)")
end
elseif(#players >= 250) then
    for _, pid in ipairs(players) do
		if isPremium(pid) then
		doPlayerSetRate(pid, SKILL__LEVEL, 2.0)
		else
		doPlayerSetRate(pid, SKILL__LEVEL, 1.5)
    end
end
if isPremium(cid) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "--[MultipleExp System]--\nPlayers Online : "..#players.."\nSeu Exp Foi Atualizado Para : ("..exp.."x + 0.5x + 0.5x)")
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "--[MultipleExp System]--\nPlayers Online : "..#players.."\nSeu Exp Foi Atualizado Para : ("..exp.."x + 0.5x)")
end
end
return true
end

Creditos?

Emerson Henrique 

E quero ver algum filho de uma pessoa vim falar que eu copie esse script -.-"

 

Funciona para tfs 1.2?

Expand   Mostrar mais  

 

Link para o post
Compartilhar em outros sites

Não pois as funções estão diferente, foram reformuladas, porem posso passar pra 1.2 mais da um trampin

Skype : emersonaaron Se Te ajudei não me REP+ isso não muda nada! kkkkkkkkkkkk

Link para o post
Compartilhar em outros sites

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

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

×   Seu conteúdo anterior foi restaurado.   Limpar o editor

×   Não é possível colar imagens diretamente. Carregar ou inserir imagens do URL.

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

  • Estatísticas dos Fóruns

    96844
    Tópicos
    519599
    Posts



×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo