From 15d637f3e5a653d582bd621682caa31c0667dc3b Mon Sep 17 00:00:00 2001 From: MobiusDev <8391001+MobiusDevelopment@users.noreply.github.com> Date: Sun, 7 Aug 2016 18:15:16 +0000 Subject: [PATCH] Quest Kekropus' Letter: Belos' Whereabouts (10424). Contributed by Stayway. --- .../data/scripts/quests/MissingQuests.txt | 1 - .../31292-01.htm | 4 + .../31292-02.htm | 4 + .../31292-03.htm | 4 + .../31292-04.htm | 4 + .../33852-01.htm | 4 + .../33852-02.htm | 6 + ...Q10424_KekropusLetterBelosWhereabouts.java | 155 ++++++++++++++++++ .../popup.html | 6 + .../scripts/quests/QuestMasterHandler.java | 2 + .../game/data/stats/skills/09900-09999.xml | 23 ++- 11 files changed, 209 insertions(+), 4 deletions(-) create mode 100644 trunk/dist/game/data/scripts/quests/Q10424_KekropusLetterBelosWhereabouts/31292-01.htm create mode 100644 trunk/dist/game/data/scripts/quests/Q10424_KekropusLetterBelosWhereabouts/31292-02.htm create mode 100644 trunk/dist/game/data/scripts/quests/Q10424_KekropusLetterBelosWhereabouts/31292-03.htm create mode 100644 trunk/dist/game/data/scripts/quests/Q10424_KekropusLetterBelosWhereabouts/31292-04.htm create mode 100644 trunk/dist/game/data/scripts/quests/Q10424_KekropusLetterBelosWhereabouts/33852-01.htm create mode 100644 trunk/dist/game/data/scripts/quests/Q10424_KekropusLetterBelosWhereabouts/33852-02.htm create mode 100644 trunk/dist/game/data/scripts/quests/Q10424_KekropusLetterBelosWhereabouts/Q10424_KekropusLetterBelosWhereabouts.java create mode 100644 trunk/dist/game/data/scripts/quests/Q10424_KekropusLetterBelosWhereabouts/popup.html diff --git a/trunk/dist/game/data/scripts/quests/MissingQuests.txt b/trunk/dist/game/data/scripts/quests/MissingQuests.txt index c3e76012cc..bfa43fef5c 100644 --- a/trunk/dist/game/data/scripts/quests/MissingQuests.txt +++ b/trunk/dist/game/data/scripts/quests/MissingQuests.txt @@ -94,7 +94,6 @@ 10380 The Executioner's Execution 10388 Conspiracy Behind Doors 10389 The Voice of Authority -10424 Kekropus' Letter: Belos' Whereabouts (8/9) 10425 The Ketra Orc Supporters 10426 Assassination of the Ketra Orc Commander 10427 Assassination of the Ketra Orc Chief diff --git a/trunk/dist/game/data/scripts/quests/Q10424_KekropusLetterBelosWhereabouts/31292-01.htm b/trunk/dist/game/data/scripts/quests/Q10424_KekropusLetterBelosWhereabouts/31292-01.htm new file mode 100644 index 0000000000..9c6761e924 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10424_KekropusLetterBelosWhereabouts/31292-01.htm @@ -0,0 +1,4 @@ +Captain Andrei:
+Huh? Kekropus sent you here again, then. Good! Let me cut to the chase. We just received a report from Lugonnes, one of the Giant's Minions. Apparently a clone of a monster called Sakum is heading right for the Ketra Orc Outpost.
Are you at all familiar with Sakum?
+ + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10424_KekropusLetterBelosWhereabouts/31292-02.htm b/trunk/dist/game/data/scripts/quests/Q10424_KekropusLetterBelosWhereabouts/31292-02.htm new file mode 100644 index 0000000000..c981e50171 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10424_KekropusLetterBelosWhereabouts/31292-02.htm @@ -0,0 +1,4 @@ +Captain Andrei:
+What?! You're the one who defeated Sakum in the Wasteland? I'm sorry that I didn't recognize a hero like you. I guess Kekropus trusted you for a reason! You're something of a legend around here.
+ + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10424_KekropusLetterBelosWhereabouts/31292-03.htm b/trunk/dist/game/data/scripts/quests/Q10424_KekropusLetterBelosWhereabouts/31292-03.htm new file mode 100644 index 0000000000..b334df8ffc --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10424_KekropusLetterBelosWhereabouts/31292-03.htm @@ -0,0 +1,4 @@ +Captain Andrei:
+Giant's Minions have been chasing after Embryo for a long time. They recently found out that the organization created clones of Sakum and one of the clones went to the Ketra Orc Outpost. That's all I know. For more information, you should talk to Giant's Minion Lugonnes in the Ketra Orc Outpost.
+To get there quickly, use the Scroll of Escape: Ketra Orc Outpost I gave you. You could also ask a Gatekeeper for help. + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10424_KekropusLetterBelosWhereabouts/31292-04.htm b/trunk/dist/game/data/scripts/quests/Q10424_KekropusLetterBelosWhereabouts/31292-04.htm new file mode 100644 index 0000000000..683d8c5bf7 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10424_KekropusLetterBelosWhereabouts/31292-04.htm @@ -0,0 +1,4 @@ +Captain Andrei:
+Hurry to the Ketra Orc Outpost and help Giant's Minion Lugonnes there.
+To get there quickly, use the Scroll of Escape: Ketra Orc Outpost I gave you. You could also ask a Gatekeeper for help. + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10424_KekropusLetterBelosWhereabouts/33852-01.htm b/trunk/dist/game/data/scripts/quests/Q10424_KekropusLetterBelosWhereabouts/33852-01.htm new file mode 100644 index 0000000000..526480c704 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10424_KekropusLetterBelosWhereabouts/33852-01.htm @@ -0,0 +1,4 @@ +Giant's Minion Lugonnes:
+Well met! Kekropus sent word of your visit, saying that you defeated Sakum in the Wasteland. After that, this should be no trouble for you at all... Well, maybe a little.
+ + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10424_KekropusLetterBelosWhereabouts/33852-02.htm b/trunk/dist/game/data/scripts/quests/Q10424_KekropusLetterBelosWhereabouts/33852-02.htm new file mode 100644 index 0000000000..84dbf2be2a --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10424_KekropusLetterBelosWhereabouts/33852-02.htm @@ -0,0 +1,6 @@ +Giant's Minion Lugonnes:
+After you destroyed Sakum, Embryo created 2 clones of the monster named Belos and Kampf.
+When I last saw Belos, he was heading to the Ketra Orc Outpost. It seems like the Ketra Orcs and Embryo are working together, with Belos as their link. You and I must end this alliance.
+There is much to be done. Prepare yourself and speak to me when you are ready.

