{
addDesiredSkill(d_skill, target, distance, blessBlood);
}
addDesiredSkill(d_skill, target, distance, vampRage);
addDesiredSkill(d_skill, target, distance, holyResist);
final Skill r_skill = selectTopSkill(d_skill);
chooseTaskAndTargets(r_skill, target, distance);
doTask();
}
else if (qs2.getCond() == 3)
{
Functions.npcSay(actor, NpcString.YOUR_WORK_HERE_IS_DONE_SO_RETURN_TO_THE_CENTRAL_GUARDIAN);
}
}
final QuestState qs3 = masterplayer.getQuestState(_10295_SevenSignsSolinasTomb.class);
if ((qs3 != null) && !qs3.isCompleted())
{
if (qs3.getCond() == 1)
{
if (Rnd.chance(20))
{
if (Rnd.chance(30))
{
Functions.npcSay(actor, NpcString.TO_REMOVE_THE_BARRIER_YOU_MUST_FIND_THE_RELICS_THAT_FIT_THE_BARRIER_AND_ACTIVATE_THE_DEVICE);
}
else if (Rnd.chance(30))
{
Functions.npcSay(actor, NpcString.THE_GUARDIAN_OF_THE_SEAL_DOESNT_SEEM_TO_GET_INJURED_AT_ALL_UNTIL_THE_BARRIER_IS_DESTROYED);
}
else
{
Functions.npcSay(actor, NpcString.THE_DEVICE_LOCATED_IN_THE_ROOM_IN_FRONT_OF_THE_GUARDIAN_OF_THE_SEAL_IS_DEFINITELY_THE_BARRIER_THAT_CONTROLS_THE_GUARDIANS_POWER);
}
}
if (target.getCurrentHpPercents() < 80)
{
addDesiredSkill(d_skill, target, distance, heal);
}
if (target.getCurrentMpPercents() < 70)
{
addDesiredSkill(d_skill, target, distance, recharge);
}
if (target.isInCombat())
{
addDesiredSkill(d_skill, target, distance, blessBlood);
}
addDesiredSkill(d_skill, target, distance, vampRage);
addDesiredSkill(d_skill, target, distance, holyResist);
final Skill r_skill = selectTopSkill(d_skill);
chooseTaskAndTargets(r_skill, target, distance);
doTask();
}
}
final QuestState qs4 = masterplayer.getQuestState(_10296_SevenSignsPoweroftheSeal.class);
if ((qs4 != null) && !qs4.isCompleted())
{
if (qs4.getCond() == 2)
{
if (target.getCurrentHpPercents() < 80)
{
addDesiredSkill(d_skill, target, distance, heal);
}
if (target.getCurrentMpPercents() < 70)
{
addDesiredSkill(d_skill, target, distance, recharge);
}
if (target.isInCombat())
{
addDesiredSkill(d_skill, target, distance, blessBlood);
}
addDesiredSkill(d_skill, target, distance, vampRage);
addDesiredSkill(d_skill, target, distance, holyResist);
final Skill r_skill = selectTopSkill(d_skill);
chooseTaskAndTargets(r_skill, target, distance);
doTask();
}
}
break;