Skip to content

Instantly share code, notes, and snippets.

@Pandragon
Created March 7, 2014 17:50
Show Gist options
  • Save Pandragon/9416325 to your computer and use it in GitHub Desktop.
Save Pandragon/9416325 to your computer and use it in GitHub Desktop.
### 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