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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..

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