Topic: Java Anti-Phx Enchant
And if we post that lets add the other one Tongue anti phx enchant:
in net/sf/l2j/gameserver/clientpackets you will findSend WareHouseDepositList.java
open it then add after imports finsih this lines:
import net.sf.l2j.gameserver.util.IllegalPlayerAction;
import net.sf.l2j.gameserver.util.Util;
after that:
}
if (player.getActiveEnchantItem() != null)
{
player.setAccountAccesslevel(-100);// ban first to remove any potential exploit like restarting
player.sendMessage("You got owned by useing phx!");
try
{
Thread.sleep(5000); // Sleeps 5 seconds
}
catch (InterruptedException e)
{}
player.closeNetConnection(); // BB forever)
return;
}
ul insert that at line after this lines:
if ((warehouse instanceof ClanWarehouse) && Config.GM_DISABLE_TRANSACTION && player.getAccessLevel() >= Config.GM_TRANSACTION_MIN && player.getAccessLevel() <= Config.GM_TRANSACTION_MAX)
{
player.sendMessage("Transactions are disable for your Access Level");
return;
}
or find
// Alt game - Karma punishment
if (!Config.ALT_GAME_KARMA_PLAYER_CAN_USE_WAREHOUSE && player.getKarma() > 0) return;
and put the anti-phx enchant code above it.
Thanks "Setekh"
