Versus Posted August 17, 2009 Posted August 17, 2009 You forgot pets, pets got enchant level too and it's pretty high. If you use it you'll ban many innocent people.
Nefer Posted August 17, 2009 Author Posted August 17, 2009 You forgot pets, pets got enchant level too and it's pretty high. If you use it you'll ban many innocent people. False, but for security... add : if (i.isEquipable()) for (L2ItemInstance i : activeChar.getInventory().getItems()) { if (!activeChar.isGM()) { if (i.isEquipable()) { if (i.getEnchantLevel() > Config.ENCHANT_MAX_WEAPON || i.getEnchantLevel() > Config.ENCHANT_MAX_ARMOR || i.getEnchantLevel() > Config.ENCHANT_MAX_JEWELRY) { //Delete Item Over enchanted activeChar.getInventory().destroyItem(null, i, activeChar, null); //Message to Player activeChar.sendMessage("[server]:You have Items over enchanted you will be kikked!"); //If Audit is only a Kick, with this the player goes in Jail for 1.200 minutes activeChar.setPunishLevel(L2PcInstance.PunishLevel.JAIL, 1200); //Punishment e log in audit Util.handleIllegalPlayerAction(activeChar, "Player " + activeChar.getName() + " have item Overenchanted ", Config.DEFAULT_PUNISH); //Log in console _log.info("#### ATTENCTION ####"); _log.info(i+" item has been removed from player."); } } } }
Versus Posted August 19, 2009 Posted August 19, 2009 I am not wrong, i tried it on my server and the system started banning people with striders. I figured it out and fixed it. Well, i'm using interlude so, i don't know if it's the same on other clients too.
elmdd Posted December 18, 2009 Posted December 18, 2009 the poblema and that the staff enchant a weapon + + + and not equip it and then exchange with other players and when the other player equip and banned sorry for my bad English
evilgenx Posted December 18, 2009 Posted December 18, 2009 Very nice work around for phx! Thanks for the share!
jaden Posted December 21, 2009 Posted December 21, 2009 compiled with no problem. needs test it with players thanks.
Recommended Posts