This commit is contained in:
4
trunk/dist/game/data/scripts/quests/Q00450_GraveRobberRescue/32650-01.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00450_GraveRobberRescue/32650-01.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Grave Robber Leader Kanemika:<br>
|
||||
Yuk yuk! I am Kanemika, leader of these grave robbers. You look strong enough, eh? How about doing me a favor?<br>
|
||||
<a action="bypass -h Quest Q00450_GraveRobberRescue 32650-04.htm">"What is it?"</a>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00450_GraveRobberRescue/32650-02.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00450_GraveRobberRescue/32650-02.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Grave Robber Leader Kanemika:<br>
|
||||
What a weakling! Oh, you wouldn't last long.<br>
|
||||
I can't ask you. No, no mission for you.<br>
|
||||
(Only characters who are level 80 or higher may undertake this quest.)
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00450_GraveRobberRescue/32650-03.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00450_GraveRobberRescue/32650-03.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Grave Robber Leader Kanemika:<br>
|
||||
You already did what I asked today, remember?<br>
|
||||
Thanks, but I don't need anything else right now.<br>
|
||||
(You can only undertake this quest once a day. It resets every day at 6:30 AM.)
|
||||
</body></html>
|
7
trunk/dist/game/data/scripts/quests/Q00450_GraveRobberRescue/32650-04.htm
vendored
Normal file
7
trunk/dist/game/data/scripts/quests/Q00450_GraveRobberRescue/32650-04.htm
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
<html><body>Grave Robber Leader Kanemika:<br>
|
||||
One day, a Dwarf came to see me. I could not see his face because he was wearing a scarf but...he promised to give me a good sum of Adena if I found something hidden in this mine.<br>
|
||||
But he fooled us! We just did what he told us to do, but then evil spirits spread out to every corner of the mine. Gak! Now my followers have been driven mad.<br
|
||||
>Would you help me save my followers?<br>
|
||||
<a action="bypass -h Quest Q00450_GraveRobberRescue 32650-05.htm">"I couldn't care less about your problems."</a><br>
|
||||
<a action="bypass -h Quest Q00450_GraveRobberRescue 32650-07.htm">"Yes, I will help you."</a>
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q00450_GraveRobberRescue/32650-05.htm
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q00450_GraveRobberRescue/32650-05.htm
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Grave Robber Leader Kanemika:<br>
|
||||
Hey, look here...even if you think grave robbers are animals -- heh heh -- don't we still have a right to live?<br>
|
||||
Please! Please help save my poor followers!<br>
|
||||
<a action="bypass -h Quest Q00450_GraveRobberRescue 32650-06.html">"This is none of my business. You're on your own."</a><br>
|
||||
<a action="bypass -h Quest Q00450_GraveRobberRescue 32650-07.htm">"I guess you're right. I'll help you."</a>
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00450_GraveRobberRescue/32650-06.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00450_GraveRobberRescue/32650-06.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Grave Robber Leader Kanemika:<br>
|
||||
Please...have mercy on us...no...don't leave us!
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00450_GraveRobberRescue/32650-07.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00450_GraveRobberRescue/32650-07.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Grave Robber Leader Kanemika:<br>
|
||||
We can't do anything for the ones who are already possessed by the evil spirits. But there are still some who have escaped their influence.<br>
|
||||
If you see any normal <font color="LEVEL">Grave Robber Warriors</font> roaming through the mine, tell them to hide in a safe place. Bring me <font color="LEVEL">10 Evidence of Migration</font> as proof that you were able to persuade them and I'll reward you handsomely.<br>
|
||||
Kuk, but know this: those who are possessed will probably attack you... If that happens, do what you have to do...
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00450_GraveRobberRescue/32650-08.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00450_GraveRobberRescue/32650-08.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Grave Robber Leader Kanemika:<br>
|
||||
If you see any normal <font color="LEVEL">Grave Robber Warriors</font> roaming through the mine, tell them to hide in a safe place. Bring me <font color="LEVEL">10 Proofs of Migration</font> as evidence that you were able to persuade them and I'll reward you handsomely.<br>
|
||||
Wha...wait! Didn't I already tell you all this?
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00450_GraveRobberRescue/32650-09.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00450_GraveRobberRescue/32650-09.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Grave Robber Leader Kanemika:<br>
|
||||
You don't have 10 <font color="LEVEL">Evidence of Migration</font>. Hurry -- there's no time to waste!
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00450_GraveRobberRescue/32650-10.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00450_GraveRobberRescue/32650-10.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Grave Robber Leader Kanemika:<br>
|
||||
Thanks to you, some of my followers were able to escape to a safe place. Take some of the money I got from that accursed Dwarf as payment.<br>
|
||||
If we survive this mess, you'll always be welcome around our fire!
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00450_GraveRobberRescue/32651-01.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00450_GraveRobberRescue/32651-01.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Grave Robber Warrior:<br>
|
||||
Did the captain say so? We knew something was going on...<br>
|
||||
Kiak, thanks for letting me know. I'll get out of here as soon as I can!
|
||||
</body></html>
|
175
trunk/dist/game/data/scripts/quests/Q00450_GraveRobberRescue/Q00450_GraveRobberRescue.java
vendored
Normal file
175
trunk/dist/game/data/scripts/quests/Q00450_GraveRobberRescue/Q00450_GraveRobberRescue.java
vendored
Normal file
@@ -0,0 +1,175 @@
|
||||
/*
|
||||
* 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.Q00450_GraveRobberRescue;
|
||||
|
||||
import com.l2jserver.gameserver.ai.CtrlIntention;
|
||||
import com.l2jserver.gameserver.enums.QuestSound;
|
||||
import com.l2jserver.gameserver.enums.QuestType;
|
||||
import com.l2jserver.gameserver.model.Location;
|
||||
import com.l2jserver.gameserver.model.actor.L2Attackable;
|
||||
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;
|
||||
import com.l2jserver.gameserver.network.NpcStringId;
|
||||
import com.l2jserver.gameserver.network.clientpackets.Say2;
|
||||
import com.l2jserver.gameserver.network.serverpackets.NpcSay;
|
||||
|
||||
/**
|
||||
* Grave Robber Rescue (450)
|
||||
* @author malyelfik
|
||||
*/
|
||||
public class Q00450_GraveRobberRescue extends Quest
|
||||
{
|
||||
// NPCs
|
||||
private static final int KANEMIKA = 32650;
|
||||
private static final int WARRIOR = 32651;
|
||||
// Monster
|
||||
private static final int WARRIOR_MON = 22741;
|
||||
// Item
|
||||
private static final int EVIDENCE_OF_MIGRATION = 14876;
|
||||
// Misc
|
||||
private static final int MIN_LEVEL = 80;
|
||||
|
||||
public Q00450_GraveRobberRescue()
|
||||
{
|
||||
super(450, Q00450_GraveRobberRescue.class.getSimpleName(), "Grave Robber Rescue");
|
||||
addStartNpc(KANEMIKA);
|
||||
addTalkId(KANEMIKA, WARRIOR);
|
||||
registerQuestItems(EVIDENCE_OF_MIGRATION);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final QuestState st = getQuestState(player, false);
|
||||
|
||||
if (st == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
String htmltext = event;
|
||||
switch (event)
|
||||
{
|
||||
case "32650-04.htm":
|
||||
case "32650-05.htm":
|
||||
case "32650-06.html":
|
||||
break;
|
||||
case "32650-07.htm":
|
||||
st.startQuest();
|
||||
break;
|
||||
case "despawn":
|
||||
npc.setBusy(false);
|
||||
npc.deleteMe();
|
||||
htmltext = null;
|
||||
break;
|
||||
default:
|
||||
htmltext = null;
|
||||
break;
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
String htmltext = getNoQuestMsg(player);
|
||||
final QuestState st = getQuestState(player, true);
|
||||
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
if (npc.getId() == KANEMIKA)
|
||||
{
|
||||
switch (st.getState())
|
||||
{
|
||||
case State.COMPLETED:
|
||||
if (!st.isNowAvailable())
|
||||
{
|
||||
htmltext = "32650-03.html";
|
||||
break;
|
||||
}
|
||||
st.setState(State.CREATED);
|
||||
case State.CREATED:
|
||||
htmltext = (player.getLevel() >= MIN_LEVEL) ? "32650-01.htm" : "32650-02.htm";
|
||||
break;
|
||||
case State.STARTED:
|
||||
if (st.isCond(1))
|
||||
{
|
||||
htmltext = (!st.hasQuestItems(EVIDENCE_OF_MIGRATION)) ? "32650-08.html" : "32650-09.html";
|
||||
}
|
||||
else
|
||||
{
|
||||
st.giveAdena(65000, true); // Glory days reward: 6 886 980 exp, 8 116 410 sp, 371 400 Adena
|
||||
st.exitQuest(QuestType.DAILY, true);
|
||||
htmltext = "32650-10.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
else if (st.isCond(1))
|
||||
{
|
||||
if (npc.isBusy())
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
if (getRandom(100) < 66)
|
||||
{
|
||||
st.giveItems(EVIDENCE_OF_MIGRATION, 1);
|
||||
st.playSound(QuestSound.ITEMSOUND_QUEST_ITEMGET);
|
||||
npc.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, new Location(npc.getX() + 100, npc.getY() + 100, npc.getZ(), 0));
|
||||
npc.setBusy(true);
|
||||
|
||||
startQuestTimer("despawn", 3000, npc, player);
|
||||
|
||||
if (st.getQuestItemsCount(EVIDENCE_OF_MIGRATION) == 10)
|
||||
{
|
||||
st.setCond(2, true);
|
||||
}
|
||||
htmltext = "32651-01.html";
|
||||
}
|
||||
else
|
||||
{
|
||||
if (getRandom(100) < 50)
|
||||
{
|
||||
npc.broadcastPacket(new NpcSay(npc.getObjectId(), Say2.NPC_ALL, npc.getId(), NpcStringId.GRUNT_OH));
|
||||
}
|
||||
else
|
||||
{
|
||||
npc.broadcastPacket(new NpcSay(npc.getObjectId(), Say2.NPC_ALL, npc.getId(), NpcStringId.GRUNT_WHAT_S_WRONG_WITH_ME));
|
||||
}
|
||||
npc.deleteMe();
|
||||
htmltext = null;
|
||||
|
||||
final L2Attackable monster = (L2Attackable) addSpawn(WARRIOR_MON, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 600000);
|
||||
monster.setRunning();
|
||||
monster.addDamageHate(player, 0, 999);
|
||||
monster.getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, player);
|
||||
showOnScreenMsg(player, NpcStringId.THE_GRAVE_ROBBER_WARRIOR_HAS_BEEN_FILLED_WITH_DARK_ENERGY_AND_IS_ATTACKING_YOU, 5, 5000);
|
||||
}
|
||||
}
|
||||
|
||||
return htmltext;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user