Quest Divided Sakum, Kanilov (10336).

Missing html for previous quest.

Contributed by spider.
This commit is contained in:
MobiusDev 2015-08-03 18:07:52 +00:00
parent 78090f6694
commit 0a3791df18
13 changed files with 215 additions and 0 deletions

View File

@ -0,0 +1,3 @@
<html><body>You don't meet level requirements<br>
(Quest available from level 23 to level 40)
</body></html>

View File

@ -0,0 +1,5 @@
<html><body>Adventure Guildsman:<br>
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?<br>
What? It's done already? That's great news! Tell me all about it.<br>
<Button ALIGN=LEFT icon=NORMAL action="bypass -h Quest Q10336_DividedSakumKanilov 31795-02.html">"Yes, sir."</Button>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Adventure Guildsman:<br>
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?<br>
<Button ALIGN=LEFT icon=NORMAL action="bypass -h Quest Q10336_DividedSakumKanilov 31795-03.html">"Here's a sketch of Sakum"</Button>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Adventure Guildsman:<br>
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.<br>
Here, take this. If you have a D-grade weapon, try <font color="LEVEL" >weapon Enchantment</font>, but don't stress yourself out to much if you have bad luck.
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Adventure Guildsman:<br>
Baron Lewin Waldner approves of what you're doing. Keep up the good work!<br>
(This quest is already complete)
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Guard Zenath:<br>
I have a favor to ask of you... something I've asked you about before... about Kanilov...<br>
<Button ALIGN=LEFT icon=NORMAL action="bypass -h Quest Q10336_DividedSakumKanilov 33509-02.htm">"What about him?"</Button>
</body></html>

View File

@ -0,0 +1,5 @@
<html><body>Guard Zenath:<br>
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...<br>
We need to stop Sakum, obviously but first we must kill Kanilov. Are you up to the task?<br>
<Button ALIGN=LEFT icon=NORMAL action="bypass -h Quest Q10336_DividedSakumKanilov 33509-03.htm">"I will try."</Button>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Guard Zenath:<br>
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 <font color="LEVEL">Kanilov</font>. Please!<br>
(Kanilov's location can be verified on the map by pressing ALT+M)
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Guard Zenath:<br>
You did it! you defeated Kanilov! You're unbelievable! Quick - return to <font color="LEVEL">Gludio</font> and report back to one of the <font color="LEVEL">Adventurer Guildsmen</font> in the town center!<br>
Oh, and take this as well... It's a sketch I drew of Sakum, and it might help the scholars with their studies.
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Guard Zenath:<br>
Hurry back to <font color="LEVEL">Gludio</font> and report back to one of <font color="LEVEL">the Adventurer Guildsmen</font> in the town center!<br>
You should also pass on the sketch I gave you.
</body></html>

View File

@ -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 <http://www.gnu.org/licenses/>.
*/
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);
}
}

View File

@ -0,0 +1,3 @@
<html><body>You don't meet level requirements<br>
(Quest available from level 27 to level 40)
</body></html>

View File

@ -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,