Custom NPC to restore the HP and MP?

Results 1 to 1 of 1
  1. #1
    Valued Member lettus is offline
    MemberRank
    Aug 2007 Join Date
    Brasil - Rio deLocation
    120Posts

    Custom NPC to restore the HP and MP?

    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
    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;
    in this case I change the Blessing of Health I for Blessing of Health IV. 951 to 954.
    Last edited by Kreeate; 02-07-13 at 11:26 AM.




Advertisement