sammysam Posted September 21, 2015 Posted September 21, 2015 # 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
0 sammysam Posted September 23, 2015 Author Posted September 23, 2015 (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 September 23, 2015 by sammysam
Question
sammysam
what should I change to make starting items equipable? l2jfrozen
2 answers to this question
Recommended Posts