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

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