Ir para conteúdo
  • Cadastre-se
  • 0

GM ao invés de Anunciaments


Wesley Oliveira

Pergunta

22 respostass a esta questão

Posts recomendados

  • 0
1 hora atrás, Wesley Oliveira disse:

alguém pode me ajudar não consigo achar o lugar que muda o GM: para anunciamente e colocar pra quando matar um play não aparecer o que esta na foto 

não apareceu a foto amigão.

Lineage 2 Lords

Link para o comentário
Compartilhar em outros sites


  • 0
1 hora atrás, Wesley Oliveira disse:

up

como o HityZ disse, pra vc corrigir isso é preciso ter a source do seu servidor, e coloca-la no eclipse, e ir em L2PcInstance.java.

 

 

Editado por MeGaPacKl

1xFoI0n.jpg.5e0903bc1b582f95590d4a4c1fce368a.jpg

Link para o comentário
Compartilhar em outros sites

  • 0
10 horas atrás, MeGaPacKl disse:

como o HityZ disse, pra vc corrigir isso é preciso ter a source do seu servidor, e coloca-la no eclipse, e ir em L2PcInstance.java.

 

Tem como me falar onde fica esse , nao intendo muito de java, ou se tiver como fazer um video vlw

 

Link para o comentário
Compartilhar em outros sites

  • 0
 

ja estudei o java agora e saber a linha da correção

 

Announcements.getInstance().announceToAll("Player " + getName() + " hunted Player " + target.getName());

 

 

 

olha a diff daquele poste ai em cima pra fazer a correçao

1xFoI0n.jpg.5e0903bc1b582f95590d4a4c1fce368a.jpg

Link para o comentário
Compartilhar em outros sites

  • 0
 

Announcements.getInstance().announceToAll("Player " + getName() + " hunted Player " + target.getName());

 

 

 

olha a diff daquele poste ai em cima pra fazer a correçao

                        Announcements.getInstance().announceToAll("Player " + getName() + " hunted Player " + target.getName());
                    }
                }
                else if (targetPlayer.getPvpFlag() == 0) // Target player doesn't have karma
                {
                    increasePkKillsAndKarma(targetPlayer.getLevel());
                    if (target instanceof L2PcInstance && Config.ANNOUNCE_PK_KILL)
                    {
                        Announcements.getInstance().announceToAll("Player " + getName() + " has assassinated Player " + target.getName());
                    }
                }
            }
        }
        if (target instanceof L2PcInstance && Config.ANNOUNCE_ALL_KILL)
        {
            Announcements.getInstance().announceToAll("Player " + getName() + " killed Player " + target.getName());
        }

 

Tem que colocar em todos ?

Link para o comentário
Compartilhar em outros sites

  • 0

Se você não tem conhecimento em java, não mexe! Aprenda o básico e depois tenta mudar.
Quando você aprender o básico você saberá onde mudar e como.
 

De todas as criaturas que respiram e se movem sobre a terra, nada é criado mais fraco que o homem.

Link para o comentário
Compartilhar em outros sites

  • 0
 

Se você não tem conhecimento em java, não mexe! Aprenda o básico e depois tenta mudar.
Quando você aprender o básico você saberá onde mudar e como.
 

eu ja tenho conhecimento no JAVA o problema que o cara falou pra fazer a correção mas o que ele me mandou parece que ja esta, a minha pergunta e se a correção e para todos

 

Link para o comentário
Compartilhar em outros sites

  • 0
                        Announcements.getInstance().announceToAll("Player " + getName() + " hunted Player " + target.getName());
                    }
                }
                else if (targetPlayer.getPvpFlag() == 0) // Target player doesn't have karma
                {
                    increasePkKillsAndKarma(targetPlayer.getLevel());
                    if (target instanceof L2PcInstance && Config.ANNOUNCE_PK_KILL)
                    {
                        Announcements.getInstance().announceToAll("Player " + getName() + " has assassinated Player " + target.getName());
                    }
                }
            }
        }
        if (target instanceof L2PcInstance && Config.ANNOUNCE_ALL_KILL)
        {
            Announcements.getInstance().announceToAll("Player " + getName() + " killed Player " + target.getName());
        }

