Hi, who can help me to find a way to make a custom NPC to restore the player HP and MP after he come back from death. In private servers the NPC used is Rikanellie and the ID is 831026, for Asmodians. thanks
EDIT :
Hi, I found the way to do this, data\scripts\system\handlers\ai\worlds\WorldBlesserAI2.java start on line 59
in this case I change the Blessing of Health I for Blessing of Health IV. 951 to 954.if (dialogId == 10000) { int chance = Rnd.get(1, 2);
//951: Blessing of Health I, 955: Blessing of Rock I, 954: Blessing of Health IV
SkillEngine.getInstance().getSkill(getOwner(), (chance == 1 ? 954 : 955) , 1, player).useWithoutPropSkill();
}
else if (dialogId == 26 && questId != 0) {
PacketSendUtility.sendPacket(player, new SM_DIALOG_WINDOW(getObjectId(), dialogId, questId));
}
return true;



Reply With Quote

