Jump to content
  • 0

Making Starting Items Equipable


Question

Posted
# Starting itens for fighter's classes
StartingCustomItemsFighter = 352,1;2378,1;2493,1;2411,1;2425,1;2449,1;57,50000000;1463,2000;
if (Config.CUSTOM_STARTER_ITEMS_ENABLED)
        {
            if (newChar.isMageClass())
            {
                for (final int[] reward : Config.STARTING_CUSTOM_ITEMS_M)
                {
                    if (ItemTable.getInstance().createDummyItem(reward[0]).isStackable())
                        newChar.getInventory().addItem("Starter Items Mage", reward[0], reward[1], newChar, null);
                    else
                        for (int i = 0; i < reward[1]; ++i)
                            newChar.getInventory().addItem("Starter Items Mage", reward[0], 1, newChar, null);                
            }
            }
            else
            {
                for (final int[] reward : Config.STARTING_CUSTOM_ITEMS_F)
                {
                    if (ItemTable.getInstance().createDummyItem(reward[0]).isStackable())
                        newChar.getInventory().addItem("Starter Items Fighter", reward[0], reward[1], newChar, null);
                    else
                        for (int i = 0; i < reward[1]; ++i)
                            newChar.getInventory().addItem("Starter Items Fighter", reward[0], 1, newChar, null);
                }
            }
        }
if (item.isEquipable())
                if (newChar.getActiveWeaponItem() == null || !(item.getItem().getType2() != L2Item.TYPE2_WEAPON))
                    newChar.getInventory().equipItemAndRecord(item);
        }

 what should I change to make starting items equipable? l2jfrozen

2 answers to this question

Recommended Posts

  • 0
Posted (edited)

anyone know how to make jewels equipable? I added them to char_templates but they come on ur inventory and not equipped.

 

 

edit: found it, if anyone wanna know how to equip jewels on new char (l2jfrozen)

if (item.isEquipable())
                if (newChar.getActiveWeaponItem() == null || !(item.getItem().getType2() != L2Item.TYPE2_WEAPON) ||  (item.getItem().getBodyPart() & L2Item.SLOT_NECK) > 0 || (item.getItem().getBodyPart() & L2Item.SLOT_L_EAR) > 0 || (item.getItem().getBodyPart() & L2Item.SLOT_R_EAR) > 0 || (item.getItem().getBodyPart() & L2Item.SLOT_L_FINGER) > 0 || (item.getItem().getBodyPart() & L2Item.SLOT_R_FINGER) > 0)
                    newChar.getInventory().equipItemAndRecord(item);
Edited by sammysam
Guest
This topic is now closed to further replies.


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