Dessa forma que tu postou, da na mesma do que já está no seu servidor, não vai mudar nada.

Para o anúncio do kill subir no chat de cima, como se fosse uma mensagem da system, faça assim:

				SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.S1_S2);
				if (Config.ANNOUNCE_PVP_KILL)
					sm.addString(" - " + getName() + " defeated " + target.getName());
					Broadcast.toAllOnlinePlayers(sm);

Esse é com base na aCis, não sei se vai funcionar no seu, mas, faça o teste.

mSw8ymV.gif

Link para o comentário
Compartilhar em outros sites

  • 0
 

                        Announcements.getInstance().announceToAll("Player " + getName() + " hunted Player " + target.getName());
                    }
                }
                else if (targetPlayer.getPvpFlag() == 0) // Target player doesn't have karma
                {
                    increasePkKillsAndKarma(targetPlayer.getLevel());
                    if (target instanceof L2PcInstance && Config.ANNOUNCE_PK_KILL)
                    {
                        Announcements.getInstance().announceToAll("Player " + getName() + " has assassinated Player " + target.getName());
                    }
                }
            }
        }
        if (target instanceof L2PcInstance && Config.ANNOUNCE_ALL_KILL)
        {
            Announcements.getInstance().announceToAll("Player " + getName() + " killed Player " + target.getName());
        }

Dessa forma que tu postou, da na mesma do que já está no seu servidor, não vai mudar nada.

Para o anúncio do kill subir no chat de cima, como se fosse uma mensagem da system, faça assim:


				SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.S1_S2);
				if (Config.ANNOUNCE_PVP_KILL)
					sm.addString(" - " + getName() + " defeated " + target.getName());
					Broadcast.toAllOnlinePlayers(sm);

Esse é com base na aCis, não sei se vai funcionar no seu, mas, faça o teste.

cabulozo vill mas ainda vou conseguir

 

Link para o comentário
Compartilhar em outros sites

  • 0

Que nada, é bem simples. Onde tem:

Announcements.getInstance().announceToAll("Player " + getName() + " has assassinated Player " + target.getName());

Você apaga e adiciona isso:

				SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.S1_S2);
				if (Config.ANNOUNCE_PVP_KILL)
					sm.addString(" - " + getName() + " defeated " + target.getName());
					Broadcast.toAllOnlinePlayers(sm);

Simples mano. ?

mSw8ymV.gif

Link para o comentário
Compartilhar em outros sites

  • 0

simples pra

 

Que nada, é bem simples. Onde tem:


Announcements.getInstance().announceToAll("Player " + getName() + " has assassinated Player " + target.getName());

Você apaga e adiciona isso:


				SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.S1_S2);
				if (Config.ANNOUNCE_PVP_KILL)
					sm.addString(" - " + getName() + " defeated " + target.getName());
					Broadcast.toAllOnlinePlayers(sm);

Simples mano. ?

que são Expert 

Link para o comentário
Compartilhar em outros sites

  • 0
 

Que nada, é bem simples. Onde tem:


Announcements.getInstance().announceToAll("Player " + getName() + " has assassinated Player " + target.getName());

Você apaga e adiciona isso:


				SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.S1_S2);
				if (Config.ANNOUNCE_PVP_KILL)
					sm.addString(" - " + getName() + " defeated " + target.getName());
					Broadcast.toAllOnlinePlayers(sm);

Simples mano. ?

Obrigado pela ajuda mas consegui arrumar , nao foi bem assim que voce colocou mas achei o erro . 

Link para o comentário
Compartilhar em outros sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Visitante
Responder esta pergunta...

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

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Processando...
  • Registre-se

    Faça parte da maior e  mais antigas comunidades sobre Lineage2 da América Latina.





×
×
  • Criar Novo...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.