Jump to content
  • 0

Daggers Help


Question

Posted

pedia gia sas epidi m  proekipse ena unbalance me ton daggera kai 8elo na ton kano na min bori na foraei tin imperial pos gnt? 3erete ama eiparxi sto config

2 answers to this question

Recommended Posts

  • 0
Posted

UseItem.java

if (item.getItem().getItemType() == L2ArmorType.HEAVY
				{
activeChar.sendPacket(SystemMessageId.CANNOT_EQUIP_ITEM_DUE_TO_BAD_CONDITION);
					return;
}

 

και θα βαλεις το _activeChar.getClassId().getId() ως restriction για τα classes που δεν θες να φορανε heavy armor

 

EDIT:

 

Στο εχω φτιαξει δεν το δοκιμασα.

 

if (activeChar.getClassId() == ClassId.Adventurer || activeChar.getClassId() == ClassId.abysswalker || activeChar.getClassId() == ClassId.windrider  && item.getItemType() == L2ArmorType.HEAVY)
           {
             activeChar.sendMessage("Your class is not allowed to wear a Heavy armor");
               return;
          }

 

Αν το δοκιμασεις σε παρακαλω πες μου αν λειτουργει

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
Answer this question...

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