05-02-2009, 02:09 AM
|
#6 (permalink)
|
|
Membro - Veterano
Registrado em: Jan 2009
Localização: Bahia
Posts: 503
Agradecido 890 Vezes em 229 Posts
Achei Ruim:
Acharam ruim Vezes em Posts
Meu Estado:
|
Axei a solucao ai na net mas nao sei como editar arquivos java.
Sera que alguem poderia quebrar este galho pra mim?
fico grato!
O que axei foi o seguinte:
O arquivo do announce é o say2.java encontrando em clientpacket's
Adicione esta linha depois de linha 80
// If no or wrong channel is used - return
if (_type == SystemChatChannelId.Chat_None || _type == SystemChatChannelId.Chat_Announce || _type == SystemChatChannelId.Chat_Critical_Announce
|| _type == SystemChatChannelId.Chat_System || _type == SystemChatChannelId.Chat_Custom
|| (_type == SystemChatChannelId.Chat_GM_Pet && !activeChar.isGM()))
{
_log.warn("[Anti-Phx] Illegal chat channel was used.");
return;
}
if (activeChar == null)
{
_log.warn("[Say2.java] Active Character is null.");
return;
}
Depois adicione essa
@Override
protected void runImpl()
{
L2PcInstance activeChar = getClient().getActiveChar();
|
|
|