No need for timer changing conditions.

This commit is contained in:
MobiusDev 2017-08-20 11:45:03 +00:00
parent b9beeeee82
commit 9324155089
6 changed files with 21 additions and 66 deletions

View File

@ -45,9 +45,9 @@ import quests.Q10302_UnsettlingShadowAndRumors.Q10302_UnsettlingShadowAndRumors;
*/
public class Q10304_ForForgottenHeroes extends Quest
{
// Npc
// NPC
private static final int ISHAEL = 32894;
// mobs
// Monsters
private static final int YUI = 25837;
private static final int KINEN = 25840;
private static final int KONYAR = 25845;
@ -56,7 +56,7 @@ public class Q10304_ForForgottenHeroes extends Quest
private static final int HORNAFI = 25839;
private static final int YONTYMAK = 25846;
private static final int RON = 25825;
// items;
// Items
private static final int EWR = 17526; // Scroll: Enchant Weapon (R-grade)
private static final int EAR = 17527; // Scroll: Enchant Armor (R-grade)
private static final int COKES = 36563; // Synthetic Cokes
@ -98,16 +98,6 @@ public class Q10304_ForForgottenHeroes extends Quest
htmltext = event;
break;
}
case "cond8":
{
qs.setCond(8);
break;
}
case "cond9":
{
qs.setCond(9);
break;
}
case "reward1":
{
giveItems(player, COKES, 68);
@ -232,11 +222,11 @@ public class Q10304_ForForgottenHeroes extends Quest
}
else if ((npcId == YONTYMAK) && (cond == 7))
{
startQuestTimer("cond8", 300, null, player);
qs.setCond(8);
}
else if ((npcId == RON) && (cond == 8))
{
startQuestTimer("cond9", 300, null, player);
qs.setCond(8);
}
}
final ExQuestNpcLogList log = new ExQuestNpcLogList(getId());

View File

@ -190,12 +190,6 @@ public final class Q10753_WindsOfFateChoices extends Quest
qs.setCond(2, true);
break;
}
case "cond4":
{
qs.setCond(4, true);
htmltext = "30174-05.html";
break;
}
case "31149-03.html":
{
giveItems(player, RESTORATION_REGEANT, 1);
@ -444,7 +438,8 @@ public final class Q10753_WindsOfFateChoices extends Quest
{
giveItems(player, CRUDE_PHILOPERS_STONE, 1);
giveItems(player, EMPTY_REGEANT_FLASK, 1);
startQuestTimer("cond4", 100, null, player);
qs.setCond(4, true);
htmltext = "30174-05.html";
}
else if (qs.isCond(4))
{

View File

@ -45,9 +45,9 @@ import quests.Q10302_UnsettlingShadowAndRumors.Q10302_UnsettlingShadowAndRumors;
*/
public class Q10304_ForForgottenHeroes extends Quest
{
// Npc
// NPC
private static final int ISHAEL = 32894;
// mobs
// Monsters
private static final int YUI = 25837;
private static final int KINEN = 25840;
private static final int KONYAR = 25845;
@ -56,7 +56,7 @@ public class Q10304_ForForgottenHeroes extends Quest
private static final int HORNAFI = 25839;
private static final int YONTYMAK = 25846;
private static final int RON = 25825;
// items;
// Items
private static final int EWR = 17526; // Scroll: Enchant Weapon (R-grade)
private static final int EAR = 17527; // Scroll: Enchant Armor (R-grade)
private static final int COKES = 36563; // Synthetic Cokes
@ -98,16 +98,6 @@ public class Q10304_ForForgottenHeroes extends Quest
htmltext = event;
break;
}
case "cond8":
{
qs.setCond(8);
break;
}
case "cond9":
{
qs.setCond(9);
break;
}
case "reward1":
{
giveItems(player, COKES, 68);
@ -232,11 +222,11 @@ public class Q10304_ForForgottenHeroes extends Quest
}
else if ((npcId == YONTYMAK) && (cond == 7))
{
startQuestTimer("cond8", 300, null, player);
qs.setCond(8);
}
else if ((npcId == RON) && (cond == 8))
{
startQuestTimer("cond9", 300, null, player);
qs.setCond(8);
}
}
final ExQuestNpcLogList log = new ExQuestNpcLogList(getId());

View File

@ -190,12 +190,6 @@ public final class Q10753_WindsOfFateChoices extends Quest
qs.setCond(2, true);
break;
}
case "cond4":
{
qs.setCond(4, true);
htmltext = "30174-05.html";
break;
}
case "31149-03.html":
{
giveItems(player, RESTORATION_REGEANT, 1);
@ -444,7 +438,8 @@ public final class Q10753_WindsOfFateChoices extends Quest
{
giveItems(player, CRUDE_PHILOPERS_STONE, 1);
giveItems(player, EMPTY_REGEANT_FLASK, 1);
startQuestTimer("cond4", 100, null, player);
qs.setCond(4, true);
htmltext = "30174-05.html";
}
else if (qs.isCond(4))
{

View File

@ -45,9 +45,9 @@ import quests.Q10302_UnsettlingShadowAndRumors.Q10302_UnsettlingShadowAndRumors;
*/
public class Q10304_ForForgottenHeroes extends Quest
{
// Npc
// NPC
private static final int ISHAEL = 32894;
// mobs
// Monsters
private static final int YUI = 25837;
private static final int KINEN = 25840;
private static final int KONYAR = 25845;
@ -56,7 +56,7 @@ public class Q10304_ForForgottenHeroes extends Quest
private static final int HORNAFI = 25839;
private static final int YONTYMAK = 25846;
private static final int RON = 25825;
// items;
// Items
private static final int EWR = 17526; // Scroll: Enchant Weapon (R-grade)
private static final int EAR = 17527; // Scroll: Enchant Armor (R-grade)
private static final int COKES = 36563; // Synthetic Cokes
@ -98,16 +98,6 @@ public class Q10304_ForForgottenHeroes extends Quest
htmltext = event;
break;
}
case "cond8":
{
qs.setCond(8);
break;
}
case "cond9":
{
qs.setCond(9);
break;
}
case "reward1":
{
giveItems(player, COKES, 68);
@ -232,11 +222,11 @@ public class Q10304_ForForgottenHeroes extends Quest
}
else if ((npcId == YONTYMAK) && (cond == 7))
{
startQuestTimer("cond8", 300, null, player);
qs.setCond(8);
}
else if ((npcId == RON) && (cond == 8))
{
startQuestTimer("cond9", 300, null, player);
qs.setCond(8);
}
}
final ExQuestNpcLogList log = new ExQuestNpcLogList(getId());

View File

@ -190,12 +190,6 @@ public final class Q10753_WindsOfFateChoices extends Quest
qs.setCond(2, true);
break;
}
case "cond4":
{
qs.setCond(4, true);
htmltext = "30174-05.html";
break;
}
case "31149-03.html":
{
giveItems(player, RESTORATION_REGEANT, 1);
@ -444,7 +438,8 @@ public final class Q10753_WindsOfFateChoices extends Quest
{
giveItems(player, CRUDE_PHILOPERS_STONE, 1);
giveItems(player, EMPTY_REGEANT_FLASK, 1);
startQuestTimer("cond4", 100, null, player);
qs.setCond(4, true);
htmltext = "30174-05.html";
}
else if (qs.isCond(4))
{