Jump to content

[Share] Forbid to equip some kind of items


Rizel

Recommended Posts

\UseItem.java:[437,22] ';' expected

\UseItem.java:[441,1] ';' reached end of file while parsing

 

that it shows me in cmd console when i try to compile...

 

i haven't edit sth at these lines!

Link to comment
Share on other sites

  • 2 weeks later...

i don't see the point of unequiping jewels but i updated the post with jewels and underwear too

 

Very nice thanks a lot :)

Well, you know..I needed the complete script..cuz is kinda nosense to unequip Armor+Weap and to leave Jewellery + Underwear (especially if they are tattoo's with stats XD).

 

thanks anyway.

Link to comment
Share on other sites

  • 2 weeks later...
  • 1 month later...
  • 2 weeks later...
  • 3 weeks later...
  • 3 weeks later...

ok, here my FeedBack :

 

      if (activeChar.getClassId().getId() == 88)

        {

           if (item.getItemType() == L2ArmorType.MAGIC)

           {

              activeChar.sendPacket(new +SystemMessage(SystemMessageId.NO_CONDITION_TO_EQUIP));

              return;

           }  

        }

 

Armor Types for Me Didnt Worked at all (tried only MAGIC) maybe is different in L2J.

 

################################################################

 

 

        if (activeChar.getClassId().getId() == 88)

        {

           if (item.getItemType() == L2ArmorType.BOW)

           {

              activeChar.sendPacket(new +SystemMessage(SystemMessageId.NO_CONDITION_TO_EQUIP));

              return;

           }  

        }

 

This Worked.

 

#################################################################

 

 

The sub-class bugging Prevention Worked Well.

 

#################################################################

 

 

Now My Question is : How can be In L2J the Armor Type ? I mean...Why the Hell didnt worked ?

same prob with ®A-Style™.

I found in database that the column for the type of weapon is named "WeaponType" and for armor is named "Armor_Type".

So i changed "l2ArmorType" to "l2Armor_Type" but didn't worked. It gave error in compile

Link to comment
Share on other sites

same prob with ®A-Style™.

I found in database that the column for the type of weapon is named "WeaponType" and for armor is named "Armor_Type".

So i changed "l2ArmorType" to "l2Armor_Type" but didn't worked. It gave error in compile

 

what pack you use and which chronicle

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.

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