Quest Assassination of the Ketra Orc Commander (10426).

Contributed by Stayway.
This commit is contained in:
MobiusDev 2016-08-07 20:27:41 +00:00
parent c6ce5e1f7f
commit 7cc07b1ab4
12 changed files with 187 additions and 1 deletions

View File

@ -93,7 +93,6 @@
10380 The Executioner's Execution 10380 The Executioner's Execution
10388 Conspiracy Behind Doors 10388 Conspiracy Behind Doors
10389 The Voice of Authority 10389 The Voice of Authority
10426 Assassination of the Ketra Orc Commander
10427 Assassination of the Ketra Orc Chief 10427 Assassination of the Ketra Orc Chief
10430 Kekropus' Letter: Tracking the Evil (9/9) 10430 Kekropus' Letter: Tracking the Evil (9/9)
10431 The Seal of Punishment: Den of Evil 10431 The Seal of Punishment: Den of Evil

View File

@ -0,0 +1,4 @@
<html><body>Giant's Minion Lugonnes:<br>
Hmm... They are being more cautious than expected after your assault. <font color="LEVEL">Belos</font> is nowhere to be found! I think we should be more aggressive.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10426_AssassinationOfTheKetraOrcCommander 33852-02.htm">"I like the sound of that."</Button>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Giant's Minion Lugonnes:<br>
We will have to assassinate their commander. With someone in such a high position eliminated, they will have to bring out <font color="LEVEL">Belos</font>. When that happens, kill <font color="LEVEL">Belos</font> as well.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Q10426_AssassinationOfTheKetraOrcCommander 33852-03.htm">"Okay, I got it."</Button>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Giant's Minion Lugonnes:<br>
Of course, it won't be easy to assassinate the <font color="LEVEL">Ketra Orcs</font>' commander. But that's why we have you, right? It's worth trying even though there is a chance <font color="LEVEL">Belos</font> won't show up at all.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Q10426_AssassinationOfTheKetraOrcCommander 33852-04.htm">"Got it."</Button>
</body></html>

View File

@ -0,0 +1,3 @@
<html><body>Giant's Minion Lugonnes:<br>
Let me explain again. Find and kill <font color="LEVEL">Ketra's Commander Tayr</font> in the <font color="LEVEL">Ketra Orc Outpost</font> and come back to me.
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Giant's Minion Lugonnes:<br>
You haven't finished the mission yet.<br>
Again, find and kill <font color="LEVEL">Ketra's Commander Tayr</font> here at the <font color="LEVEL">Ketra Orc Outpost</font> and report to me.
</body></html>

View File

@ -0,0 +1,9 @@
<html><head><body>Giant's Minion Lugonnes:<br>
Hmm… Even after <font color="LEVEL">Ketra's Commander Tayr</font> was killed, <font color="LEVEL">Belos</font> didn't show up.<br>Well, killing Tayr was still a good thing. No good having him around now that the alliance between <font color="LEVEL">Embryo</font> and the <font color="LEVEL">Ketra Orcs</font> is clear.<br>So, time for your rewards! Which attribute stones do you want?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10426_AssassinationOfTheKetraOrcCommander reward_9546">15 Fire Stones</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10426_AssassinationOfTheKetraOrcCommander reward_9547">15 Water Stones</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10426_AssassinationOfTheKetraOrcCommander reward_9548">15 Earth Stones</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10426_AssassinationOfTheKetraOrcCommander reward_9549">15 Wind Stones</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10426_AssassinationOfTheKetraOrcCommander reward_9550">15 Dark Stones</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10426_AssassinationOfTheKetraOrcCommander reward_9551">15 Holy Stones</Button>
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Giant's Minion Lugonnes:<br>
Be that as it may, you are not ready yet.<br>
(This quest may only be undertaken by a Wizard class character of level 76 or above who has completed the quest "The Ketra Orc Supporters".)
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Giant's Minion Lugonnes:<br>
I don't trust you.<br>
(Ertheia classes cannot perform this quest.)
</body></html>

View File

@ -0,0 +1,4 @@
<html><body>Giant's Minion Lugonnes:<br>
I don't think it's time to act quite yet.<br>
(This quest may only be undertaken by a Wizard class character of level 76 to 80 who has completed the quest "The Ketra Orc Supporters".)
</body></html>

View File

