Jump to content
  • 0

add an armor restriction


Question

3 answers to this question

Recommended Posts

  • 0
Posted

In useitem.java (clientpackets)

if (activeChar.getClassId().getId() == 93 || activeChar.getClassId().getId() == 108 || activeChar.getClassId().getId() == 101 || activeChar.getClassId().getId() == 8 || activeChar.getClassId().getId() == 23 || activeChar.getClassId().getId() == 36)
                	{
                		if (item.getItemType() == L2ArmorType.HEAVY)
                		{
                			return;
                		}   
                	}

if (activeChar.getClassId().getId() == 9 || activeChar.getClassId().getId() == 92 || activeChar.getClassId().getId() == 24 || activeChar.getClassId().getId() == 102 || activeChar.getClassId().getId() == 37 || activeChar.getClassId().getId() == 109)
                	{
                		if (item.getItemType() == L2ArmorType.HEAVY)
                		{
                			return;
                		}   
                	}

  • 0
Posted

switch (activeChar.getClassId().getId())
{
case 93:
case 108:
case 101:
case 8:
case 23:
case 36:
case 9:
case 92:
case 24:
case 102:
case 37:
case 109:
            	if (item.getItemType() == L2ArmorType.HEAVY)
                	return;
}

If Boorinio IDs are correct.

  • 0
Posted

will return true when [val] is equal to the players raceid.(1 = human,2 = elf,3 = darkelf,4 = orc,5 = dwarf,6 = kamael)

 

<player race=”[val]” />

This is condition for races.

 

ill return true if the players class id is contained in the comma separated list of [val] ([val] = class1,class2,class3,….)

<player class_id_restriction=”[val]” />

 

Also please read http://www.l2jserver.com/wiki/Skills

will be good for you :D

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