+- Note: You can develop yourself through quests and hunting at the hunting ground of Ketra Orc Outpost. You can get the next item, Kekropus' Letter, at Lv. 81. + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10424_KekropusLetterBelosWhereabouts/Q10424_KekropusLetterBelosWhereabouts.java b/trunk/dist/game/data/scripts/quests/Q10424_KekropusLetterBelosWhereabouts/Q10424_KekropusLetterBelosWhereabouts.java new file mode 100644 index 0000000000..f3ea146f17 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10424_KekropusLetterBelosWhereabouts/Q10424_KekropusLetterBelosWhereabouts.java @@ -0,0 +1,155 @@ +/* + * This file is part of the L2J Mobius project. + * + * This program 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. + * + * This program 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.Q10424_KekropusLetterBelosWhereabouts; + +import com.l2jmobius.gameserver.model.Location; +import com.l2jmobius.gameserver.model.actor.L2Character; +import com.l2jmobius.gameserver.model.actor.L2Npc; +import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance; +import com.l2jmobius.gameserver.model.quest.QuestState; +import com.l2jmobius.gameserver.network.NpcStringId; +import com.l2jmobius.gameserver.network.serverpackets.ExShowScreenMessage; + +import quests.LetterQuest; + +/** + * Kekropus' Letter: Belos' Whereabouts (10424) + * @author Stayawy + */ +public final class Q10424_KekropusLetterBelosWhereabouts extends LetterQuest +{ + // NPCs + private static final int ANDREI = 31292; + private static final int LUGONNES = 33852; + private static final int INVISIBLE_NPC = 19543; + // Items + private static final int SOE_TOWN_OF_GODDARD = 37121; // Scroll of Escape: Town of Goddard + private static final int SOE_KETRA_ORC_OUTPOST = 37035; // Scroll of Escape: Varka Silenos Barracks + private static final int EWS = 959; // Scroll: Enchant Weapon (S-grade) + // Location + private static final Location TELEPORT_LOC = new Location(147491, -56633, -2776); + // Misc + private static final int MIN_LEVEL = 76; + private static final int MAX_LEVEL = 80; + + public Q10424_KekropusLetterBelosWhereabouts() + { + super(10424); + addTalkId(ANDREI, LUGONNES); + addSeeCreatureId(INVISIBLE_NPC); + setIsErtheiaQuest(false); + setLevel(MIN_LEVEL, MAX_LEVEL); + setStartQuestSound("Npcdialog1.kekrops_quest_9"); + setStartLocation(SOE_TOWN_OF_GODDARD, TELEPORT_LOC); + registerQuestItems(SOE_TOWN_OF_GODDARD, SOE_KETRA_ORC_OUTPOST); + } + + @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 "31292-02.html": + { + htmltext = event; + break; + } + case "31292-03.html": + { + if (qs.isCond(1)) + { + takeItems(player, SOE_TOWN_OF_GODDARD, -1); + giveItems(player, SOE_KETRA_ORC_OUTPOST, 1); + qs.setCond(2, true); + htmltext = event; + } + break; + } + case "33852-02.html": + { + if (qs.isCond(2)) + { + qs.exitQuest(false, true); + giveItems(player, EWS, 1); + giveStoryQuestReward(player, 182); + if (player.getLevel() >= MIN_LEVEL) + { + addExpAndSp(player, 1_277_640, 306); + } + showOnScreenMsg(player, NpcStringId.GROW_STRONGER_HERE_UNTIL_YOU_RECEIVE_THE_NEXT_LETTER_FROM_KEKROPUS_AT_LV_81, ExShowScreenMessage.TOP_CENTER, 6000); + htmltext = event; + } + break; + } + } + return htmltext; + } + + @Override + public String onTalk(L2Npc npc, L2PcInstance player) + { + String htmltext = getNoQuestMsg(player); + final QuestState st = getQuestState(player, false); + + if (st == null) + { + return htmltext; + } + + if (st.isStarted()) + { + if ((npc.getId() == ANDREI) && st.isCond(1)) + { + htmltext = "31292-01.html"; + } + else if (st.isCond(2)) + { + htmltext = npc.getId() == ANDREI ? "31292-04.html" : "33852-01.html"; + } + } + return htmltext; + } + + @Override + public String onSeeCreature(L2Npc npc, L2Character creature, boolean isSummon) + { + if (creature.isPlayer()) + { + final L2PcInstance player = creature.getActingPlayer(); + final QuestState st = getQuestState(player, false); + + if ((st != null) && st.isCond(2)) + { + showOnScreenMsg(player, NpcStringId.KETRA_ORC_OUTPOST_IS_A_GOOD_HUNTING_ZONE_FOR_LV_76_OR_ABOVE, ExShowScreenMessage.TOP_CENTER, 6000); + } + } + return super.onSeeCreature(npc, creature, isSummon); + } + + @Override + public boolean canShowTutorialMark(L2PcInstance player) + { + return player.isMageClass(); + } +} \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10424_KekropusLetterBelosWhereabouts/popup.html b/trunk/dist/game/data/scripts/quests/Q10424_KekropusLetterBelosWhereabouts/popup.html new file mode 100644 index 0000000000..0d3362f774 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10424_KekropusLetterBelosWhereabouts/popup.html @@ -0,0 +1,6 @@ +Kekropus' LetterKekropus' Letter:
+A monster resembling Sakum who had fought a bloody battle in the Wasteland long ago, has been spotted in the Ketra Orc Outpost. Go to Captain Andrei in the Town of Goddard for details.
+(A Scroll of Escape is enclosed. If you want to go now, use it to travel immediately.)
+ + + \ 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 c3c08bde7b..8af5bd32ff 100644 --- a/trunk/dist/game/data/scripts/quests/QuestMasterHandler.java +++ b/trunk/dist/game/data/scripts/quests/QuestMasterHandler.java @@ -282,6 +282,7 @@ import quests.Q10419_KekropusLetterKampfsWhereabouts.Q10419_KekropusLetterKampfs import quests.Q10420_TheVarkaSilenosSupporters.Q10420_TheVarkaSilenosSupporters; import quests.Q10421_AssassinationOfTheVarkaSilenosCommander.Q10421_AssassinationOfTheVarkaSilenosCommander; import quests.Q10422_AssassinationOfTheVarkaSilenosChief.Q10422_AssassinationOfTheVarkaSilenosChief; +import quests.Q10424_KekropusLetterBelosWhereabouts.Q10424_KekropusLetterBelosWhereabouts; import quests.Q10442_TheAnnihilatedPlains1.Q10442_TheAnnihilatedPlains1; import quests.Q10445_AnImpendingThreat.Q10445_AnImpendingThreat; import quests.Q10450_ADarkAmbition.Q10450_ADarkAmbition; @@ -647,6 +648,7 @@ public class QuestMasterHandler Q10420_TheVarkaSilenosSupporters.class, Q10421_AssassinationOfTheVarkaSilenosCommander.class, Q10422_AssassinationOfTheVarkaSilenosChief.class, + Q10424_KekropusLetterBelosWhereabouts.class, Q10442_TheAnnihilatedPlains1.class, Q10445_AnImpendingThreat.class, Q10450_ADarkAmbition.class, diff --git a/trunk/dist/game/data/stats/skills/09900-09999.xml b/trunk/dist/game/data/stats/skills/09900-09999.xml index 6c1e9088d8..763cfa633e 100644 --- a/trunk/dist/game/data/stats/skills/09900-09999.xml +++ b/trunk/dist/game/data/stats/skills/09900-09999.xml @@ -958,7 +958,7 @@ icon.skill0000 - 1500 + 500 2 37034 1 @@ -984,15 +984,32 @@ - icon.skill0000 + 500 + 2 37035 1 + 1 A1 + NONE;STRIDER;WYVERN;WOLF SELF SINGLE - 1500 + + + + + + + + + + + 146718 + -67185 + -3652 + +