Created
March 7, 2014 17:50
-
-
Save Pandragon/9416325 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Eclipse Workspace Patch 1.0 | |
#P L2J_Server_BETA | |
Index: java/com/l2jserver/gameserver/network/clientpackets/EnterWorld.java | |
=================================================================== | |
--- java/com/l2jserver/gameserver/network/clientpackets/EnterWorld.java (revision 6469) | |
+++ java/com/l2jserver/gameserver/network/clientpackets/EnterWorld.java (working copy) | |
@@ -559,6 +559,16 @@ | |
activeChar.teleToLocation(TeleportWhereType.TOWN); | |
} | |
+ // Remove demonic weapon if character is not cursed weapon equipped | |
+ if ((activeChar.getInventory().getItemByItemId(8190) != null) && !activeChar.isCursedWeaponEquipped()) | |
+ { | |
+ activeChar.destroyItem("Zariche", activeChar.getInventory().getItemByItemId(8190), null, true); | |
+ } | |
+ if ((activeChar.getInventory().getItemByItemId(8689) != null) && !activeChar.isCursedWeaponEquipped()) | |
+ { | |
+ activeChar.destroyItem("Akamanah", activeChar.getInventory().getItemByItemId(8689), null, true); | |
+ } | |
+ | |
if (Config.ALLOW_MAIL) | |
{ | |
if (MailManager.getInstance().hasUnreadPost(activeChar)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment