From 3cb33a802916e0e8c12446803a0ed0434815752a Mon Sep 17 00:00:00 2001 From: MobiusDev <8391001+MobiusDevelopment@users.noreply.github.com> Date: Sun, 20 Aug 2017 12:32:42 +0000 Subject: [PATCH] Minor improvement of quest 10739. --- .../Q10739_SupplyAndDemand/Q10739_SupplyAndDemand.java | 10 +++++++++- .../dist/game/data/spawns/Fearon/FearonVillage.xml | 2 +- .../Q10739_SupplyAndDemand/Q10739_SupplyAndDemand.java | 10 +++++++++- .../dist/game/data/spawns/Fearon/FearonVillage.xml | 2 +- .../Q10739_SupplyAndDemand/Q10739_SupplyAndDemand.java | 10 +++++++++- .../dist/game/data/spawns/Fearon/FearonVillage.xml | 2 +- 6 files changed, 30 insertions(+), 6 deletions(-) diff --git a/L2J_Mobius_Ertheia/dist/game/data/scripts/quests/Q10739_SupplyAndDemand/Q10739_SupplyAndDemand.java b/L2J_Mobius_Ertheia/dist/game/data/scripts/quests/Q10739_SupplyAndDemand/Q10739_SupplyAndDemand.java index 0480e25839..6c165b3ead 100644 --- a/L2J_Mobius_Ertheia/dist/game/data/scripts/quests/Q10739_SupplyAndDemand/Q10739_SupplyAndDemand.java +++ b/L2J_Mobius_Ertheia/dist/game/data/scripts/quests/Q10739_SupplyAndDemand/Q10739_SupplyAndDemand.java @@ -100,7 +100,7 @@ public final class Q10739_SupplyAndDemand extends Quest { if (qs.isCond(2)) { - qs.setCond(3, true); + qs.setCond(3, true); // proper? giveItems(player, GROCERY_SUPPLY_BOX); } break; @@ -136,14 +136,20 @@ public final class Q10739_SupplyAndDemand extends Quest switch (qs.getState()) { case State.CREATED: + { htmltext = "33935-01.htm"; break; + } case State.STARTED: + { htmltext = "33935-04.html"; break; + } case State.COMPLETED: + { htmltext = getAlreadyCompletedMsg(player); break; + } } break; } @@ -193,6 +199,7 @@ public final class Q10739_SupplyAndDemand extends Quest break; } case SIVANTHE: + { if (qs.isStarted() && qs.isCond(4)) { giveItems(player, LEATHER_SHIRT); @@ -210,6 +217,7 @@ public final class Q10739_SupplyAndDemand extends Quest htmltext = getAlreadyCompletedMsg(player); } break; + } } return htmltext; } diff --git a/L2J_Mobius_Ertheia/dist/game/data/spawns/Fearon/FearonVillage.xml b/L2J_Mobius_Ertheia/dist/game/data/spawns/Fearon/FearonVillage.xml index 0df7a080c2..70c729908d 100644 --- a/L2J_Mobius_Ertheia/dist/game/data/spawns/Fearon/FearonVillage.xml +++ b/L2J_Mobius_Ertheia/dist/game/data/spawns/Fearon/FearonVillage.xml @@ -23,7 +23,7 @@ - + diff --git a/L2J_Mobius_Helios/dist/game/data/scripts/quests/Q10739_SupplyAndDemand/Q10739_SupplyAndDemand.java b/L2J_Mobius_Helios/dist/game/data/scripts/quests/Q10739_SupplyAndDemand/Q10739_SupplyAndDemand.java index 0480e25839..6c165b3ead 100644 --- a/L2J_Mobius_Helios/dist/game/data/scripts/quests/Q10739_SupplyAndDemand/Q10739_SupplyAndDemand.java +++ b/L2J_Mobius_Helios/dist/game/data/scripts/quests/Q10739_SupplyAndDemand/Q10739_SupplyAndDemand.java @@ -100,7 +100,7 @@ public final class Q10739_SupplyAndDemand extends Quest { if (qs.isCond(2)) { - qs.setCond(3, true); + qs.setCond(3, true); // proper? giveItems(player, GROCERY_SUPPLY_BOX); } break; @@ -136,14 +136,20 @@ public final class Q10739_SupplyAndDemand extends Quest switch (qs.getState()) { case State.CREATED: + { htmltext = "33935-01.htm"; break; + } case State.STARTED: + { htmltext = "33935-04.html"; break; + } case State.COMPLETED: + { htmltext = getAlreadyCompletedMsg(player); break; + } } break; } @@ -193,6 +199,7 @@ public final class Q10739_SupplyAndDemand extends Quest break; } case SIVANTHE: + { if (qs.isStarted() && qs.isCond(4)) { giveItems(player, LEATHER_SHIRT); @@ -210,6 +217,7 @@ public final class Q10739_SupplyAndDemand extends Quest htmltext = getAlreadyCompletedMsg(player); } break; + } } return htmltext; } diff --git a/L2J_Mobius_Helios/dist/game/data/spawns/Fearon/FearonVillage.xml b/L2J_Mobius_Helios/dist/game/data/spawns/Fearon/FearonVillage.xml index 0df7a080c2..70c729908d 100644 --- a/L2J_Mobius_Helios/dist/game/data/spawns/Fearon/FearonVillage.xml +++ b/L2J_Mobius_Helios/dist/game/data/spawns/Fearon/FearonVillage.xml @@ -23,7 +23,7 @@ - + diff --git a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10739_SupplyAndDemand/Q10739_SupplyAndDemand.java b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10739_SupplyAndDemand/Q10739_SupplyAndDemand.java index 0480e25839..6c165b3ead 100644 --- a/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10739_SupplyAndDemand/Q10739_SupplyAndDemand.java +++ b/L2J_Mobius_Underground/dist/game/data/scripts/quests/Q10739_SupplyAndDemand/Q10739_SupplyAndDemand.java @@ -100,7 +100,7 @@ public final class Q10739_SupplyAndDemand extends Quest { if (qs.isCond(2)) { - qs.setCond(3, true); + qs.setCond(3, true); // proper? giveItems(player, GROCERY_SUPPLY_BOX); } break; @@ -136,14 +136,20 @@ public final class Q10739_SupplyAndDemand extends Quest switch (qs.getState()) { case State.CREATED: + { htmltext = "33935-01.htm"; break; + } case State.STARTED: + { htmltext = "33935-04.html"; break; + } case State.COMPLETED: + { htmltext = getAlreadyCompletedMsg(player); break; + } } break; } @@ -193,6 +199,7 @@ public final class Q10739_SupplyAndDemand extends Quest break; } case SIVANTHE: + { if (qs.isStarted() && qs.isCond(4)) { giveItems(player, LEATHER_SHIRT); @@ -210,6 +217,7 @@ public final class Q10739_SupplyAndDemand extends Quest htmltext = getAlreadyCompletedMsg(player); } break; + } } return htmltext; } diff --git a/L2J_Mobius_Underground/dist/game/data/spawns/Fearon/FearonVillage.xml b/L2J_Mobius_Underground/dist/game/data/spawns/Fearon/FearonVillage.xml index 0df7a080c2..70c729908d 100644 --- a/L2J_Mobius_Underground/dist/game/data/spawns/Fearon/FearonVillage.xml +++ b/L2J_Mobius_Underground/dist/game/data/spawns/Fearon/FearonVillage.xml @@ -23,7 +23,7 @@ - +