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,7 @@
<html><body>Priestess Restina:<br>
Have you heard of the <font color="LEVEL">Garden of Eva</font>? You may occasionally find the goddess herself resting there.<br>
She doesn't like to be disturbed, so her garden is in the deepest part of the sea, with entry gained only through an elaborate labyrinth.<br>
Recently, <font color="LEVEL">some who wish to harm her</font> have invaded her sanctuary. She's not there at the moment, and we, her priests and guards, are trying our best to drive out the invaders. However, this task is proving more than we can handle.<br>
We're enlisting the help of outsiders to defeat them. Will you help us?<br>
<a action="bypass -h Quest Q00368_TrespassingIntoTheHolyGround 30926-02.htm">"I will help."</a>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Priestess Restina:<br>
Thank you. You should know that it is forbidden for outsiders to enter the Garden of Eva. We are breaking the rules, but these are desperate times.<br>
Go to the <font color="LEVEL">Garden of Eva</font> and slay the <font color="LEVEL">blade stakato, the blade stakato worker, the blade stakato warrior and the blade stakato drone</font>. As proof of your victory, bring back their <font color="LEVEL">fangs</font>. You'll be well rewarded for your efforts.
</body></html>

View File

@@ -0,0 +1,7 @@
<html><body>Priestess Restina:<br>
Have you heard of the <font color="LEVEL">Garden of Eva</font>? You may occasionally find the goddess herself resting there.<br>
She doesn't like to be disturbed, so her garden is in the deepest part of the sea, with entry gained only through an elaborate labyrinth.<br>
Recently, <font color="LEVEL">some who wish to harm her</font> have invaded her sanctuary. She's not there at the moment, and we, her priests and guards, are trying our best to drive out the invaders. However, this task is proving more than we can handle.<br>
We need help desperately, but I'm afraid you're not yet up to the task.<br>
(This quest may only be undertaken by a character of level 36 or above.)
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Priestess Restina:<br>
Thank you for helping us. As promised, you shall receive a reward <font color="LEVEL">commensurate with your performance</font>.<br>
Your brave efforts have spelled the doom of all who have invaded the Garden of Eva! Will you stay and help us finish them off?<br>
<a action="bypass -h Quest Q00368_TrespassingIntoTheHolyGround 30926-05.html">"I must be going."</a><br>
<a action="bypass -h Quest Q00368_TrespassingIntoTheHolyGround 30926-06.html">"Death to the blade stakatos!"</a>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Priestess Restina:<br>
I'm sorry to hear that. I'm sure you have your own reasons. Thank you for your help.<br>May the blessing of Eva be with you always...
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Priestess Restina:<br>
I knew I could count on you!
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Priestess Restina:<br>
As I said, go to the <font color="LEVEL">Garden of Eva</font> and slay the <font color="LEVEL">blade stakato, the blade stakato worker, the blade stakato warrior and the blade stakato drone</font>. As proof of your victory bring back their <font color="LEVEL">fangs</font>. You'll be well rewarded for your efforts.<br>
<a action="bypass -h Quest Q00368_TrespassingIntoTheHolyGround 30926-05.html">"No, I quit."</a><br>
<a action="bypass -h Quest Q00368_TrespassingIntoTheHolyGround 30926-06.html">"I will continue to hunt the stakatos."</a>
</body></html>

View File

@@ -0,0 +1,151 @@
/*
* 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.Q00368_TrespassingIntoTheHolyGround;
import java.util.HashMap;
import java.util.Map;
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;
/**
* Trespassing into the Holy Ground (368)
* @author Adry_85
*/
public final class Q00368_TrespassingIntoTheHolyGround extends Quest
{
// NPC
private static final int RESTINA = 30926;
// Item
private static final int BLADE_STAKATO_FANG = 5881;
// Misc
private static final int MIN_LEVEL = 36;
// Mobs
private static final Map<Integer, Double> MOBS = new HashMap<>();
static
{
MOBS.put(20794, 0.60); // blade_stakato
MOBS.put(20795, 0.57); // blade_stakato_worker
MOBS.put(20796, 0.61); // blade_stakato_soldier
MOBS.put(20797, 0.93); // blade_stakato_drone
}
public Q00368_TrespassingIntoTheHolyGround()
{
super(368, Q00368_TrespassingIntoTheHolyGround.class.getSimpleName(), "Trespassing into the Holy Ground");
addStartNpc(RESTINA);
addTalkId(RESTINA);
addKillId(MOBS.keySet());
registerQuestItems(BLADE_STAKATO_FANG);
}
@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 "30926-02.htm":
{
st.startQuest();
htmltext = event;
break;
}
case "30926-05.html":
{
st.exitQuest(true, true);
htmltext = event;
break;
}
case "30926-06.html":
{
htmltext = event;
break;
}
}
return htmltext;
}
@Override
public String onKill(L2Npc npc, L2PcInstance player, boolean isSummon)
{
final int i;
switch (npc.getId())
{
case 20795:
case 20797:
{
i = 1;
break;
}
default:
{
i = 3;
break;
}
}
final QuestState st = getRandomPartyMemberState(player, -1, i, npc);
if (st != null)
{
st.giveItemRandomly(npc, BLADE_STAKATO_FANG, 1, 0, MOBS.get(npc.getId()), true);
}
return super.onKill(npc, player, isSummon);
}
@Override
public String onTalk(L2Npc npc, L2PcInstance player)
{
final QuestState st = getQuestState(player, true);
String htmltext = getNoQuestMsg(player);
if (st == null)
{
return htmltext;
}
if (st.isCreated())
{
htmltext = ((player.getLevel() >= MIN_LEVEL) ? "30926-01.htm" : "30926-03.html");
}
else if (st.isStarted())
{
if (hasQuestItems(player, BLADE_STAKATO_FANG))
{
final long count = getQuestItemsCount(player, BLADE_STAKATO_FANG);
final long bonus = (count >= 10 ? 9450 : 2000);
giveAdena(player, (count * 250) + bonus, true);
takeItems(player, BLADE_STAKATO_FANG, -1);
htmltext = "30926-04.html";
}
else
{
htmltext = "30926-07.html";
}
}
return htmltext;
}
}