This commit is contained in:
mobius
2015-01-01 20:02:50 +00:00
parent eeae660458
commit a6a3718849
17894 changed files with 2818932 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
<html><body>Karuda:<br>
Ah, have you come here to help us? Vengeful spirits that we purged long ago have returned. Now, because of the evil spirit Kasha, they are stronger than ever.<br>
Unless we receive assistance from powerful adventurers, I fear for our people... Will you help us?<br>
<a action="bypass -h Quest Q00645_GhostsOfBatur 32017-03.htm">"What should I do?"</a>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Karuda:<br>
Vengeful spirits that we purged long ago have returned. Now, because of the evil spirit Kasha, they are stronger than ever.<br>
If only you were more experienced, perhaps you could help us...<br>
(Only characters who are level 80 or higher may undertake this quest.)
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Karuda:<br>
Go to the <font color="LEVEL">Crypts of Disgrace</font> and defeat the <font color="LEVEL">Contaminated Batur Warriors and Contaminated Batur Commanders</font>, as well as the <font color="LEVEL">Contaminated Morek Warriors</font>. When you have defeated them, you will obtain <font color="LEVEL">Cursed Burial Items</font>. Bring those to me and you will be richly rewarded!<br>
<a action="bypass -h Quest Q00645_GhostsOfBatur 32017-08.html">"I'll be back soon."</a><br>
<a action="bypass -h Quest Q00645_GhostsOfBatur 32017-06.html">"What kind of rewards?"</a>
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Karuda:<br>
Aha! I can tell that the number of vengeful spirits has greatly decreased, thanks to you. Now, what will you do?<br>
<a action="bypass -h npc_%objectId%_multisell 2013">Receive your reward.</a><br>
<a action="bypass -h Quest Q00645_GhostsOfBatur 32017-08.html">Continue hunting.</a><br>
<a action="bypass -h Quest Q00645_GhostsOfBatur 32017-09.html">End the mission.</a>
</body></html>

View File

@@ -0,0 +1,7 @@
<html><body>Karuda:<br>
You haven't left yet?<br>
Why not?<br>
<a action="bypass -h Quest Q00645_GhostsOfBatur 32017-06.html">"Tell me about the rewards again."</a><br>
<a action="bypass -h Quest Q00645_GhostsOfBatur 32017-08.html">"I'll leave right away."</a><br>
<a action="bypass -h Quest Q00645_GhostsOfBatur 32017-09.html">Say you want to quit.</a>
</body></html>

View File

@@ -0,0 +1,8 @@
<html><body>Karuda:<br>
You can earn the following rewards:<br>
<font color="LEVEL">S80 weapon recipe</font> - Requires 500 Cursed Grave Goods<br>
<font color="LEVEL">Leonard</font> - Requires 8 Cursed Grave Goods<br>
<font color="LEVEL">Adamantine</font> - Requires 15 Cursed Grave Goods<br>
<font color="LEVEL">Orichalcum</font> - Requires 12 Cursed Grave Goods<br>
Remember, I'm counting on you!
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Karuda:<br>
Your mission was assigned prior to the changes in this place. I'm sorry, but that particular mission is no longer valid.<br>
Please accept this as some compensation for any inconvenience.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Karuda:<br>
Please keep up the good work for the safety of this area. I'm counting on you!
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Karuda:<br>
Well, if that's your decision, I won't try to force you. Goodbye!
</body></html>

View File

@@ -0,0 +1,159 @@
/*
* 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.Q00645_GhostsOfBatur;
import com.l2jserver.gameserver.enums.QuestSound;
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.util.Util;
/**
* Ghosts of Batur (645)
* @author Zoey76
*/
public class Q00645_GhostsOfBatur extends Quest
{
// NPC
private static final int KARUDA = 32017;
// Monsters
private static final int CONTAMINATED_MOREK_WARRIOR = 22703;
private static final int CONTAMINATED_BATUR_WARRIOR = 22704;
private static final int CONTAMINATED_BATUR_COMMANDER = 22705;
// Items
private static final int CURSED_GRAVE_GOODS = 8089; // Old item
private static final int CURSED_BURIAL_ITEMS = 14861; // New item
// Misc
private static final int MIN_LEVEL = 80;
private static final int[] CHANCES =
{
516,
664,
686
};
public Q00645_GhostsOfBatur()
{
super(645, Q00645_GhostsOfBatur.class.getSimpleName(), "Ghosts of Batur");
addStartNpc(KARUDA);
addTalkId(KARUDA);
addKillId(CONTAMINATED_MOREK_WARRIOR, CONTAMINATED_BATUR_WARRIOR, CONTAMINATED_BATUR_COMMANDER);
registerQuestItems(CURSED_GRAVE_GOODS);
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
final QuestState st = getQuestState(player, false);
if (st == null)
{
return null;
}
String htmltext = null;
if (player.getLevel() >= MIN_LEVEL)
{
switch (event)
{
case "32017-03.htm":
{
st.startQuest();
htmltext = event;
break;
}
case "32017-06.html":
case "32017-08.html":
{
htmltext = event;
break;
}
case "32017-09.html":
{
st.exitQuest(true, true);
htmltext = event;
break;
}
}
}
return htmltext;
}
@Override
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final L2PcInstance player = getRandomPartyMember(killer, 1);
if ((player != null) && Util.checkIfInRange(1500, npc, player, false))
{
if (getRandom(1000) < CHANCES[npc.getId() - CONTAMINATED_MOREK_WARRIOR])
{
final QuestState st = getQuestState(player, false);
st.giveItems(CURSED_BURIAL_ITEMS, 1);
if (st.isCond(1) && (st.getQuestItemsCount(CURSED_BURIAL_ITEMS) >= 500))
{
st.setCond(2, true);
}
else
{
st.playSound(QuestSound.ITEMSOUND_QUEST_ITEMGET);
}
}
}
return super.onKill(npc, killer, isSummon);
}
@Override
public String onTalk(L2Npc npc, L2PcInstance player)
{
final QuestState st = getQuestState(player, true);
if (st == null)
{
return getNoQuestMsg(player);
}
String htmltext = getNoQuestMsg(player);
switch (st.getState())
{
case State.CREATED:
{
htmltext = (player.getLevel() >= MIN_LEVEL) ? "32017-01.htm" : "32017-02.html";
break;
}
case State.STARTED:
{
// Support for old quest reward.
final long count = st.getQuestItemsCount(CURSED_GRAVE_GOODS);
if ((count > 0) && (count < 180))
{
st.giveAdena(56000 + (count * 64), false);
st.addExpAndSp(138000, 7997);
st.exitQuest(true, true);
htmltext = "32017-07.html";
}
else
{
htmltext = st.hasQuestItems(CURSED_BURIAL_ITEMS) ? "32017-04.html" : "32017-05.html";
}
break;
}
}
return htmltext;
}
}