Merged with released L2J-Unity files.

This commit is contained in:
mobiusdev
2016-06-12 01:34:09 +00:00
parent e003e87887
commit 635557f5da
18352 changed files with 3245113 additions and 2892959 deletions

View File

@@ -1,6 +1,6 @@
<html><body>Adventurers' Guide:<br>
Calling all adventurers!<br>
<font color="LEVEL">Dolphren</font> is looking for brave warriors to help collect research materials! Listen in for details.<br>
Research on the Giant relics is progressing at a slower than expected pace. Our efforts are hampered by both monsters and ongoing wars. Dolphren suggests concentrating forces on the <font color="LEVEL">Silent Valley</font> and is offering significant compensation for all those who agree to help! Are you interested?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00488_WondersOfCaring 32327-02.htm">"Maybe. Tell me more."</Button>
<html><body>Adventurers' Guide:<br>
Calling all adventurers!<br>
<font color="LEVEL">Dolphren</font> is looking for brave warriors to help collect research materials! Listen in for details.<br>
Research on the Giant relics is progressing at a slower than expected pace. Our efforts are hampered by both monsters and ongoing wars. Dolphren suggests concentrating forces on the <font color="LEVEL">Silent Valley</font> and is offering significant compensation for all those who agree to help! Are you interested?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00488_WondersOfCaring 32327-02.htm">"Maybe. Tell me more."</Button>
</body></html>

View File

@@ -1,3 +1,5 @@
<html><body>Adventurers' Guide:<br>Certainly!<br1><font color="LEVEL">Chimera Pieces, Soldiers of Ancient Times, Mutated Creations, Warriors of Ancient Times, Shamans of Ancient Times, Creatures of the Past, Forgotten Ancient People, Forgotten Faces, and Giant's Shadows</font> are raiding our digs, and have carried away <font color="LEVEL">50</font> <font color="LEVEL">Relic Boxes</font>. We need those research materials!<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00488_WondersOfCaring 32327-03.htm">"What's in the boxes, Jack?"</Button>
<html><body>Adventurers' Guide:<br>
Certainly!<br1>
<font color="LEVEL">Chimera Pieces, Soldiers of Ancient Times, Mutated Creations, Warriors of Ancient Times, Shamans of Ancient Times, Creatures of the Past, Forgotten Ancient People, Forgotten Faces, and Giant's Shadows</font> are raiding our digs, and have carried away <font color="LEVEL">50</font> <font color="LEVEL">Relic Boxes</font>. We need those research materials!<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00488_WondersOfCaring 32327-03.htm">"What's in the boxes, Jack?"</Button>
</body></html>

View File

@@ -1,4 +1,4 @@
<html><body>Adventurers' Guide:<br>
The usual remnants of ancient civilizations. But this dig is the only one in Silent Valley we've found worth exploiting. When you're done, return to <font color="LEVEL">Aden</font> and give them to <font color="LEVEL">Recipe Merchant Dolphren</font>. He's willing to pay well for intact relics.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00488_WondersOfCaring 32327-04.htm">"Sounds good."</Button>
<html><body>Adventurers' Guide:<br>
The usual remnants of ancient civilizations. But this dig is the only one in Silent Valley we've found worth exploiting. When you're done, return to <font color="LEVEL">Aden</font> and give them to <font color="LEVEL">Recipe Merchant Dolphren</font>. He's willing to pay well for intact relics.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00488_WondersOfCaring 32327-04.htm">"Sounds good."</Button>
</body></html>

View File

@@ -1,4 +1,4 @@
<html><body>Adventurers' Guide:<br>
I know you've got the particulars down, but I like to review sometimes.<br>
Hunt <font color="LEVEL">Chimera Pieces, Soldiers of Ancient Times, Mutated Creations, Warriors of Ancient Times, Shamans of Ancient Times, Creatures of the Past, Forgotten Ancient People, Forgotten Faces and Giant's Shadows</font>. Collect <font color="LEVEL">50 Relic Boxes</font> and take them to <font color="LEVEL">Recipe Merchant Dolphren</font>.
<html><body>Adventurers' Guide:<br>
I know you've got the particulars down, but I like to review sometimes.<br>
Hunt <font color="LEVEL">Chimera Pieces, Soldiers of Ancient Times, Mutated Creations, Warriors of Ancient Times, Shamans of Ancient Times, Creatures of the Past, Forgotten Ancient People, Forgotten Faces and Giant's Shadows</font>. Collect <font color="LEVEL">50 Relic Boxes</font> and take them to <font color="LEVEL">Recipe Merchant Dolphren</font>.
</body></html>