@ -0,0 +1,145 @@
/*
* 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 <http://www.gnu.org/licenses/>.
*/
package quests.Q10426_AssassinationOfTheKetraOrcCommander;
import com.l2jmobius.gameserver.enums.CategoryType;
import com.l2jmobius.gameserver.enums.Race;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
import com.l2jmobius.gameserver.model.quest.Quest;
import com.l2jmobius.gameserver.model.quest.QuestState;
import com.l2jmobius.gameserver.model.quest.State;
import quests.Q10425_TheKetraOrcSupporters.Q10425_TheKetraOrcSupporters;
/**
* Assassination of the Ketra Orc Commander (10426)
* @author Stayway
*/
public final class Q10426_AssassinationOfTheKetraOrcCommander extends Quest
{
// NPCs
private static final int LUGONNES = 33852;
private static final int COMMANDER_TAYR = 27500;
// Items
private static final int EAS = 26353; // Scroll: Enchant Armor (S-grade)
// Misc
private static final int MIN_LEVEL = 76;
private static final int MAX_LEVEL = 80;
public Q10426_AssassinationOfTheKetraOrcCommander()
{
super(10426);
addStartNpc(LUGONNES);
addTalkId(LUGONNES);
addKillId(COMMANDER_TAYR);
addCondNotRace(Race.ERTHEIA, "33852-08.html");
addCondInCategory(CategoryType.WIZARD_GROUP, "33852-09.htm");
addCondMinLevel(MIN_LEVEL, "33852-09.htm");
addCondMaxLevel(MAX_LEVEL, "33852-09.htm");
addCondCompletedQuest(Q10425_TheKetraOrcSupporters.class.getSimpleName(), "33852-09.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 "33852-02.htm":
case "33852-03.htm":
{
htmltext = event;
break;
}
case "33852-04.htm":
{
qs.startQuest();
htmltext = event;
break;
}
case "reward_9546":
case "reward_9547":
case "reward_9548":
case "reward_9549":
case "reward_9550":
case "reward_9551":
{
if (qs.isCond(2))
{
final int stoneId = Integer.parseInt(event.replaceAll("reward_", ""));
qs.exitQuest(false, true);
giveItems(player, stoneId, 15);
giveItems(player, EAS, 2);
giveStoryQuestReward(player, 30);
if ((player.getLevel() >= MIN_LEVEL) && (player.getLevel() <= MAX_LEVEL))
{
addExpAndSp(player, 7_665_840, 1839);
}
htmltext = "33852-07.html";
}
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 = "33852-01.htm";
break;
}
case State.STARTED:
{
htmltext = qs.isCond(1) ? "33852-05.html" : "33852-06.html";
break;
}
case State.COMPLETED:
{
htmltext = getAlreadyCompletedMsg(player);
break;
}
}
return htmltext;
}
@Override
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && qs.isCond(1))
{
qs.setCond(2, true);
}
return super.onKill(npc, killer, isSummon);
}
}

View File

@ -285,6 +285,7 @@ import quests.Q10421_AssassinationOfTheVarkaSilenosCommander.Q10421_Assassinatio
import quests.Q10422_AssassinationOfTheVarkaSilenosChief.Q10422_AssassinationOfTheVarkaSilenosChief; import quests.Q10422_AssassinationOfTheVarkaSilenosChief.Q10422_AssassinationOfTheVarkaSilenosChief;
import quests.Q10424_KekropusLetterBelosWhereabouts.Q10424_KekropusLetterBelosWhereabouts; import quests.Q10424_KekropusLetterBelosWhereabouts.Q10424_KekropusLetterBelosWhereabouts;
import quests.Q10425_TheKetraOrcSupporters.Q10425_TheKetraOrcSupporters; import quests.Q10425_TheKetraOrcSupporters.Q10425_TheKetraOrcSupporters;
import quests.Q10426_AssassinationOfTheKetraOrcCommander.Q10426_AssassinationOfTheKetraOrcCommander;
import quests.Q10442_TheAnnihilatedPlains1.Q10442_TheAnnihilatedPlains1; import quests.Q10442_TheAnnihilatedPlains1.Q10442_TheAnnihilatedPlains1;
import quests.Q10445_AnImpendingThreat.Q10445_AnImpendingThreat; import quests.Q10445_AnImpendingThreat.Q10445_AnImpendingThreat;
import quests.Q10450_ADarkAmbition.Q10450_ADarkAmbition; import quests.Q10450_ADarkAmbition.Q10450_ADarkAmbition;
@ -652,6 +653,7 @@ public class QuestMasterHandler
Q10422_AssassinationOfTheVarkaSilenosChief.class, Q10422_AssassinationOfTheVarkaSilenosChief.class,
Q10424_KekropusLetterBelosWhereabouts.class, Q10424_KekropusLetterBelosWhereabouts.class,
Q10425_TheKetraOrcSupporters.class, Q10425_TheKetraOrcSupporters.class,
Q10426_AssassinationOfTheKetraOrcCommander.class,
Q10442_TheAnnihilatedPlains1.class, Q10442_TheAnnihilatedPlains1.class,
Q10445_AnImpendingThreat.class, Q10445_AnImpendingThreat.class,
Q10450_ADarkAmbition.class, Q10450_ADarkAmbition.class,