Quest Hot Spring Water (485).
Contributed by gigilo1968.
This commit is contained in:
parent
376d3aa789
commit
28be9bdaae
4
trunk/dist/game/data/scripts/quests/Q00485_HotSpringWater/30844-01.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00485_HotSpringWater/30844-01.html
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
<html><body>Warehouse keeper Walderal:<br>
|
||||
Good job! Hand them over carefully, now.<br1>
|
||||
They're precious items. Here... here! Take yuor rewsrd. well done.
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00485_HotSpringWater/32327-01.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00485_HotSpringWater/32327-01.htm
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
<html><body>Adventurers' Guide:<br>
|
||||
Adventurers! I bear a message from Warehouse Keeper Walderal of the Town of Aden, please pay attention!<br>
|
||||
Walderal has recently opened a business, but has a small obstacle that you may be able to help with. He offers a substantial compensation package for all those willing to help!<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00485_HotSpringWater 32327-02.htm">"Tell me more."</Button>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00485_HotSpringWater/32327-02.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00485_HotSpringWater/32327-02.htm
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
<html><body>Adventurers' Guide:<br>
|
||||
The springs near Aden are famous across the land. The mineral water there can be used to treat many... health issues, so naturally Walderal sees a market in selling it. Unfortunately, he soon discovered that the baths are not only frequented by us civilized types, but monsters and fiends as well! His workers were attacked and now refuse to come back, which is where you come in.<br>
|
||||
Walderal needs soldiers to catch and kill <font color="LEVEL">Hot Springs Bandersnatchlings, Hot Springs Buffaloes, Hot Springs Flavas, Hot Springs Atroxspawns, Hot Springs Antelopes, Hot Springs Nepentheses, Hot Springs Yetis, Hot Springs Atroxes, Hot Springs Bandersnatches, and Hot Springs Grendels</font>. And to get his business back on track, collect <font color="LEVEL">40 Hot Springs Water Samples</font> from each. Easy enough, right?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00485_HotSpringWater 32327-03.htm">"Wait. I'm an adventurer, not a merchant!"</Button>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00485_HotSpringWater/32327-03.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00485_HotSpringWater/32327-03.htm
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
<html><body>Adventurers' Guide:<br>
|
||||
But you can count, right? Samples equal payment. Once you've "smoothed the waters," take them to <font color="LEVEL">Walderal in Aden</font>, and you'll get your reward! <br1>
|
||||
So, are you going to take the mission or not?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00485_HotSpringWater 32327-04.htm">"Perhaps I am a merchant after all."</Button>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00485_HotSpringWater/32327-04.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00485_HotSpringWater/32327-04.htm
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
<html>body>Adventurers' Guide:<br>
|
||||
Excellent! Now let's review.<br>
|
||||
Hunt <font color="LEVEL">Hot Springs Bandersnatchlings, Hot Springs Buffaloes, Hot Springs Flavas, Hot Springs Atroxspawn, Hot Springs Antelopes, Hot Springs Nepentheses, Hot Springs Yetis, Hot Springs Atroxes, Hot Springs Bandersnatches, and Hot Springs Grendels</font>, and collect <font color="LEVEL">40 Hot Springs Water Samples</font>. Once you've collected all the water samples, take them to <font color="LEVEL">Warehouse Keeper Walderal in the Town of Aden </font>.
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00485_HotSpringWater/32327-05.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00485_HotSpringWater/32327-05.html
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
<html><body>Adventurers' Guide:<br>
|
||||
I'm starting to get dissapointed. One final recap....<br>
|
||||
Hunt <font color="LEVEL">Hot Springs Bandersnatchlings, Hot Springs Buffaloes, Hot Springs Flavas, Hot Springs Atroxspawn, Hot Springs Antelopes, Hot Springs Nepentheses, Hot Springs Yetis, Hot Springs Atroxes, Hot Springs Bandersnatches, and Hot Springs Grendels</font>, and collect <font color="LEVEL">40 Hot Springs Water Samples</font>. Once you've collected all the water samples, simply take them to <font color="LEVEL">Warehouse Keeper Walderal in the Town of Aden </font>. Now get to it!
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q00485_HotSpringWater/32327-07.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q00485_HotSpringWater/32327-07.html
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
<html><body>Adventurers' Guide:<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>
|
154
trunk/dist/game/data/scripts/quests/Q00485_HotSpringWater/Q00485_HotSpringWater.java
vendored
Normal file
154
trunk/dist/game/data/scripts/quests/Q00485_HotSpringWater/Q00485_HotSpringWater.java
vendored
Normal file
@ -0,0 +1,154 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program 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.
|
||||
*
|
||||
* This program 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.Q00485_HotSpringWater;
|
||||
|
||||
import com.l2jmobius.gameserver.enums.QuestType;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jmobius.gameserver.model.holders.ItemHolder;
|
||||
import com.l2jmobius.gameserver.model.quest.Quest;
|
||||
import com.l2jmobius.gameserver.model.quest.QuestState;
|
||||
|
||||
/**
|
||||
* Hot Spring Water (485)
|
||||
* @URL https://l2wiki.com/Hot_Spring_Water
|
||||
* @author Gigi
|
||||
*/
|
||||
public class Q00485_HotSpringWater extends Quest
|
||||
{
|
||||
// NPC
|
||||
private static final int ADVANTURES_GUIDE = 32327;
|
||||
private static final int WALDERAL = 30844;
|
||||
// MONSTERS
|
||||
private static final int[] MOBS =
|
||||
{
|
||||
21314, // Hot Springs Bandersnatchling
|
||||
21315, // Hot Springs Buffalo
|
||||
21316, // Hot Springs Flava
|
||||
21317, // Hot Springs Atroxspawn
|
||||
21318, // Hot Springs Antelope
|
||||
21319, // Hot Springs Nepenthes
|
||||
21320, // Hot Springs Yeti
|
||||
21321, // Hot Springs Atrox
|
||||
21322, // Hot Springs Bandersnatch
|
||||
21323, // Hot Springs Grendel
|
||||
};
|
||||
// Items
|
||||
private static final int HOT_SPRINGS_WATER_SAMPLE = 19497; // Hot Springs Water Sample
|
||||
private static final ItemHolder ADENA = new ItemHolder(57, 247410); // Adena
|
||||
// Misc
|
||||
private static final int MIN_LEVEL = 70;
|
||||
private static final int MAX_LEVEL = 74;
|
||||
// Reward
|
||||
private static final int EXP_REWARD = 9483000;
|
||||
private static final int SP_REWARD = 2275;
|
||||
|
||||
public Q00485_HotSpringWater()
|
||||
{
|
||||
super(485, Q00485_HotSpringWater.class.getSimpleName(), "Hot Spring Water");
|
||||
addStartNpc(ADVANTURES_GUIDE);
|
||||
addTalkId(ADVANTURES_GUIDE, WALDERAL);
|
||||
registerQuestItems(HOT_SPRINGS_WATER_SAMPLE);
|
||||
addKillId(MOBS);
|
||||
addCondLevel(MIN_LEVEL, MAX_LEVEL, "no_level.html");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
final QuestState qs = getQuestState(player, false);
|
||||
if (qs == null)
|
||||
{
|
||||
return getNoQuestMsg(player);
|
||||
}
|
||||
|
||||
switch (event)
|
||||
{
|
||||
case "32327-02.htm":
|
||||
case "32327-03.htm":
|
||||
{
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "32327-04.htm":
|
||||
{
|
||||
qs.startQuest();
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final QuestState qs = getQuestState(player, true);
|
||||
String htmltext = getNoQuestMsg(player);
|
||||
|
||||
switch (npc.getId())
|
||||
{
|
||||
case ADVANTURES_GUIDE:
|
||||
{
|
||||
if (qs.isCreated())
|
||||
{
|
||||
htmltext = "32327-01.htm";
|
||||
}
|
||||
else if (qs.getCond() > 0)
|
||||
{
|
||||
htmltext = "32327-05.html";
|
||||
}
|
||||
else if (qs.isCompleted())
|
||||
{
|
||||
if (!qs.isNowAvailable())
|
||||
{
|
||||
htmltext = "32327-07.html";
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case WALDERAL:
|
||||
{
|
||||
if ((qs.isCond(2)) && (getQuestItemsCount(player, HOT_SPRINGS_WATER_SAMPLE) >= 40))
|
||||
{
|
||||
takeItems(player, HOT_SPRINGS_WATER_SAMPLE, -1);
|
||||
giveItems(player, ADENA);
|
||||
addExpAndSp(player, EXP_REWARD, SP_REWARD);
|
||||
qs.exitQuest(QuestType.DAILY, true);
|
||||
htmltext = "30844-01.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
|
||||
{
|
||||
final QuestState qs = getQuestState(killer, false);
|
||||
if ((qs != null) && qs.isCond(1))
|
||||
{
|
||||
if (giveItemRandomly(killer, npc, HOT_SPRINGS_WATER_SAMPLE, 1, 40, 0.2, true))
|
||||
{
|
||||
qs.setCond(2, true);
|
||||
}
|
||||
}
|
||||
return super.onKill(npc, killer, isSummon);
|
||||
}
|
||||
}
|
@ -133,6 +133,7 @@ import quests.Q00470_DivinityProtector.Q00470_DivinityProtector;
|
||||
import quests.Q00471_BreakingThroughTheEmeraldSquare.Q00471_BreakingThroughTheEmeraldSquare;
|
||||
import quests.Q00472_ChallengeSteamCorridor.Q00472_ChallengeSteamCorridor;
|
||||
import quests.Q00473_InTheCoralGarden.Q00473_InTheCoralGarden;
|
||||
import quests.Q00485_HotSpringWater.Q00485_HotSpringWater;
|
||||
import quests.Q00490_DutyOfTheSurvivor.Q00490_DutyOfTheSurvivor;
|
||||
import quests.Q00492_TombRaiders.Q00492_TombRaiders;
|
||||
import quests.Q00494_IncarnationOfGreedZellakaGroup.Q00494_IncarnationOfGreedZellakaGroup;
|
||||
@ -549,6 +550,7 @@ final class QuestMasterHandler
|
||||
Q10383_FergasonsOffer.class,
|
||||
Q10384_AnAudienceWithTauti.class,
|
||||
Q10385_RedThreadOfFate.class,
|
||||
Q00485_HotSpringWater.class,
|
||||
Q10386_MysteriousJourney.class,
|
||||
Q10388_ConspiracyBehindDoor.class,
|
||||
Q10389_TheVoiceOfAuthority.class,
|
||||
|
Loading…
Reference in New Issue
Block a user