Merged with released L2J-Unity files.
This commit is contained in:
@@ -1,4 +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.
|
||||
<html><body>Warehouse Keeper Walderal:<br>
|
||||
What?<br1>
|
||||
Didn't I request <font color="LEVEL">40 Hot Spring Waters</font> on the Adventurer Noticeboard? The Adventurer Helper shouldn't have gotten it wrong...
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q00485_HotSpringWater/30844-02.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q00485_HotSpringWater/30844-02.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Warehouse Keeper Walderal:<br>
|
||||
Good job! Hand them over carefully, now. They're precious items. Here... here! Take your reward. Well done.
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q00485_HotSpringWater/30844-03.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00485_HotSpringWater/30844-03.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Warehouse Keeper Walderal:<br>
|
||||
Groan... One of these days, I'm going to quit this tiresome job and walk right out that door... just see if I don't!<br>
|
||||
(This quest can only be conducted once a day. The quest will reset every day at 6:30 AM.)
|
||||
</body></html>
|
@@ -1,5 +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>
|
||||
<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>
|
@@ -1,5 +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>
|
||||
<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>
|
@@ -1,5 +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>
|
||||
<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>
|
@@ -1,4 +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>.
|
||||
<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>
|
@@ -1,4 +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!
|
||||
<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>
|
4
trunk/dist/game/data/scripts/quests/Q00485_HotSpringWater/32327-06.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q00485_HotSpringWater/32327-06.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Adventurers' Guide:<br>
|
||||
The hero returns!<br>
|
||||
Thank you for hunting <font color="LEVEL">Hot Springs Bandersnatchlings, Hot Springs Buffalo, 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>. Take the <font color="LEVEL">40 Hot Spring Water Samples</font> you collected to <font color="LEVEL">Warehouse Keeper Walderal in the Town of Aden</font>!
|
||||
</body></html>
|
@@ -1,5 +0,0 @@
|
||||
<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>
|
@@ -1,148 +1,171 @@
|
||||
/*
|
||||
* 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() && !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) && giveItemRandomly(killer, npc, HOT_SPRINGS_WATER_SAMPLE, 1, 40, 0.2, true))
|
||||
{
|
||||
qs.setCond(2, true);
|
||||
}
|
||||
return super.onKill(npc, killer, isSummon);
|
||||
}
|
||||
/*
|
||||
* 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.quest.Quest;
|
||||
import com.l2jmobius.gameserver.model.quest.QuestState;
|
||||
import com.l2jmobius.gameserver.model.quest.State;
|
||||
|
||||
/**
|
||||
* Hot Spring Water (485)
|
||||
* @author St3eT
|
||||
*/
|
||||
public final class Q00485_HotSpringWater extends Quest
|
||||
{
|
||||
// NPCs
|
||||
private static final int ADVENTURER = 32327;
|
||||
private static final int WALDERAL = 30844;
|
||||
private static final int[] MONSTERS =
|
||||
{
|
||||
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 WATER = 19497; // Hot Springs Water Sample
|
||||
// Misc
|
||||
private static final int MIN_LEVEL = 70;
|
||||
private static final int MAX_LEVEL = 74;
|
||||
|
||||
public Q00485_HotSpringWater()
|
||||
{
|
||||
super(485);
|
||||
addStartNpc(ADVENTURER);
|
||||
addTalkId(ADVENTURER, WALDERAL);
|
||||
addKillId(MONSTERS);
|
||||
addCondLevel(MIN_LEVEL, MAX_LEVEL, "");
|
||||
registerQuestItems(WATER);
|
||||
}
|
||||
|
||||
@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 "32327-02.htm":
|
||||
case "32327-03.htm":
|
||||
{
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "32327-04.htm":
|
||||
{
|
||||
st.startQuest();
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(L2Npc npc, L2PcInstance player, boolean isSimulated)
|
||||
{
|
||||
String htmltext = getNoQuestMsg(player);
|
||||
final QuestState st = getQuestState(player, true);
|
||||
|
||||
switch (st.getState())
|
||||
{
|
||||
case State.CREATED:
|
||||
{
|
||||
if (npc.getId() == ADVENTURER)
|
||||
{
|
||||
htmltext = "32327-01.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case State.STARTED:
|
||||
{
|
||||
if (st.isCond(1))
|
||||
{
|
||||
htmltext = npc.getId() == ADVENTURER ? "32327-05.html" : "30844-01.html";
|
||||
}
|
||||
else if (st.isCond(2))
|
||||
{
|
||||
if (npc.getId() == ADVENTURER)
|
||||
{
|
||||
htmltext = "32327-06.html";
|
||||
}
|
||||
else if (npc.getId() == WALDERAL)
|
||||
{
|
||||
if (!isSimulated)
|
||||
{
|
||||
st.exitQuest(QuestType.DAILY, true);
|
||||
giveAdena(player, 371_745, true);
|
||||
if (player.getLevel() >= MIN_LEVEL)
|
||||
{
|
||||
addExpAndSp(player, 9_483_000, 2_275);
|
||||
}
|
||||
}
|
||||
htmltext = "30844-02.html";
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case State.COMPLETED:
|
||||
{
|
||||
if ((npc.getId() == ADVENTURER) && st.isNowAvailable())
|
||||
{
|
||||
if (!isSimulated)
|
||||
{
|
||||
st.setState(State.CREATED);
|
||||
}
|
||||
htmltext = "32327-01.html";
|
||||
}
|
||||
else if ((npc.getId() == WALDERAL) && st.isCompleted() && !st.isNowAvailable())
|
||||
{
|
||||
htmltext = "30844-03.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
|
||||
{
|
||||
final QuestState st = getQuestState(killer, false);
|
||||
|
||||
if ((st != null) && st.isCond(1))
|
||||
{
|
||||
if (giveItemRandomly(killer, WATER, 1, 40, 0.4, true))
|
||||
{
|
||||
st.setCond(2, true);
|
||||
}
|
||||
}
|
||||
return super.onKill(npc, killer, isSummon);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user