This commit is contained in:
5
trunk/dist/game/data/scripts/quests/Q00146_TheZeroHour/31554-01a.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00146_TheZeroHour/31554-01a.htm
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
<html><body>Mercenary Kahman:<br>
|
||||
Welcome! The time has come to end this conflict.<br>
|
||||
Are you ready to do your part in a decisive battle?<br>
|
||||
<a action="bypass -h Quest Q00146_TheZeroHour 31554-03.htm">Say yes.</a>
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00146_TheZeroHour/31554-01b.htm
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00146_TheZeroHour/31554-01b.htm
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
<html><body>Mercenary Kahman:<br>
|
||||
Thanks to you, the Stakatos have finally been defeated. Good work!
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00146_TheZeroHour/31554-02.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00146_TheZeroHour/31554-02.htm
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
<html><body>Mercenary Kahman:<br>
|
||||
I'm sorry, but you are too inexperienced to help us. Save yourself!<br>
|
||||
(Only characters who are level 81 or higher may undertake this quest.)
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00146_TheZeroHour/31554-03.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00146_TheZeroHour/31554-03.htm
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
<html><body>Mercenary Kahman:<br>
|
||||
I admire your courage! As you know, we've been infiltrating the Stakato Nest for some time and covertly attacking those monsters. Well, that must have just made them angrier.<br>
|
||||
This time we're going to cut their head off by killing their leader, <font color="LEVEL">Queen Shyeed</font>. Bring back the <font color="LEVEL">Stakato Queen's Fangs</font> as proof of your victory.<br>
|
||||
It won't be an easy battle, so take some trusted comrades with you. Good luck!
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00146_TheZeroHour/31554-04.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00146_TheZeroHour/31554-04.html
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
<html><body>Mercenary Kahman:<br>
|
||||
Our reconnaissance isn't complete, so I don't have a mission for you yet. Come back later.<br>
|
||||
(Only characters who have completed the "In Search of the Nest" quest may undertake this quest.)
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00146_TheZeroHour/31554-05.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00146_TheZeroHour/31554-05.html
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
<html><body>Mercenary Kahman:<br>
|
||||
These fangs...?! They belonged to the Queen Shyeed? So you were successful!<br>
|
||||
Well done! Here is the highest reward you can receive from the Golden Ram Mercenaries.<br>
|
||||
It has been an honor working with you!
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00146_TheZeroHour/31554-06.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00146_TheZeroHour/31554-06.html
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
<html><body>Mercenary Kahman:<br>
|
||||
What are you doing here? We Golden Ram Mercenaries don't tolerate cowards. Show us what you're made of!<br>
|
||||
Defeat <font color="LEVEL">Queen Shyeed</font> and bring back the <font color="LEVEL">Stakato Queen's Fangs</font> as proof!
|
||||
</body></html>
|
132
trunk/dist/game/data/scripts/quests/Q00146_TheZeroHour/Q00146_TheZeroHour.java
vendored
Normal file
132
trunk/dist/game/data/scripts/quests/Q00146_TheZeroHour/Q00146_TheZeroHour.java
vendored
Normal file
@ -0,0 +1,132 @@
|
||||
/*
|
||||
* Copyright (C) 2004-2014 L2J DataPack
|
||||
*
|
||||
* This file is part of L2J DataPack.
|
||||
*
|
||||
* L2J DataPack 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 DataPack 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.Q00146_TheZeroHour;
|
||||
|
||||
import quests.Q00109_InSearchOfTheNest.Q00109_InSearchOfTheNest;
|
||||
|
||||
import com.l2jserver.gameserver.model.actor.L2Npc;
|
||||
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jserver.gameserver.model.quest.Quest;
|
||||
import com.l2jserver.gameserver.model.quest.QuestState;
|
||||
import com.l2jserver.gameserver.model.quest.State;
|
||||
|
||||
/**
|
||||
* The Zero Hour (146)
|
||||
* @author Gnacik, malyelfik
|
||||
*/
|
||||
public class Q00146_TheZeroHour extends Quest
|
||||
{
|
||||
// NPCs
|
||||
private static final int KAHMAN = 31554;
|
||||
private static final int QUEEN_SHYEED = 25671;
|
||||
// Item
|
||||
private static final int KAHMANS_SUPPLY_BOX = 14849;
|
||||
private static final int FANG = 14859;
|
||||
|
||||
public Q00146_TheZeroHour()
|
||||
{
|
||||
super(146, Q00146_TheZeroHour.class.getSimpleName(), "The Zero Hour");
|
||||
addStartNpc(KAHMAN);
|
||||
addTalkId(KAHMAN);
|
||||
addKillId(QUEEN_SHYEED);
|
||||
registerQuestItems(FANG);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final QuestState st = getQuestState(player, false);
|
||||
if (st == null)
|
||||
{
|
||||
return getNoQuestMsg(player);
|
||||
}
|
||||
|
||||
if (event.equalsIgnoreCase("31554-03.htm"))
|
||||
{
|
||||
st.startQuest();
|
||||
}
|
||||
return event;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
|
||||
{
|
||||
final L2PcInstance partyMember = getRandomPartyMember(killer, 1);
|
||||
if (partyMember != null)
|
||||
{
|
||||
final QuestState st = getQuestState(partyMember, false);
|
||||
if (!st.hasQuestItems(FANG))
|
||||
{
|
||||
st.giveItems(FANG, 1);
|
||||
st.setCond(2, true);
|
||||
}
|
||||
}
|
||||
return super.onKill(npc, killer, isSummon);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
String htmltext = getNoQuestMsg(player);
|
||||
final QuestState st = getQuestState(player, true);
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
switch (st.getState())
|
||||
{
|
||||
case State.CREATED:
|
||||
if (player.getLevel() < 81)
|
||||
{
|
||||
htmltext = "31554-02.htm";
|
||||
}
|
||||
else
|
||||
{
|
||||
final QuestState prev = player.getQuestState(Q00109_InSearchOfTheNest.class.getSimpleName());
|
||||
if ((prev != null) && prev.isCompleted())
|
||||
{
|
||||
htmltext = "31554-01a.htm";
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "31554-04.html";
|
||||
}
|
||||
}
|
||||
break;
|
||||
case State.STARTED:
|
||||
if (st.isCond(1))
|
||||
{
|
||||
htmltext = "31554-06.html";
|
||||
}
|
||||
else
|
||||
{
|
||||
st.giveItems(KAHMANS_SUPPLY_BOX, 1);
|
||||
st.addExpAndSp(154616, 12500);
|
||||
st.exitQuest(false, true);
|
||||
htmltext = "31554-05.html";
|
||||
}
|
||||
break;
|
||||
case State.COMPLETED:
|
||||
htmltext = "31554-01b.htm";
|
||||
break;
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user