Jump to content

Recommended Posts

Posted

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

  • 5 months later...
Posted

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.

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

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

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...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock