Skip to content

[Help] armor restriction

Featured Replies

Hello, i have added this :

 

		if (item.getItemType() == L2ArmorType.HEAVY)
		{
			if ((activeChar.getClassId().getId() == 93) || (activeChar.getClassId().getId() == 101) || (activeChar.getClassId().getId() == 108) || (activeChar.getClassId().getId() == 8) || (activeChar.getClassId().getId() == 36) || (activeChar.getClassId().getId() == 9) || (activeChar.getClassId().getId() == 37) || (activeChar.getClassId().getId() == 24) || (activeChar.getClassId().getId() == 92) || (activeChar.getClassId().getId() == 102) || (activeChar.getClassId().getId() == 109) || (activeChar.getClassId().getId() == 114))
			{
				activeChar.sendPacket(SystemMessageId.CANNOT_EQUIP_ITEM_DUE_TO_BAD_CONDITION);
				return;
			}
		}

		if (item.getItemType() == L2WeaponType.BOW)
		{
			if ((activeChar.getClassId().getId() == 5) || (activeChar.getClassId().getId() == 6) || (activeChar.getClassId().getId() == 90) || (activeChar.getClassId().getId() == 91) || (activeChar.getClassId().getId() == 20) || (activeChar.getClassId().getId() == 32) || (activeChar.getClassId().getId() == 106) || (activeChar.getClassId().getId() == 99) || (activeChar.getClassId().getId() == 114) || (activeChar.getClassId().getId() == 93))
			{
				activeChar.sendPacket(SystemMessageId.CANNOT_EQUIP_ITEM_DUE_TO_BAD_CONDITION);
				return;
			}
		}

 

in useitem.java but why it dosen't work ? when i wear an heavy armor i get the message but the armor dosen't unequip :)

why dont u make one passive penalty buff and add it in skill trees of the classes u dont want to use heavy ? its much more easier!!!

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.