From 0a3791df185f87649b08cf4577d2987a0a42bc15 Mon Sep 17 00:00:00 2001 From: MobiusDev <8391001+MobiusDevelopment@users.noreply.github.com> Date: Mon, 3 Aug 2015 18:07:52 +0000 Subject: [PATCH] Quest Divided Sakum, Kanilov (10336). Missing html for previous quest. Contributed by spider. --- .../Q10335_RequestToFindSakum/no_level.htm | 3 + .../Q10336_DividedSakumKanilov/31795-01.html | 5 + .../Q10336_DividedSakumKanilov/31795-02.html | 4 + .../Q10336_DividedSakumKanilov/31795-03.html | 4 + .../Q10336_DividedSakumKanilov/31795-04.html | 4 + .../Q10336_DividedSakumKanilov/33509-01.htm | 4 + .../Q10336_DividedSakumKanilov/33509-02.htm | 5 + .../Q10336_DividedSakumKanilov/33509-03.htm | 4 + .../Q10336_DividedSakumKanilov/33509-05.html | 4 + .../Q10336_DividedSakumKanilov/33509-06.html | 4 + .../Q10336_DividedSakumKanilov.java | 169 ++++++++++++++++++ .../Q10336_DividedSakumKanilov/no_level.htm | 3 + .../scripts/quests/QuestMasterHandler.java | 2 + 13 files changed, 215 insertions(+) create mode 100644 trunk/dist/game/data/scripts/quests/Q10335_RequestToFindSakum/no_level.htm create mode 100644 trunk/dist/game/data/scripts/quests/Q10336_DividedSakumKanilov/31795-01.html create mode 100644 trunk/dist/game/data/scripts/quests/Q10336_DividedSakumKanilov/31795-02.html create mode 100644 trunk/dist/game/data/scripts/quests/Q10336_DividedSakumKanilov/31795-03.html create mode 100644 trunk/dist/game/data/scripts/quests/Q10336_DividedSakumKanilov/31795-04.html create mode 100644 trunk/dist/game/data/scripts/quests/Q10336_DividedSakumKanilov/33509-01.htm create mode 100644 trunk/dist/game/data/scripts/quests/Q10336_DividedSakumKanilov/33509-02.htm create mode 100644 trunk/dist/game/data/scripts/quests/Q10336_DividedSakumKanilov/33509-03.htm create mode 100644 trunk/dist/game/data/scripts/quests/Q10336_DividedSakumKanilov/33509-05.html create mode 100644 trunk/dist/game/data/scripts/quests/Q10336_DividedSakumKanilov/33509-06.html create mode 100644 trunk/dist/game/data/scripts/quests/Q10336_DividedSakumKanilov/Q10336_DividedSakumKanilov.java create mode 100644 trunk/dist/game/data/scripts/quests/Q10336_DividedSakumKanilov/no_level.htm diff --git a/trunk/dist/game/data/scripts/quests/Q10335_RequestToFindSakum/no_level.htm b/trunk/dist/game/data/scripts/quests/Q10335_RequestToFindSakum/no_level.htm new file mode 100644 index 0000000000..871ab98452 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10335_RequestToFindSakum/no_level.htm @@ -0,0 +1,3 @@ +You don't meet level requirements
+(Quest available from level 23 to level 40) + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10336_DividedSakumKanilov/31795-01.html b/trunk/dist/game/data/scripts/quests/Q10336_DividedSakumKanilov/31795-01.html new file mode 100644 index 0000000000..64147065c3 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10336_DividedSakumKanilov/31795-01.html @@ -0,0 +1,5 @@ +Adventure Guildsman:
+You must be the one they sent as backup to the Ruins of Agony! I heard from Bathis that you were helping Zenath and Schunain. So, how did it go?
+What? It's done already? That's great news! Tell me all about it.
+ + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10336_DividedSakumKanilov/31795-02.html b/trunk/dist/game/data/scripts/quests/Q10336_DividedSakumKanilov/31795-02.html new file mode 100644 index 0000000000..404b295899 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10336_DividedSakumKanilov/31795-02.html @@ -0,0 +1,4 @@ +Adventure Guildsman:
+No sooner do we defeat Kanilov than another pops up in his place. Sigh... It's never-ending. Ah well. Did Zenath send you to deliver something?
+ + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10336_DividedSakumKanilov/31795-03.html b/trunk/dist/game/data/scripts/quests/Q10336_DividedSakumKanilov/31795-03.html new file mode 100644 index 0000000000..adacdec354 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10336_DividedSakumKanilov/31795-03.html @@ -0,0 +1,4 @@ +Adventure Guildsman:
+What's this? A sketch? Oh! Now I see... it must be that Sakum creature everyone's been talking about. Well, well, well, the scholars will be pleased to see this. Until now, nobody's been able to give a coherent account of what it looks like, let alone a sketch. Now we can try and figure out what it is and where it came from.
+Here, take this. If you have a D-grade weapon, try weapon Enchantment, but don't stress yourself out to much if you have bad luck. + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10336_DividedSakumKanilov/31795-04.html b/trunk/dist/game/data/scripts/quests/Q10336_DividedSakumKanilov/31795-04.html new file mode 100644 index 0000000000..e33e55dcc2 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10336_DividedSakumKanilov/31795-04.html @@ -0,0 +1,4 @@ +Adventure Guildsman:
+Baron Lewin Waldner approves of what you're doing. Keep up the good work!
+(This quest is already complete) + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10336_DividedSakumKanilov/33509-01.htm b/trunk/dist/game/data/scripts/quests/Q10336_DividedSakumKanilov/33509-01.htm new file mode 100644 index 0000000000..f54311ef89 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10336_DividedSakumKanilov/33509-01.htm @@ -0,0 +1,4 @@ +Guard Zenath:
+I have a favor to ask of you... something I've asked you about before... about Kanilov...
+ + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10336_DividedSakumKanilov/33509-02.htm b/trunk/dist/game/data/scripts/quests/Q10336_DividedSakumKanilov/33509-02.htm new file mode 100644 index 0000000000..2516183d73 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10336_DividedSakumKanilov/33509-02.htm @@ -0,0 +1,5 @@ +Guard Zenath:
+Sakum created Kanilov. In a way, they're actually twins - it seems the life energy absorbed by Kanilov is being transmitted to Sakum, making him virtually indestructible as long as Kanilov lives...
+We need to stop Sakum, obviously but first we must kill Kanilov. Are you up to the task?
+ + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10336_DividedSakumKanilov/33509-03.htm b/trunk/dist/game/data/scripts/quests/Q10336_DividedSakumKanilov/33509-03.htm new file mode 100644 index 0000000000..46885fdc6d --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10336_DividedSakumKanilov/33509-03.htm @@ -0,0 +1,4 @@ +Guard Zenath:
+Thank you for accepting! according to our scholars, Sakum made Kanilov by taking out a part of his body and growing it into another beast. Thus, you'll hurt Sakum terribly if you defeat Kanilov. Please!
+(Kanilov's location can be verified on the map by pressing ALT+M) + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10336_DividedSakumKanilov/33509-05.html b/trunk/dist/game/data/scripts/quests/Q10336_DividedSakumKanilov/33509-05.html new file mode 100644 index 0000000000..fed1b3ed51 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10336_DividedSakumKanilov/33509-05.html @@ -0,0 +1,4 @@ +Guard Zenath:
+You did it! you defeated Kanilov! You're unbelievable! Quick - return to Gludio and report back to one of the Adventurer Guildsmen in the town center!
+Oh, and take this as well... It's a sketch I drew of Sakum, and it might help the scholars with their studies. + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10336_DividedSakumKanilov/33509-06.html b/trunk/dist/game/data/scripts/quests/Q10336_DividedSakumKanilov/33509-06.html new file mode 100644 index 0000000000..b4240262fe --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10336_DividedSakumKanilov/33509-06.html @@ -0,0 +1,4 @@ +Guard Zenath:
+Hurry back to Gludio and report back to one of the Adventurer Guildsmen in the town center!
+You should also pass on the sketch I gave you. + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10336_DividedSakumKanilov/Q10336_DividedSakumKanilov.java b/trunk/dist/game/data/scripts/quests/Q10336_DividedSakumKanilov/Q10336_DividedSakumKanilov.java new file mode 100644 index 0000000000..76458ddeb2 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10336_DividedSakumKanilov/Q10336_DividedSakumKanilov.java @@ -0,0 +1,169 @@ +/* + * 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.Q10336_DividedSakumKanilov; + +import com.l2jserver.gameserver.model.actor.L2Npc; +import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; +import com.l2jserver.gameserver.model.holders.ItemHolder; +import com.l2jserver.gameserver.model.quest.Quest; +import com.l2jserver.gameserver.model.quest.QuestState; +import com.l2jserver.gameserver.model.quest.State; +import com.l2jserver.gameserver.util.Util; + +/** + * Divided Sakum, Kanilov (10336) + * @author spider + */ +public class Q10336_DividedSakumKanilov extends Quest +{ + // NPCs + private static final int ZENATH = 33509; + private static final int ADV_GUILDSMAN = 31795; + // Monster + private static final int KANILOV = 27451; + // Items + private static final int SAKUMS_SKETCH_A = 17584; + private static final int MIN_LEVEL = 27; + private static final int MAX_LEVEL = 40; + // Rewards + private static final int ADENA_REWARD = 1000; + private static final int EXP_REWARD = 500000; + private static final int SP_REWARD = 120; + private static final ItemHolder SCROLL_EW_D = new ItemHolder(955, 3); // 3 scrolls on retail server + + public Q10336_DividedSakumKanilov() + { + super(10336, Q10336_DividedSakumKanilov.class.getSimpleName(), "Divided Sakum, Kanilov"); + addStartNpc(ZENATH); + addTalkId(ZENATH, ADV_GUILDSMAN); + addKillId(KANILOV); + registerQuestItems(SAKUMS_SKETCH_A); + addCondLevel(MIN_LEVEL, MAX_LEVEL, "no_level.htm"); + } + + @Override + public String onAdvEvent(String event, L2Npc npc, L2PcInstance player) + { + final QuestState qs = getQuestState(player, false); + if (qs == null) + { + return null; + } + + String texthtml = null; + switch (event) + { + case "33509-02.htm": + { + texthtml = event; + break; + } + case "33509-03.htm": // start the quest + { + qs.startQuest(); + texthtml = event; + break; + } + case "31795-02.html": + { + texthtml = event; + break; + } + case "31795-03.html": // end quest, take sketch, give rewards + { + giveAdena(player, ADENA_REWARD, true); + addExpAndSp(player, EXP_REWARD, SP_REWARD); + rewardItems(player, SCROLL_EW_D); + qs.exitQuest(false, true); + texthtml = event; + break; + } + } + return texthtml; + } + + @Override + public String onTalk(L2Npc npc, L2PcInstance player) + { + final QuestState qs = getQuestState(player, true); + String texthtml = null; + switch (qs.getState()) + { + case State.CREATED: + { + texthtml = npc.getId() == ZENATH ? "33509-01.htm" : getNoQuestMsg(player); + break; + } + case State.STARTED: + { + switch (npc.getId()) + { + case ZENATH: + { + if (qs.isCond(1)) + { + texthtml = "33509-03.htm"; + } + else if (qs.isCond(2)) // report defeated kanilov, get the sketch + { + giveItems(player, SAKUMS_SKETCH_A, 1); + qs.setCond(3); + texthtml = "33509-05.html"; + } + else + { + texthtml = "33509-06.html"; + } + break; + } + case ADV_GUILDSMAN: + { + if (qs.isCond(3)) // start end quest dialogs + { + texthtml = "31795-01.html"; + } + else + { + texthtml = getNoQuestMsg(player); + } + break; + } + } + break; + } + case State.COMPLETED: + { + texthtml = npc.getId() == ADV_GUILDSMAN ? "31795-04.html" : getAlreadyCompletedMsg(player); + break; + } + } + return texthtml; + } + + @Override + public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon) + { + final QuestState qs = getQuestState(killer, false); // kill counts independent on party/no party + if ((qs != null) && qs.isStarted() && qs.isCond(1) && (Util.checkIfInRange(1500, npc, qs.getPlayer(), false))) + { + qs.setCond(2); + } + return super.onKill(npc, killer, isSummon); + } +} \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10336_DividedSakumKanilov/no_level.htm b/trunk/dist/game/data/scripts/quests/Q10336_DividedSakumKanilov/no_level.htm new file mode 100644 index 0000000000..5378a9b572 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10336_DividedSakumKanilov/no_level.htm @@ -0,0 +1,3 @@ +You don't meet level requirements
+(Quest available from level 27 to level 40) + \ 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 16db3ea7cd..a3bdbd66c2 100644 --- a/trunk/dist/game/data/scripts/quests/QuestMasterHandler.java +++ b/trunk/dist/game/data/scripts/quests/QuestMasterHandler.java @@ -199,6 +199,7 @@ import quests.Q10332_ToughRoad.Q10332_ToughRoad; import quests.Q10333_DisappearedSakum.Q10333_DisappearedSakum; import quests.Q10334_ReportingTheStatusOfWindmillHill.Q10334_ReportingTheStatusOfWindmillHill; import quests.Q10335_RequestToFindSakum.Q10335_RequestToFindSakum; +import quests.Q10336_DividedSakumKanilov.Q10336_DividedSakumKanilov; import quests.Q10338_SeizeYourDestiny.Q10338_SeizeYourDestiny; import quests.Q10390_KekropusLetter.Q10390_KekropusLetter; import quests.Q10393_KekropusLetter_AClueCompleted.Q10393_KekropusLetter_AClueCompleted; @@ -417,6 +418,7 @@ public class QuestMasterHandler Q10333_DisappearedSakum.class, Q10334_ReportingTheStatusOfWindmillHill.class, Q10335_RequestToFindSakum.class, + Q10336_DividedSakumKanilov.class, Q10338_SeizeYourDestiny.class, Q10390_KekropusLetter.class, Q10393_KekropusLetter_AClueCompleted.class,