Merged with released L2J-Unity files.

This commit is contained in:
mobiusdev
2016-06-12 01:34:09 +00:00
parent e003e87887
commit 635557f5da
18352 changed files with 3245113 additions and 2892959 deletions

View File

@@ -0,0 +1,4 @@
<html><body>Giant's Minion Hansen:<br>
How are they keeping this so secret? <font color="LEVEL">Kampf</font> is nowhere to be found. We need to flush them out.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10421_AssassinationOfTheVarkaSilenosCommander 33853-02.htm">"What should we do?"</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Giant's Minion Hansen:<br>
We have to assassinate their commander. When someone in such a high position is gone, they will have to bring out <font color="LEVEL">Kampf</font>. When that happens, kill <font color="LEVEL">Kampf</font> as well. Of course.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10421_AssassinationOfTheVarkaSilenosCommander 33853-03.htm">Continue to listen</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Giant's Minion Hansen:<br>
It won't be easy to assassinate the commander of the <font color="LEVEL">Varka Silenoses</font>. Also, <font color="LEVEL">Kampf</font> still might not show up. But it's the best plan we've got!<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10421_AssassinationOfTheVarkaSilenosCommander 33853-04.htm">"I can work with it."</Button>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Giant's Minion Hansen:<br>
Let me explain again. Find and kill <font color="LEVEL">Varka's Commander Mos</font> here in the <font color="LEVEL">Varka Silenos Barracks</font>, then come back to me.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Giant's Minion Hansen:<br>
You haven't finished the mission yet.<br>
Let me explain again. Find and kill <font color="LEVEL">Varka's Commander Mos</font> here in the <font color="LEVEL">Varka Silenos Barracks</font> and come back to me.
</body></html>

View File

@@ -0,0 +1,11 @@
<html><body>Giant's Minion Hansen:<br>
So you killed <font color="LEVEL">Varka's Commander Mos</font>, and still no <font color="LEVEL">Kampf</font>, huh.<br>
This is troubling, but at least you did get rid of <font color="LEVEL">Mos</font>. That probably dealt a blow to the <font color="LEVEL">Embryo</font> and <font color="LEVEL">Varka Silenos</font> alliance.<br>
Allow me to pay you for your work. Which color would you like?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10421_AssassinationOfTheVarkaSilenosCommander reward_9546">15 Fire Stones</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10421_AssassinationOfTheVarkaSilenosCommander reward_9547">15 Water Stones</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10421_AssassinationOfTheVarkaSilenosCommander reward_9548">15 Earth Stones</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10421_AssassinationOfTheVarkaSilenosCommander reward_9549">15 Wind Stones</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10421_AssassinationOfTheVarkaSilenosCommander reward_9550">15 Dark Stones</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10421_AssassinationOfTheVarkaSilenosCommander reward_9551">15 Holy Stones</Button>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Giant's Minion Hansen:<br>
Here, you should take some rest. I'll try to come up with a way to find <font color="LEVEL">Kampf</font>.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Giant's Minion Hansen:<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 Hansen:<br>
I don't think it's time to act quite yet.<br>
(This quest may only be undertaken by a Fighter class character of level 76 or above who has completed the quest "The Varka Silenos Supporters".)
</body></html>

View File

@@ -0,0 +1,143 @@
/*
* 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.Q10421_AssassinationOfTheVarkaSilenosCommander;
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.Q10420_TheVarkaSilenosSupporters.Q10420_TheVarkaSilenosSupporters;
/**
* Assassination of the Varka Silenos Commander (10421)
* @author St3eT
*/
public final class Q10421_AssassinationOfTheVarkaSilenosCommander extends Quest
{
// NPCs
private static final int HANSEN = 33853;
private static final int COMMANDER_MOS = 27502;
// Items
private static final int EAS = 26353; // Scroll: Enchant Armor (S-grade)
// Misc
private static final int MIN_LEVEL = 76;
public Q10421_AssassinationOfTheVarkaSilenosCommander()
{
super(10421);
addStartNpc(HANSEN);
addTalkId(HANSEN);
addKillId(COMMANDER_MOS);
addCondNotRace(Race.ERTHEIA, "33853-08.html");
addCondInCategory(CategoryType.FIGHTER_GROUP, "33853-09.htm");
addCondMinLevel(MIN_LEVEL, "33853-09.htm");
addCondCompletedQuest(Q10420_TheVarkaSilenosSupporters.class.getSimpleName(), "33853-09.htm");
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
final QuestState st = getQuestState(player, false);
if (st == null)
{
return null;
}
String htmltext = null;
switch (event)
{
case "33853-02.htm":
case "33853-03.htm":
{
htmltext = event;
break;
}
case "33853-04.htm":
{
st.startQuest();
htmltext = event;
break;
}
case "reward_9546":
case "reward_9547":
case "reward_9548":
case "reward_9549":
case "reward_9550":
case "reward_9551":
{
if (st.isCond(2))
{
final int stoneId = Integer.parseInt(event.replaceAll("reward_", ""));
st.exitQuest(false, true);
giveItems(player, stoneId, 15);
giveItems(player, EAS, 2);
giveStoryQuestReward(player, 30);
if (player.getLevel() >= MIN_LEVEL)
{
addExpAndSp(player, 7_665_840, 1839);
}
htmltext = "33853-07.html";
}
break;
}
}
return htmltext;
}
@Override
public String onTalk(L2Npc npc, L2PcInstance player)
{
final QuestState st = getQuestState(player, true);
String htmltext = null;
switch (st.getState())
{
case State.CREATED:
{
htmltext = "33853-01.htm";
break;
}
case State.STARTED:
{
htmltext = st.isCond(1) ? "33853-05.html" : "33853-06.html";
break;
}
case State.COMPLETED:
{
htmltext = getAlreadyCompletedMsg(player);
break;
}
}
return htmltext;
}
@Override
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState st = getQuestState(killer, false);
if ((st != null) && st.isCond(1))
{
st.setCond(2, true);
}
return super.onKill(npc, killer, isSummon);
}
}