Remove demonic weapon if character is not cursed weapon equipped.
This commit is contained in:
parent
29130f477a
commit
28ffb4a437
@ -530,6 +530,16 @@ public class EnterWorld extends L2GameClientPacket
|
|||||||
activeChar.teleToLocation(TeleportWhereType.TOWN);
|
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 (Config.ALLOW_MAIL)
|
||||||
{
|
{
|
||||||
if (MailManager.getInstance().hasUnreadPost(activeChar))
|
if (MailManager.getInstance().hasUnreadPost(activeChar))
|
||||||
|
Loading…
Reference in New Issue
Block a user