View File

@@ -1,4 +1,4 @@
<html><body>Adventurers' Guide:<br>
Just so you don't forget...<br>
Hunt <font color="LEVEL">Chimera Pieces, Soldiers of Ancient Times, Mutated Creations, Warriors of Ancient Times, Shamans of Ancient Times, Creatures of the Past, Forgotten Ancient People, Forgotten Faces and Giant's Shadows</font>. Collect <font color="LEVEL">50 Relic Boxes</font> and take them to <font color="LEVEL">Recipe Merchant Dolphren</font>. He has a good eye for antiquities, so don't try to pass off junk!
<html><body>Adventurers' Guide:<br>
Just so you don't forget...<br>
Hunt <font color="LEVEL">Chimera Pieces, Soldiers of Ancient Times, Mutated Creations, Warriors of Ancient Times, Shamans of Ancient Times, Creatures of the Past, Forgotten Ancient People, Forgotten Faces and Giant's Shadows</font>. Collect <font color="LEVEL">50 Relic Boxes</font> and take them to <font color="LEVEL">Recipe Merchant Dolphren</font>. He has a good eye for antiquities, so don't try to pass off junk!
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Adventurers' Guide:<br>
The hero returns!<br>
Thank you for hunting <font color="LEVEL">Chimera Pieces, Soldiers of Ancient Times, Mutated Creations, Warriors of Ancient Times, Shamans of Ancient Times, Creatures of the Past, Forgotten Ancient People, Forgotten Faces and Giant's Shadows</font>. Take the <font color="LEVEL">50 Relic Boxes</font> you collected to <font color="LEVEL">Recipe Merchant Dolphren</font>!
</body></html>

View File

@@ -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>

View File

@@ -1,4 +1,3 @@
<html><body>Recipe Merchant Dolphren:<br>
You're here! <br1> Oh! These are the Relic Boxes? Good! And here is your compensation!<br>
You helped us and I compensated for it. Now, we can be friends. Thank you. Goodbye, friend!
<html><body>Recipe Merchant Dolphren:<br>
You are here. You don't have <font color="LEVEL">50 Boxes of Relics</font> though...
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Recipe Merchant Dolphren:<br>
You're here! <br1> Oh! These are the Relic Boxes? Good! And here is your compensation!<br>
You helped us and I compensated for it. Now, we can be friends. Thank you. Goodbye, friend!
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Recipe Merchant Dolphren:<br>
Today has been busy!<br>
(This quest can be fulfilled only once a day. This quest resets at 6:30 a.m. everyday.)
</body></html>

View File

