Jump to content

[SHARE]Anti Heavy For Archers and Daggers + SubClass Fix


bauwbas

Recommended Posts

in UseItem.Java file pop ups a red line says SystemMessageId.CANNOT_EQUIP_ITEM_DUE_TO_BAD_CONDITION cannot be resolved.

Does anyone knows the reason so you can help me guys?

am newbie in developing and in mxc xD

thanks for your time

Link to comment
Share on other sites

  • 5 months later...

Well sorry for bumping an old post, but since i didn't find any other good post about it, i decided to post....

Well, there is a mistake, in useitem.java file, add this:

 

if ((item.getItem().getItemType() == L2ArmorType.HEAVY) && (activeChar.getClassId().getId() == 8) ||  (item.getItem().getItemType() == L2ArmorType.HEAVY) && (activeChar.getClassId().getId() == 23) ||  (item.getItem().getItemType() == L2ArmorType.HEAVY) && (activeChar.getClassId().getId() == 35) ||  (item.getItem().getItemType() == L2ArmorType.HEAVY) && (activeChar.getClassId().getId() == 93) ||  (item.getItem().getItemType() == L2ArmorType.HEAVY) && (activeChar.getClassId().getId() == 101) ||  (item.getItem().getItemType() == L2ArmorType.HEAVY) && (activeChar.getClassId().getId() == 108) || (item.getItem().getItemType() == L2ArmorType.HEAVY) && (activeChar.getClassId().getId() == 9) || (item.getItem().getItemType() == L2ArmorType.HEAVY) && (activeChar.getClassId().getId() == 24) || (item.getItem().getItemType() == L2ArmorType.HEAVY) && (activeChar.getClassId().getId() == 37) || (item.getItem().getItemType() == L2ArmorType.HEAVY) && (activeChar.getClassId().getId() == 92) || (item.getItem().getItemType() == L2ArmorType.HEAVY) && (activeChar.getClassId().getId() == 102) || (item.getItem().getItemType() == L2ArmorType.HEAVY) && (activeChar.getClassId().getId() == 109))
         {
             activeChar.sendPacket(new SystemMessage(SystemMessageId.CANNOT_EQUIP_ITEM_DUE_TO_BAD_CONDITION));
             return;
         }

 

Otherwise, all these classes won't be able to wear ANY armor.

Link to comment
Share on other sites

  • 5 months later...
  • 1 month later...

Hello friend's please check this code , useitem.java and add to l2jfrozen , i have problem on add ;/ error on compilation please help me , mhm heavy armor dont use , dagger , bow , and tyrant please help me thanks

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...