Addition of quest 932 and 931, 10832 changes.
Contributed by Dmitri.
This commit is contained in:
@@ -43,21 +43,28 @@ public class Q10832_EnergyOfSadnessAndAnger extends Quest
|
||||
// Monsters
|
||||
private static final int HARPE = 23561;
|
||||
private static final int HARPE1 = 23562;
|
||||
private static final int KERBEROS_LAGER = 23550;
|
||||
private static final int KERBEROS_FORT = 23551;
|
||||
private static final int KERBEROS_NERO = 23552;
|
||||
private static final int FURY_SYLPH_BARRENA = 23553;
|
||||
private static final int FURY_SYLPH_TEMPTRESS = 23555;
|
||||
private static final int FURY_SYLPH_PURKA = 23556;
|
||||
private static final int FURY_KERBEROS_LEGER = 23557;
|
||||
private static final int FURY_KERBEROS_NERO = 23558;
|
||||
private static final int KERBEROS_LAGER_N = 23550; // (night)
|
||||
private static final int KERBEROS_LAGER = 23541;
|
||||
private static final int KERBEROS_FORT_N = 23551; // (night)
|
||||
private static final int KERBEROS_FORT = 23542;
|
||||
private static final int KERBEROS_NERO_N = 23552; // (night)
|
||||
private static final int KERBEROS_NERO = 23543;
|
||||
private static final int FURY_SYLPH_BARRENA_N = 23553; // (night)
|
||||
private static final int FURY_SYLPH_BARRENA = 23544;
|
||||
private static final int FURY_SYLPH_TEMPTRESS_N = 23555; // (night)
|
||||
private static final int FURY_SYLPH_TEMPTRESS = 23546;
|
||||
private static final int FURY_SYLPH_PURKA_N = 23556; // (night)
|
||||
private static final int FURY_SYLPH_PURKA = 23547;
|
||||
private static final int FURY_KERBEROS_LEGER_N = 23557; // (night)
|
||||
private static final int FURY_KERBEROS_LEGER = 23545;
|
||||
private static final int FURY_KERBEROS_NERO_N = 23558; // (night)
|
||||
private static final int FURY_KERBEROS_NERO = 23549;
|
||||
// Items
|
||||
private static final int MARK_OF_TRUST_MID_GRADE = 45843;
|
||||
private static final int SAD_ENERGY = 45837;
|
||||
private static final int ANGRY_ENERGY = 45838;
|
||||
private static final int SOE = 46158;
|
||||
// Misc
|
||||
private static final int MIN_LEVEL = 100;
|
||||
private static final int MIN_LEVEL = 102;
|
||||
|
||||
public Q10832_EnergyOfSadnessAndAnger()
|
||||
{
|
||||
@@ -65,7 +72,7 @@ public class Q10832_EnergyOfSadnessAndAnger extends Quest
|
||||
addStartNpc(BELAS);
|
||||
addTalkId(BELAS);
|
||||
addKillId(HARPE, HARPE1);
|
||||
addKillId(KERBEROS_LAGER, KERBEROS_FORT, KERBEROS_NERO, FURY_SYLPH_BARRENA, FURY_SYLPH_TEMPTRESS, FURY_SYLPH_PURKA, FURY_KERBEROS_LEGER, FURY_KERBEROS_NERO);
|
||||
addKillId(KERBEROS_LAGER, KERBEROS_LAGER_N, KERBEROS_FORT, KERBEROS_FORT_N, KERBEROS_NERO, KERBEROS_NERO_N, FURY_SYLPH_BARRENA, FURY_SYLPH_BARRENA_N, FURY_SYLPH_TEMPTRESS, FURY_SYLPH_TEMPTRESS_N, FURY_SYLPH_PURKA, FURY_SYLPH_PURKA_N, FURY_KERBEROS_LEGER, FURY_KERBEROS_LEGER_N, FURY_KERBEROS_NERO, FURY_KERBEROS_NERO_N);
|
||||
registerQuestItems(SAD_ENERGY, ANGRY_ENERGY);
|
||||
addCondMinLevel(MIN_LEVEL, "34056-00.htm");
|
||||
addCondCompletedQuest(Q10831_UnbelievableSight.class.getSimpleName(), "34056-00.htm");
|
||||
@@ -97,8 +104,8 @@ public class Q10832_EnergyOfSadnessAndAnger extends Quest
|
||||
}
|
||||
case "34056-07.html":
|
||||
{
|
||||
giveItems(player, SOE, 1);
|
||||
addExpAndSp(player, 7909920000L, 18983760);
|
||||
giveItems(player, SOE, 5);
|
||||
addExpAndSp(player, 22221427950L, 22221360);
|
||||
qs.exitQuest(false, true);
|
||||
htmltext = event;
|
||||
break;
|
||||
@@ -117,11 +124,6 @@ public class Q10832_EnergyOfSadnessAndAnger extends Quest
|
||||
{
|
||||
case State.CREATED:
|
||||
{
|
||||
if (!hasQuestItems(player, MARK_OF_TRUST_MID_GRADE))
|
||||
{
|
||||
htmltext = "noItem.htm";
|
||||
break;
|
||||
}
|
||||
htmltext = "34056-01.htm";
|
||||
break;
|
||||
}
|
||||
@@ -155,26 +157,40 @@ public class Q10832_EnergyOfSadnessAndAnger extends Quest
|
||||
switch (npc.getId())
|
||||
{
|
||||
case KERBEROS_LAGER:
|
||||
case KERBEROS_LAGER_N:
|
||||
case KERBEROS_FORT:
|
||||
case KERBEROS_FORT_N:
|
||||
case KERBEROS_NERO:
|
||||
case KERBEROS_NERO_N:
|
||||
{
|
||||
final Npc mob = addSpawn(HARPE, npc.getX(), npc.getY(), npc.getZ(), 0, true, 120000);
|
||||
addAttackPlayerDesire(mob, killer, 5);
|
||||
if (getRandom(100) < 2)
|
||||
{
|
||||
final Npc mob = addSpawn(HARPE, npc.getX(), npc.getY(), npc.getZ(), 0, true, 120000);
|
||||
addAttackPlayerDesire(mob, killer, 5);
|
||||
}
|
||||
break;
|
||||
}
|
||||
case FURY_SYLPH_BARRENA:
|
||||
case FURY_SYLPH_BARRENA_N:
|
||||
case FURY_SYLPH_TEMPTRESS:
|
||||
case FURY_SYLPH_TEMPTRESS_N:
|
||||
case FURY_SYLPH_PURKA:
|
||||
case FURY_SYLPH_PURKA_N:
|
||||
case FURY_KERBEROS_LEGER:
|
||||
case FURY_KERBEROS_LEGER_N:
|
||||
case FURY_KERBEROS_NERO:
|
||||
case FURY_KERBEROS_NERO_N:
|
||||
{
|
||||
final Npc mob = addSpawn(HARPE1, npc.getX(), npc.getY(), npc.getZ(), 0, true, 120000);
|
||||
addAttackPlayerDesire(mob, killer, 5);
|
||||
if (getRandom(100) < 2)
|
||||
{
|
||||
final Npc mob = addSpawn(HARPE1, npc.getX(), npc.getY(), npc.getZ(), 0, true, 120000);
|
||||
addAttackPlayerDesire(mob, killer, 5);
|
||||
}
|
||||
break;
|
||||
}
|
||||
case HARPE:
|
||||
{
|
||||
if ((getRandom(100) < 2) && !hasQuestItems(killer, ANGRY_ENERGY))
|
||||
if ((getRandom(100) < 50) && !hasQuestItems(killer, ANGRY_ENERGY))
|
||||
{
|
||||
giveItems(killer, ANGRY_ENERGY, 1);
|
||||
playSound(killer, QuestSound.ITEMSOUND_QUEST_ITEMGET);
|
||||
@@ -183,7 +199,7 @@ public class Q10832_EnergyOfSadnessAndAnger extends Quest
|
||||
}
|
||||
case HARPE1:
|
||||
{
|
||||
if ((getRandom(100) < 2) && !hasQuestItems(killer, SAD_ENERGY))
|
||||
if ((getRandom(100) < 50) && !hasQuestItems(killer, SAD_ENERGY))
|
||||
{
|
||||
giveItems(killer, SAD_ENERGY, 1);
|
||||
playSound(killer, QuestSound.ITEMSOUND_QUEST_ITEMGET);
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
<html><body>Magister Belas:<br>
|
||||
We don't have enough trust in you.<br>
|
||||
(This quest may only be undertaken by characters with a Mark of Trust (Mid-grade).)
|
||||
</body></html>
|
||||
Reference in New Issue
Block a user