Addition of new condition for quest Saga of Legend (10673).

Thanks to MacuK.
This commit is contained in:
MobiusDevelopment
2021-09-20 22:39:39 +00:00
parent c9abc460e5
commit d6d45a0595
14 changed files with 38 additions and 32 deletions

View File

@@ -2,4 +2,5 @@
Go investigate <font color="LEVEL">Silent Valley</font> or <font color="LEVEL">Devil's Isle</font>. Go to the hunting zone of your choice, defeat any monsters. You need to defeat 700 monsters in total.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10673_SagaOfLegend 30857-07.html">"Go on Silent Valley."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10673_SagaOfLegend 30857-07a.html">"Go on Devil's Isle."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10673_SagaOfLegend 30857-07b.html">"Go on Plains of Lizardmen."</Button>
</body></html>

View File

@@ -1,3 +1,3 @@
<html><body>Orven:<br>
Investigate <font color="LEVEL">Silent Valley</font>. You need to defeat 700 monsters in total.
Investigate <font color="LEVEL">Cruma Tower 2nd Floor</font>. You need to defeat 700 monsters in total.
</body></html>

View File

@@ -1,3 +1,3 @@
<html><body>Orven:<br>
Investigate <font color="LEVEL">Devil's Isle</font>. You need to defeat 700 monsters in total.
Investigate <font color="LEVEL">Sillent Valley</font>. You need to defeat 700 monsters in total.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Orven:<br>
Investigate <font color="LEVEL">Plains of Lizardmen</font>. You need to defeat 700 monsters in total.
</body></html>

View File

@@ -1,4 +1,4 @@
<html><body>Orven:<br>
Go investigate <font color="LEVEL">Silent Valley</font> or <font color="LEVEL">Devil's Isle</font>.<br1>
Go investigate <font color="LEVEL">Silent Valley</font> or <font color="LEVEL">Devil's Isle</font> or <font color="LEVEL">Plains of Lizardmen</font>.<br1>
You need to defeat 700 monsters in total.
</body></html>

View File

@@ -1,4 +0,0 @@
<html><body>Orven:<br>
Go investigate <font color="LEVEL">Silent Valley</font> or <font color="LEVEL">Devil's Isle</font>.<br1>
You need to defeat 700 monsters in total.
</body></html>

View File

@@ -154,9 +154,15 @@ public class Q10673_SagaOfLegend extends Quest
htmltext = event;
break;
}
case "30857-07b.html":
{
qs.setCond(4, true);
htmltext = event;
break;
}
case "30857-10.html":
{
if (qs.isCond(4))
if (qs.isCond(5))
{
giveItems(player, MAGICAL_TABLET, 10);
qs.exitQuest(false, true);
@@ -193,16 +199,13 @@ public class Q10673_SagaOfLegend extends Quest
break;
}
case 2:
case 3:
case 4:
{
htmltext = "30857-08.html";
break;
}
case 3:
{
htmltext = "30857-08a.html";
break;
}
case 4:
case 5:
{
htmltext = "30857-09.html";
break;
@@ -223,7 +226,7 @@ public class Q10673_SagaOfLegend extends Quest
public String onKill(Npc npc, PlayerInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && (qs.getCond() > 1))
if ((qs != null) && ((qs.getCond() > 1) && (qs.getCond() < 5)))
{
final int killCount = qs.getInt(KILL_COUNT_VAR) + 1;
if (killCount < 700)
@@ -234,7 +237,7 @@ public class Q10673_SagaOfLegend extends Quest
}
else
{
qs.setCond(4, true);
qs.setCond(5, true);
qs.unset(KILL_COUNT_VAR);
}
}

View File

@@ -2,4 +2,5 @@
Go investigate <font color="LEVEL">Silent Valley</font> or <font color="LEVEL">Devil's Isle</font>. Go to the hunting zone of your choice, defeat any monsters. You need to defeat 700 monsters in total.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10673_SagaOfLegend 30857-07.html">"Go on Silent Valley."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10673_SagaOfLegend 30857-07a.html">"Go on Devil's Isle."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10673_SagaOfLegend 30857-07b.html">"Go on Plains of Lizardmen."</Button>
</body></html>

View File

@@ -1,3 +1,3 @@
<html><body>Orven:<br>
Investigate <font color="LEVEL">Silent Valley</font>. You need to defeat 700 monsters in total.
Investigate <font color="LEVEL">Cruma Tower 2nd Floor</font>. You need to defeat 700 monsters in total.
</body></html>

View File

@@ -1,3 +1,3 @@
<html><body>Orven:<br>
Investigate <font color="LEVEL">Devil's Isle</font>. You need to defeat 700 monsters in total.
Investigate <font color="LEVEL">Sillent Valley</font>. You need to defeat 700 monsters in total.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Orven:<br>
Investigate <font color="LEVEL">Plains of Lizardmen</font>. You need to defeat 700 monsters in total.
</body></html>

View File

@@ -1,4 +1,4 @@
<html><body>Orven:<br>
Go investigate <font color="LEVEL">Silent Valley</font> or <font color="LEVEL">Devil's Isle</font>.<br1>
Go investigate <font color="LEVEL">Silent Valley</font> or <font color="LEVEL">Devil's Isle</font> or <font color="LEVEL">Plains of Lizardmen</font>.<br1>
You need to defeat 700 monsters in total.
</body></html>

View File

@@ -1,4 +0,0 @@
<html><body>Orven:<br>
Go investigate <font color="LEVEL">Silent Valley</font> or <font color="LEVEL">Devil's Isle</font>.<br1>
You need to defeat 700 monsters in total.
</body></html>

View File

@@ -138,9 +138,15 @@ public class Q10673_SagaOfLegend extends Quest
htmltext = event;
break;
}
case "30857-07b.html":
{
qs.setCond(4, true);
htmltext = event;
break;
}
case "30857-10.html":
{
if (qs.isCond(4))
if (qs.isCond(5))
{
giveItems(player, MAGICAL_TABLET, 10);
qs.exitQuest(false, true);
@@ -177,16 +183,13 @@ public class Q10673_SagaOfLegend extends Quest
break;
}
case 2:
case 3:
case 4:
{
htmltext = "30857-08.html";
break;
}
case 3:
{
htmltext = "30857-08a.html";
break;
}
case 4:
case 5:
{
htmltext = "30857-09.html";
break;
@@ -207,7 +210,7 @@ public class Q10673_SagaOfLegend extends Quest
public String onKill(Npc npc, PlayerInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && (qs.getCond() > 1))
if ((qs != null) && ((qs.getCond() > 1) && (qs.getCond() < 5)))
{
final int killCount = qs.getInt(KILL_COUNT_VAR) + 1;
if (killCount < 700)
@@ -218,7 +221,7 @@ public class Q10673_SagaOfLegend extends Quest
}
else
{
qs.setCond(4, true);
qs.setCond(5, true);
qs.unset(KILL_COUNT_VAR);
}
}