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,8 @@
<html><body>Warehouse Keeper Norman:<br>
We of the Iron Gate Guild are currently participating in various reconstruction works to restore Gludio Territory from the devastation of war...<br>
We've obtained permission from the Lord to start a construction project in this area.<br>
We've been having problems with monsters rampaging through the Fellmere Harvesting Grounds that produce our construction materials, so we're not making much progress...<br>
Other factors have led to a shortage of resources in the manor. The Lord is seeking adventurers to help us solve this problem...<br>
Will you help us rebuild Gludio Territory?<br>
<a action="bypass -h Quest Q00661_MakingTheHarvestGroundsSafe 30210-03.htm">"I'll help you."</a>
</body></html>

View File

@@ -0,0 +1,8 @@
<html><body>Warehouse Keeper Norman:<br>
Our guild, The Iron Gate, is involved with various reconstruction efforts to restore Gludio Territory from the devastation of war.<br>
We've gotten the Lord's permission to begin reconstruction in this area...<br>
But monsters have begun appearing in the Fellmere Harvesting Grounds where we get many of our important construction materials...<br>
Other factors have led to a shortage of resources in the manor. The Lord is seeking adventurer's help.<br>
When you have enough power, we could use your help!<br>
(Only characters level 21 or above may undertake this quest.)
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Warehouse Keeper Norman:<br>
Excellent! Go to the Fellmere Harvesting Grounds and defeat the <font color= "LEVEL">Giant Poison Bee, Cloudy Beast and Young Araneid</font> that are impeding our work. And don't forget to bring me proof of your kills... Good luck!
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Warehouse Keeper Norman:<br>
Oh, you're back so soon? The Lord wants the reconstruction effort started as soon as possible... We really need your help! Cam you prove that you're valuable enough for the reconstruction effort?<br>
<a action="bypass -h Quest Q00661_MakingTheHarvestGroundsSafe 30210-08.html">"Here's the proof."</a>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Warehouse Keeper Norman:<br>
Oh, how was it? The Lord wants us to proceed with the reconstruction project as soon as possible... We must have your help! Go to the Fellmere Harvesting Grounds quickly and bring me the evidence that you eliminated those nasty, vile monsters.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Warehouse Keeper Norman:<br>
Thank you! We'll engrave your name on the cornerstone of a building when we begin the reconstruction! Go to the Fellmere Harvesting Grounds quickly and bring me the evidence that you've eliminated those monsters.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Warehouse Keeper Norman:<br>
Oh, how was it? The Lord wants us to proceed with the reconstruction project as soon as possible... We must have your help! Go to the Fellmere Harvesting Grounds quickly and bring me the evidence that you eliminated those monsters.
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Warehouse Keeper Norman:<br>
Here is the reward for your hard work... The reward is provided by the Iron Gate Guild and the Gludio Territory Reconstruction Fund... What! It's not enough? Then kill some more monsters and bring me the proofs!<br>
<a action="bypass -h Quest Q00661_MakingTheHarvestGroundsSafe 30210-06.html">"I'll keep working for you."</a><br>
<a action="bypass -h Quest Q00661_MakingTheHarvestGroundsSafe 30210-09.html">"I quit."</a>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Warehouse Keeper Norman:<br>
Hmmm, perhaps you have a better source for making Adena... Or are you just going on to more exciting adventures? Please remember us, the Iron Gate Guild that strives to reconstruct Gludio Territory. Good luck!
</body></html>

View File

@@ -0,0 +1,157 @@
/*
* 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.Q00661_MakingTheHarvestGroundsSafe;
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.holders.ItemChanceHolder;
import com.l2jserver.gameserver.model.quest.Quest;
import com.l2jserver.gameserver.model.quest.QuestState;
import com.l2jserver.gameserver.model.quest.State;
/**
* Making the Harvest Grounds Safe (661)
* @author Pandragon
*/
public final class Q00661_MakingTheHarvestGroundsSafe extends Quest
{
// NPC
private static final int NORMAN = 30210;
// Items
private static final int BIG_HORNET_STING = 8283;
private static final int CLOUD_GEM = 8284;
private static final int YOUNG_ARANEID_CLAW = 8285;
// Monsters
private final Map<Integer, ItemChanceHolder> MONSTER_CHANCES = new HashMap<>();
{
MONSTER_CHANCES.put(21095, new ItemChanceHolder(BIG_HORNET_STING, 0.508)); // Giant Poison Bee
MONSTER_CHANCES.put(21096, new ItemChanceHolder(CLOUD_GEM, 0.5)); // Cloudy Beast
MONSTER_CHANCES.put(21097, new ItemChanceHolder(YOUNG_ARANEID_CLAW, 0.516)); // Young Araneid
}
// Misc
private static final int MIN_LVL = 21;
public Q00661_MakingTheHarvestGroundsSafe()
{
super(661, Q00661_MakingTheHarvestGroundsSafe.class.getSimpleName(), "Making the Harvest Grounds Safe");
addStartNpc(NORMAN);
addTalkId(NORMAN);
addKillId(MONSTER_CHANCES.keySet());
registerQuestItems(BIG_HORNET_STING, CLOUD_GEM, YOUNG_ARANEID_CLAW);
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
final QuestState qs = getQuestState(player, false);
String htmltext = null;
if (qs == null)
{
return htmltext;
}
switch (event)
{
case "30210-01.htm":
case "30210-02.htm":
case "30210-04.html":
case "30210-06.html":
{
htmltext = event;
break;
}
case "30210-03.htm":
{
if (qs.isCreated())
{
qs.startQuest();
htmltext = event;
}
break;
}
case "30210-08.html":
{
long stingCount = getQuestItemsCount(player, BIG_HORNET_STING);
long gemCount = getQuestItemsCount(player, CLOUD_GEM);
long clawCount = getQuestItemsCount(player, YOUNG_ARANEID_CLAW);
long reward = (57 * stingCount) + (56 * gemCount) + (60 * clawCount);
if ((stingCount + gemCount + clawCount) >= 10)
{
reward += 5773;
}
takeItems(player, BIG_HORNET_STING, -1);
takeItems(player, CLOUD_GEM, -1);
takeItems(player, YOUNG_ARANEID_CLAW, -1);
giveAdena(player, reward, true);
htmltext = event;
break;
}
case "30210-09.html":
{
qs.exitQuest(true, true);
htmltext = event;
break;
}
}
return htmltext;
}
@Override
public String onTalk(L2Npc npc, L2PcInstance talker)
{
final QuestState qs = getQuestState(talker, true);
String htmltext = getNoQuestMsg(talker);
switch (qs.getState())
{
case State.CREATED:
{
htmltext = (talker.getLevel() >= MIN_LVL) ? "30210-01.htm" : "30210-02.htm";
break;
}
case State.STARTED:
{
if (hasQuestItems(talker, BIG_HORNET_STING, CLOUD_GEM, YOUNG_ARANEID_CLAW))
{
htmltext = "30210-04.html";
}
else
{
htmltext = "30210-05.html";
}
break;
}
}
return htmltext;
}
@Override
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getRandomPartyMemberState(killer, -1, 3, npc);
if (qs != null)
{
final ItemChanceHolder item = MONSTER_CHANCES.get(npc.getId());
giveItemRandomly(qs.getPlayer(), npc, item.getId(), item.getCount(), 0, item.getChance(), true);
}
return super.onKill(npc, killer, isSummon);
}
}