-
Spiritmaster
Is there a way to change it so that the SM's spirit regains HP while on guard as well as rest. This is how retail is and was wondering if anyone could help out with this one.
Thanks!
Ok did find what needs to be changed in the code when viewed the ax-game-1.0.1.jar file.
public void restMode()
{
getOwner().getController().cancelTask(TaskId.RESTORE);
getOwner().setMode(Summon.SummonMode.REST);
Player master = getOwner().getMaster();
PacketSendUtility.sendPacket(master, SM_SYSTEM_MESSAGE.SUMMON_RESTMODE(getOwner().getNameId()));
PacketSendUtility.sendPacket(master, new SM_SUMMON_UPDATE(getOwner()));
checkCurrentHp();
}
private void checkCurrentHp() {
if (!getOwner().getLifeStats().isFullyRestoredHp())
getOwner().getController().addNewTask(TaskId.RESTORE, LifeStatsRestoreService.getInstance().scheduleHpRestoreTask(getOwner().getLifeStats()));
}
public void guardMode()
{
getOwner().setMode(Summon.SummonMode.GUARD);
Player master = getOwner().getMaster();
PacketSendUtility.sendPacket(master, SM_SYSTEM_MESSAGE.SUMMON_GUARDMODE(getOwner().getNameId()));
PacketSendUtility.sendPacket(master, new SM_SUMMON_UPDATE(getOwner()));
getOwner().getController().cancelTask(TaskId.RESTORE);
}
The checkCurrentHp(); will need to be added to the Guard function.