Tópico: [Outros] Correção do java contra phx.
Ver um Único Post
Antigo 21-11-2008, 06:23 PM   #1 (permalink)
Tony_RadeoN
Membro - Coronel
 
Avatar de Tony_RadeoN
 
Registrado em: Nov 2008
Localização: Firenze
Posts: 192
Agradeceu: 260
Agradecido 629 Vezes em 83 Posts
Achei Ruim:
Acharam ruim Vezes em Posts
Meu Estado:
Enviar mensagem via Windows Live Messenger para Tony_RadeoN Enviar mensagem via Skype para Tony_RadeoN
Nome Real: Antonio / Junior

Inventório de Tony_RadeoN

Padrão Correção do java contra phx.

Funciona Somente na Rev 2741 l2jfree (INTERLUDE)


Vcs Terao Que alterar os arquivos .class localizado nos arquivos .jar
Citação:
coloque este script na linea 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;
}


e Depois Essa :


@Override
protected void runImpl()
{
L2PcInstance activeChar = getClient().getActiveChar();


procure o arquivo
net.sf.l2j.gameserver.clientpackets depois você terà que procurar SendWareHouseDepositList.java
in net.sf.l2j.gameserver.clientpackets you will find SendWareHouseDepositList.java
abri-la depois que juntar, em seguida, as importações final estas linhas:
Código:

import net.sf.l2j.gameserver.util.IllegalPlayerAction;
import net.sf.l2j.gameserver.util.Util;

depois adicione na linha 103 :

}

if (player.getActiveEnchantItem() != null)
{
Util.handleIllegalPlayerAction(player,"Mofo "+player.getName()+" tried to use phx and got BANED! Peace :-h", IllegalPlayerAction.PUNISH_KICKBAN);
return;
}




Creditos : Kidzor

Tutorial para aprender a compilar com o marven : [Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]

Tony_RadeoN está offline  
Os Seguintes 7 Usuários disseram Obrigado(a) para Tony_RadeoN por gostarem deste post :
darlanws (31-10-2009), devid (17-08-2009), New (07-02-2009), ScareTissue (19-08-2009), slaughterxxx (21-04-2009)
Links Patrocinados
 

Search Engine Optimization by vBSEO 3.3.0