@@ -1,144 +1,170 @@
/*
* 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.Q00488_WondersOfCaring;
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;
/**
* Wonders of Caring (488)
* @URL https://l2wiki.com/Wonders_of_Caring
* @author Gigi
*/
public class Q00488_WondersOfCaring extends Quest
{
// NPCs
private static final int ADVANTURES_GUIDE = 32327;
private static final int DOLPHREN = 32880;
// MONSTERS
private static final int CNIMERA_PRICE = 20965;
private static final int MUTATED_CREATION = 20966;
private static final int CREATURE_OF_THE_PAST = 20967;
private static final int FORGOTTEN_FACE = 20968;
private static final int GIANTS_SHADOW = 20969;
private static final int SOLDIER_OS_ANCIENT_TIMESS = 20970;
private static final int WARRIOR_OS_ANCIENT_TIME = 20971;
private static final int SHAMAN_ON_ANCIENT_TIMES = 20972;
private static final int FORGOTTEN_ANCIENT_PEOPLE = 20973;
// Items
private static final int RELIC_BOX = 19500;
private static final ItemHolder ADENA = new ItemHolder(57, 283800);
// Misc
private static final int MIN_LEVEL = 75;
private static final int MAX_LEVEL = 79;
// Reward
private static final int EXP_REWARD = 22901550;
private static final int SP_REWARD = 5496;
public Q00488_WondersOfCaring()
{
super(488, Q00488_WondersOfCaring.class.getSimpleName(), "Wonders of Caring");
addStartNpc(ADVANTURES_GUIDE);
addTalkId(ADVANTURES_GUIDE, DOLPHREN);
registerQuestItems(RELIC_BOX);
addKillId(CNIMERA_PRICE, MUTATED_CREATION, CREATURE_OF_THE_PAST, FORGOTTEN_FACE, GIANTS_SHADOW, SOLDIER_OS_ANCIENT_TIMESS, WARRIOR_OS_ANCIENT_TIME, SHAMAN_ON_ANCIENT_TIMES, FORGOTTEN_ANCIENT_PEOPLE);
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 DOLPHREN:
{
if (qs.isCond(2) && (getQuestItemsCount(player, RELIC_BOX) >= 50))
{
takeItems(player, RELIC_BOX, -1);
giveItems(player, ADENA);
addExpAndSp(player, EXP_REWARD, SP_REWARD);
qs.exitQuest(QuestType.DAILY, true);
htmltext = "32880-01.html";
}
break;
}
}
return htmltext;
}
@Override
public String onKill(L2Npc monster, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getQuestState(killer, false);
if ((qs != null) && qs.isCond(1) && giveItemRandomly(killer, monster, RELIC_BOX, 1, 50, 0.2, true))
{
qs.setCond(2, true);
}
return super.onKill(monster, 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.Q00488_WondersOfCaring;
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;
/**
* Wonders of Caring (488)
* @author St3eT
*/
public final class Q00488_WondersOfCaring extends Quest
{
// NPCs
private static final int ADVENTURER = 32327;
private static final int DOLPHREN = 32880;
private static final int[] MONSTERS =
{
20965, // Chimera Piece
20970, // Soldier of Ancient Times
20966, // Mutated Creation
20971, // Warrior of Ancient Times
20972, // Shaman of Ancient Times
20967, // Creature of the Past
20973, // Forgotten Ancient People
20968, // Forgotten Face
20969, // Giant's Shadow
};
// Items
private static final int BOX = 19500; // Relic Box
// Misc
private static final int MIN_LEVEL = 75;
private static final int MAX_LEVEL = 79;
public Q00488_WondersOfCaring()
{
super(488);
addStartNpc(ADVENTURER);
addTalkId(ADVENTURER, DOLPHREN);
addKillId(MONSTERS);
addCondLevel(MIN_LEVEL, MAX_LEVEL, "");
registerQuestItems(BOX);
}
@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.htm";
}
break;
}
case State.STARTED:
{
if (st.isCond(1))
{
htmltext = npc.getId() == ADVENTURER ? "32327-05.html" : "32880-01.html";
}
else if (st.isCond(2))
{
if (npc.getId() == ADVENTURER)
{
htmltext = "32327-05.html";
}
else if (npc.getId() == DOLPHREN)
{
if (!isSimulated)
{
st.exitQuest(QuestType.DAILY, true);
giveAdena(player, 490_545, true);
if (player.getLevel() >= MIN_LEVEL)
{
addExpAndSp(player, 22_901_550, 5_496);
}
}
htmltext = "32880-02.html";
}
}
break;
}
case State.COMPLETED:
{
if ((npc.getId() == ADVENTURER) && st.isNowAvailable())
{
if (!isSimulated)
{
st.setState(State.CREATED);
}
htmltext = "32327-01.htm";
}
else if ((npc.getId() == DOLPHREN) && st.isCompleted() && !st.isNowAvailable())
{
htmltext = "32880-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, BOX, 1, 50, 0.4, true))
{
st.setCond(2, true);
}
}
return super.onKill(npc, killer, isSummon);
}
}

View File

@@ -1,3 +0,0 @@
<html><body>You don't meet level requirements<br>
(Quest available from level 75 - 79)
</body></html>