if (Config.PVP_PK_TITLE)
newChar.setTitle(Config.PVP_TITLE_PREFIX + "0" + Config.PK_TITLE_PREFIX + "0 ");
// Shortcuts
newChar.registerShortCut(new L2ShortCut(0, 0, 3, 2, -1, 1)); // Attack
newChar.registerShortCut(new L2ShortCut(3, 0, 3, 5, -1, 1)); // Take
newChar.registerShortCut(new L2ShortCut(10, 0, 3, 0, -1, 1)); // Sit
ItemTable itemTable = ItemTable.getInstance();
L2Item[] items = template.getItems();
for (L2Item item2 : items)
{
L2ItemInstance item = newChar.getInventory().addItem("Init", item2.getItemId(), 1, newChar, null);
if (item.getItemId() == 5588)
newChar.registerShortCut(new L2ShortCut(11, 0, 1, item.getObjectId(), -1, 1)); // Tutorial Book shortcut
if (item.isEquipable())
if(newChar.getActiveWeaponItem() == null || !(item.getItem().getType2() != L2Item.TYPE2_WEAPON))
newChar.getInventory().equipItemAndRecord(item);
}
L2SkillLearn[] startSkills = SkillTreeTable.getInstance().getAvailableSkills(newChar, newChar.getClassId());
for(L2SkillLearn startSkill : startSkills)
{
newChar.addSkill(SkillTable.getInstance().getInfo(startSkill.getId(), startSkill.getLevel()), true);
if(startSkill.getId() == 1001 || startSkill.getId() == 1177)
newChar.registerShortCut(new L2ShortCut(1, 0, 2, startSkill.getId(), 1, 1));
if(startSkill.getId() == 1216)
newChar.registerShortCut(new L2ShortCut(10, 0, 2, startSkill.getId(), 1, 1));
if(Config.DEBUG)
_log.fine("DEBUG "+getType()+": Adding starter skill:" + startSkill.getId() + " / " + startSkill.getLevel());
}