{
L2ItemInstance item = itemTable.createItem(i.getItemId());
newChar.getInventory().addItem(item);
if(item.getItemId() == 5588) // tutorial book
{
newChar.registerShortCut(new L2ShortCut(11, 0, L2ShortCut.TYPE_ITEM, item.getObjectId(), -1));
}
if(item.isEquipable() && (newChar.getActiveWeaponItem() == null || item.getItem().getType2() != L2Item.TYPE2_WEAPON))
{
newChar.getInventory().equipItem(item, false);
}
}
// Scroll of Escape: Kamael Village
L2ItemInstance item = itemTable.createItem(9716);
item.setCount(5);
newChar.getInventory().addItem(item);
// Adventurer's Scroll of Escape
item = itemTable.createItem(10650);
item.setCount(10);
newChar.getInventory().addItem(item);
for(L2SkillLearn skill : SkillTreeTable.getInstance().getAvailableSkills(newChar, newChar.getClassId()))
{
newChar.addSkill(SkillTable.getInstance().getInfo(skill.id, skill.skillLevel), true);
}
if(newChar.getSkillLevel(1001) > 0) // Soul Cry
{
newChar.registerShortCut(new L2ShortCut(1, 0, L2ShortCut.TYPE_SKILL, 1001, 1));
}
if(newChar.getSkillLevel(1177) > 0) // Wind Strike
{
newChar.registerShortCut(new L2ShortCut(1, 0, L2ShortCut.TYPE_SKILL, 1177, 1));
}
if(newChar.getSkillLevel(1216) > 0) // Self Heal
{
newChar.registerShortCut(new L2ShortCut(2, 0, L2ShortCut.TYPE_SKILL, 1216, 1));
}
// add attack, take, sit shortcut
newChar.registerShortCut(new L2ShortCut(0, 0, L2ShortCut.TYPE_ACTION, 2, -1));
newChar.registerShortCut(new L2ShortCut(3, 0, L2ShortCut.TYPE_ACTION, 5, -1));
newChar.registerShortCut(new L2ShortCut(10, 0, L2ShortCut.TYPE_ACTION, 0, -1));
startTutorialQuest(newChar);
newChar.setCurrentHpMp(newChar.getMaxHp(), newChar.getMaxMp());
//
Long exp_add = Experience.LEVEL[Config.StartLevelNewPlayer] - newChar.getExp();
newChar.addExpAndSp(exp_add, 0, false, false);