diff --git a/trunk/dist/game/data/scripts/quests/Q10334_ReportingTheStatusOfWindmillHill/30332-01.html b/trunk/dist/game/data/scripts/quests/Q10334_ReportingTheStatusOfWindmillHill/30332-01.html new file mode 100644 index 0000000000..4d87ee759b --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10334_ReportingTheStatusOfWindmillHill/30332-01.html @@ -0,0 +1,4 @@ +Captain Bathis:
+What is it? Schunain sent you? Did something happen at Windmill Hill? I want a full report!
+ + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10334_ReportingTheStatusOfWindmillHill/30332-02.html b/trunk/dist/game/data/scripts/quests/Q10334_ReportingTheStatusOfWindmillHill/30332-02.html new file mode 100644 index 0000000000..a5547d1b30 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10334_ReportingTheStatusOfWindmillHill/30332-02.html @@ -0,0 +1,5 @@ +Captain Bathis:
+Sakum was being resurrected by a mysterious organization? It's a shame the were all killed, because now we can't even figure out what they were up to.
+Well, I suppose we should start on the clean-up.
+ + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10334_ReportingTheStatusOfWindmillHill/30332-03.html b/trunk/dist/game/data/scripts/quests/Q10334_ReportingTheStatusOfWindmillHill/30332-03.html new file mode 100644 index 0000000000..fe37bca92c --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10334_ReportingTheStatusOfWindmillHill/30332-03.html @@ -0,0 +1,5 @@ +Captain Bathis:
+Curses! That roving monster is rampaging through Gludio territory. We're going to have to take it down. Unfortunately we won't gain much from the task, but it's got to be done.
+I've been told that it was spotted over near Windmill Hill, towards the Ruins of Despair. We're going to need to send soldiers to the ruins right away!
+Anyways, thanks a lot. I'll let you know when I need your help again. + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10334_ReportingTheStatusOfWindmillHill/30332-04.html b/trunk/dist/game/data/scripts/quests/Q10334_ReportingTheStatusOfWindmillHill/30332-04.html new file mode 100644 index 0000000000..7d4bf8c6c8 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10334_ReportingTheStatusOfWindmillHill/30332-04.html @@ -0,0 +1,4 @@ +Captain Bathis:
+You should move on. There so many more things you should do.
+(You have already completed this quest.) + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10334_ReportingTheStatusOfWindmillHill/33508-01.htm b/trunk/dist/game/data/scripts/quests/Q10334_ReportingTheStatusOfWindmillHill/33508-01.htm new file mode 100644 index 0000000000..960339f3b6 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10334_ReportingTheStatusOfWindmillHill/33508-01.htm @@ -0,0 +1,4 @@ +Guard Schunain:
+Well, that took care of the smaller monsters, but what should we do about Sakum? are you saying I should have caught him? Are you kidding me? You should have seen his eyes, like something from the depths of hell. I don't even want to think about it again... I'm...
+ + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10334_ReportingTheStatusOfWindmillHill/33508-02.htm b/trunk/dist/game/data/scripts/quests/Q10334_ReportingTheStatusOfWindmillHill/33508-02.htm new file mode 100644 index 0000000000..f13e521fef --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10334_ReportingTheStatusOfWindmillHill/33508-02.htm @@ -0,0 +1,4 @@ +Guard Schunain:
+Oh, great. Now I have some weakling kid heaping pity on me? Well, if you want to do something useful, you could go to the Town of Gludio to save me the trouble.
+ + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10334_ReportingTheStatusOfWindmillHill/33508-03.htm b/trunk/dist/game/data/scripts/quests/Q10334_ReportingTheStatusOfWindmillHill/33508-03.htm new file mode 100644 index 0000000000..8976460278 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10334_ReportingTheStatusOfWindmillHill/33508-03.htm @@ -0,0 +1,4 @@ +Guard Schunain:
+Run over to the center of Gludio Village and tell Chief Bathis that he needs to go after Sakum right away. He just passed Windmill Hill and is headed for the Ruins of Grief!
+Use a Return Scroll or the Teleporter near entrance of the Windmill Hill. Scoot! + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10334_ReportingTheStatusOfWindmillHill/33508-04.html b/trunk/dist/game/data/scripts/quests/Q10334_ReportingTheStatusOfWindmillHill/33508-04.html new file mode 100644 index 0000000000..ee4c8c9243 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10334_ReportingTheStatusOfWindmillHill/33508-04.html @@ -0,0 +1,4 @@ +Guard Schunain:
+Oh, it's you! Please don't tell anyone how scared I got that one time.
+(You have already completed this quest.) + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10334_ReportingTheStatusOfWindmillHill/Q10334_ReportingTheStatusOfWindmillHill.java b/trunk/dist/game/data/scripts/quests/Q10334_ReportingTheStatusOfWindmillHill/Q10334_ReportingTheStatusOfWindmillHill.java new file mode 100644 index 0000000000..4a40678bf8 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10334_ReportingTheStatusOfWindmillHill/Q10334_ReportingTheStatusOfWindmillHill.java @@ -0,0 +1,119 @@ +/* + * Copyright (C) 2004-2015 L2J Server + * + * This file is part of L2J Server. + * + * L2J Server is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * L2J Server is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package quests.Q10334_ReportingTheStatusOfWindmillHill; + +import quests.Q10333_DisappearedSakum.Q10333_DisappearedSakum; + +import com.l2jserver.gameserver.model.actor.L2Npc; +import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; +import com.l2jserver.gameserver.model.quest.Quest; +import com.l2jserver.gameserver.model.quest.QuestState; +import com.l2jserver.gameserver.model.quest.State; + +/** + * Reporting the status of Windmill Hill (10334) + * @author spider + */ +public class Q10334_ReportingTheStatusOfWindmillHill extends Quest +{ + // Npcs + private static final int SCHUNAIN = 33508; + private static final int BATHIS = 30332; + // Rewards + private static final int ADENA_REWARD = 850; + private static final int EXP_REWARD = 200000; + private static final int SP_REWARD = 48; + // Other + private static final int MIN_LEVEL = 22; + private static final int MAX_LEVEL = 40; + + public Q10334_ReportingTheStatusOfWindmillHill() + { + super(10334, Q10334_ReportingTheStatusOfWindmillHill.class.getSimpleName(), "Reporting the status of Windmill Hill"); + addStartNpc(SCHUNAIN); + addTalkId(SCHUNAIN, BATHIS); + addCondLevel(MIN_LEVEL, MAX_LEVEL, "no_level.htm"); + addCondCompletedQuest(Q10333_DisappearedSakum.class.getSimpleName(), "no_prequest.htm"); + } + + @Override + public String onAdvEvent(String event, L2Npc npc, L2PcInstance player) + { + final QuestState qs = getQuestState(player, false); + if (qs == null) + { + return null; + } + + String htmltext = null; + switch (event) + { + case "33508-03.htm": + { + qs.startQuest(); + qs.setCond(2); // arrow hack, required for that quest + qs.setCond(1); + htmltext = event; + break; + } + case "33508-02.htm": + case "33508-04.html": + case "30332-02.html": + { + htmltext = event; + break; + } + case "30332-03.html": + { + giveAdena(player, ADENA_REWARD, true); + addExpAndSp(player, EXP_REWARD, SP_REWARD); + qs.exitQuest(false, true); + htmltext = event; + break; + } + } + return htmltext; + } + + @Override + public String onTalk(L2Npc npc, L2PcInstance player) + { + final QuestState qs = getQuestState(player, true); + String htmltext = null; + switch (qs.getState()) + { + case State.CREATED: + { + htmltext = npc.getId() == SCHUNAIN ? "33508-01.htm" : getNoQuestMsg(player); + break; + } + case State.STARTED: + { + htmltext = npc.getId() == SCHUNAIN ? "33508-03.htm" : "30332-01.html"; + break; + } + case State.COMPLETED: + { + htmltext = npc.getId() == SCHUNAIN ? "33508-04.html" : "30332-04.html"; + break; + } + } + return htmltext; + } +} diff --git a/trunk/dist/game/data/scripts/quests/Q10334_ReportingTheStatusOfWindmillHill/no_level.htm b/trunk/dist/game/data/scripts/quests/Q10334_ReportingTheStatusOfWindmillHill/no_level.htm new file mode 100644 index 0000000000..16225b90e0 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10334_ReportingTheStatusOfWindmillHill/no_level.htm @@ -0,0 +1,3 @@ +You don't meet level requirements
+(Quest available from level 22 to level 40) + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10334_ReportingTheStatusOfWindmillHill/no_prequest.htm b/trunk/dist/game/data/scripts/quests/Q10334_ReportingTheStatusOfWindmillHill/no_prequest.htm new file mode 100644 index 0000000000..1ce35859cb --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10334_ReportingTheStatusOfWindmillHill/no_prequest.htm @@ -0,0 +1,2 @@ +This quest may only be undertaken by characters who have cleared the quest "Disappeared Sakum". + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/QuestMasterHandler.java b/trunk/dist/game/data/scripts/quests/QuestMasterHandler.java index 1697014c9a..fbf2f73808 100644 --- a/trunk/dist/game/data/scripts/quests/QuestMasterHandler.java +++ b/trunk/dist/game/data/scripts/quests/QuestMasterHandler.java @@ -197,6 +197,7 @@ import quests.Q10330_ToTheRuinsOfYeSagira.Q10330_ToTheRuinsOfYeSagira; import quests.Q10331_StartOfFate.Q10331_StartOfFate; import quests.Q10332_ToughRoad.Q10332_ToughRoad; import quests.Q10333_DisappearedSakum.Q10333_DisappearedSakum; +import quests.Q10334_ReportingTheStatusOfWindmillHill.Q10334_ReportingTheStatusOfWindmillHill; import quests.Q10338_SeizeYourDestiny.Q10338_SeizeYourDestiny; import quests.Q10390_KekropusLetter.Q10390_KekropusLetter; import quests.Q10393_KekropusLetter_AClueCompleted.Q10393_KekropusLetter_AClueCompleted; @@ -413,6 +414,7 @@ public class QuestMasterHandler Q10331_StartOfFate.class, Q10332_ToughRoad.class, Q10333_DisappearedSakum.class, + Q10334_ReportingTheStatusOfWindmillHill.class, Q10338_SeizeYourDestiny.class, Q10390_KekropusLetter.class, Q10393_KekropusLetter_AClueCompleted.class,