Addition of new condition for quest Saga of Legend (10673).
Thanks to MacuK.
This commit is contained in:
@@ -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>
|
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-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-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>
|
</body></html>
|
@@ -1,3 +1,3 @@
|
|||||||
<html><body>Orven:<br>
|
<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>
|
</body></html>
|
@@ -1,3 +1,3 @@
|
|||||||
<html><body>Orven:<br>
|
<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>
|
</body></html>
|
@@ -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>
|
@@ -1,4 +1,4 @@
|
|||||||
<html><body>Orven:<br>
|
<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.
|
You need to defeat 700 monsters in total.
|
||||||
</body></html>
|
</body></html>
|
@@ -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>
|
|
@@ -154,9 +154,15 @@ public class Q10673_SagaOfLegend extends Quest
|
|||||||
htmltext = event;
|
htmltext = event;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case "30857-07b.html":
|
||||||
|
{
|
||||||
|
qs.setCond(4, true);
|
||||||
|
htmltext = event;
|
||||||
|
break;
|
||||||
|
}
|
||||||
case "30857-10.html":
|
case "30857-10.html":
|
||||||
{
|
{
|
||||||
if (qs.isCond(4))
|
if (qs.isCond(5))
|
||||||
{
|
{
|
||||||
giveItems(player, MAGICAL_TABLET, 10);
|
giveItems(player, MAGICAL_TABLET, 10);
|
||||||
qs.exitQuest(false, true);
|
qs.exitQuest(false, true);
|
||||||
@@ -193,16 +199,13 @@ public class Q10673_SagaOfLegend extends Quest
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 2:
|
case 2:
|
||||||
|
case 3:
|
||||||
|
case 4:
|
||||||
{
|
{
|
||||||
htmltext = "30857-08.html";
|
htmltext = "30857-08.html";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 3:
|
case 5:
|
||||||
{
|
|
||||||
htmltext = "30857-08a.html";
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case 4:
|
|
||||||
{
|
{
|
||||||
htmltext = "30857-09.html";
|
htmltext = "30857-09.html";
|
||||||
break;
|
break;
|
||||||
@@ -223,7 +226,7 @@ public class Q10673_SagaOfLegend extends Quest
|
|||||||
public String onKill(Npc npc, PlayerInstance killer, boolean isSummon)
|
public String onKill(Npc npc, PlayerInstance killer, boolean isSummon)
|
||||||
{
|
{
|
||||||
final QuestState qs = getQuestState(killer, false);
|
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;
|
final int killCount = qs.getInt(KILL_COUNT_VAR) + 1;
|
||||||
if (killCount < 700)
|
if (killCount < 700)
|
||||||
@@ -234,7 +237,7 @@ public class Q10673_SagaOfLegend extends Quest
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
qs.setCond(4, true);
|
qs.setCond(5, true);
|
||||||
qs.unset(KILL_COUNT_VAR);
|
qs.unset(KILL_COUNT_VAR);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -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>
|
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-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-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>
|
</body></html>
|
@@ -1,3 +1,3 @@
|
|||||||
<html><body>Orven:<br>
|
<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>
|
</body></html>
|
@@ -1,3 +1,3 @@
|
|||||||
<html><body>Orven:<br>
|
<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>
|
</body></html>
|
@@ -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>
|
@@ -1,4 +1,4 @@
|
|||||||
<html><body>Orven:<br>
|
<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.
|
You need to defeat 700 monsters in total.
|
||||||
</body></html>
|
</body></html>
|
@@ -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>
|
|
@@ -138,9 +138,15 @@ public class Q10673_SagaOfLegend extends Quest
|
|||||||
htmltext = event;
|
htmltext = event;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case "30857-07b.html":
|
||||||
|
{
|
||||||
|
qs.setCond(4, true);
|
||||||
|
htmltext = event;
|
||||||
|
break;
|
||||||
|
}
|
||||||
case "30857-10.html":
|
case "30857-10.html":
|
||||||
{
|
{
|
||||||
if (qs.isCond(4))
|
if (qs.isCond(5))
|
||||||
{
|
{
|
||||||
giveItems(player, MAGICAL_TABLET, 10);
|
giveItems(player, MAGICAL_TABLET, 10);
|
||||||
qs.exitQuest(false, true);
|
qs.exitQuest(false, true);
|
||||||
@@ -177,16 +183,13 @@ public class Q10673_SagaOfLegend extends Quest
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 2:
|
case 2:
|
||||||
|
case 3:
|
||||||
|
case 4:
|
||||||
{
|
{
|
||||||
htmltext = "30857-08.html";
|
htmltext = "30857-08.html";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 3:
|
case 5:
|
||||||
{
|
|
||||||
htmltext = "30857-08a.html";
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case 4:
|
|
||||||
{
|
{
|
||||||
htmltext = "30857-09.html";
|
htmltext = "30857-09.html";
|
||||||
break;
|
break;
|
||||||
@@ -207,7 +210,7 @@ public class Q10673_SagaOfLegend extends Quest
|
|||||||
public String onKill(Npc npc, PlayerInstance killer, boolean isSummon)
|
public String onKill(Npc npc, PlayerInstance killer, boolean isSummon)
|
||||||
{
|
{
|
||||||
final QuestState qs = getQuestState(killer, false);
|
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;
|
final int killCount = qs.getInt(KILL_COUNT_VAR) + 1;
|
||||||
if (killCount < 700)
|
if (killCount < 700)
|
||||||
@@ -218,7 +221,7 @@ public class Q10673_SagaOfLegend extends Quest
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
qs.setCond(4, true);
|
qs.setCond(5, true);
|
||||||
qs.unset(KILL_COUNT_VAR);
|
qs.unset(KILL_COUNT_VAR);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user