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

@@ -0,0 +1,6 @@
<html><body>Agent Georgio:<br>
In the Forbidden Gateway, East of the Aden kingdom, powerful monsters have appeared and are heading directly for Aden.<br1>
Countless soldiers and warriors have lost their lives to these followers of Shilen. We cannot remain still any longer!<br1>
We must answer the call to arms!<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00493_KickingOutUnwelcomeGuests 33515-02.htm">"Sign me up!"</Button>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Agent Georgio:<br>
The Goddess of Destruction has not shown herself, but by using various methods, she is spreading her power throughout the world. The Forbidden Gateway is perhaps the most dangerous location of them all, as it is believed to be the place where Shilen's body was sealed.<br1>
There's no telling that even Aden will remain free from such a threat forever.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00493_KickingOutUnwelcomeGuests 33515-03.htm">"What do we have to do?"</Button>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Agent Georgio:<br>
Someone of your caliber, one who has acquired so much battle experience, should be able to inflict some heavy damage to those monsters, even by yourself!<br1>
If it is possible, could you please go to the Forbidden Gateway and help decrease their numbers?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00493_KickingOutUnwelcomeGuests 33515-04.htm">"What must I do exactly?"</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Agent Georgio:<br>
You must defeat 20 each of Resurrected Creations, Lunatic Creatures, Undead Creatures, Hellish Creatures, and Shilen's Messengers in the Forbidden Gateway.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00493_KickingOutUnwelcomeGuests 33515-05.htm">"Sounds like a challenge. I accept."</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Agent Georgio:<br>
Good, then I will await here for your return.<br1>
You must defeat 20 each of Resurrected Creations, Insane Creations, Undead Creatures, Hellish Creatures, and Shilen's Messengers.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Agent Georgio:<br>
Good, then I will await here for your return.<br1>
You must defeat 20 each of Resurrected Creations, Insane Creations, Undead Creatures, Hellish Creatures, and Shilen's Messengers.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Agent Georgio:<br>
You've returned! Tell me, were you able to defeat all of the evil creations of Shilen?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q00493_KickingOutUnwelcomeGuests 33515-08.html">"Yes. I'm done."</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Agent Georgio:<br>
You completed the task brilliantly!<br1>
If you can, please help us again tomorrow!
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Agent Georgio:<br>
The devotions of heroes are what protects this land. If you can, please partake in this quest tomorrow too.<br>
(You can only do this quest once a day. This quest resets everyday at 6:30 AM.)
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Agent Georgio:<br>
This mission is too much for you. You cannot be a hero just by wishing it were so.<br>
(You must be level 95 or above to start this quest.)
</body></html>

View File

@@ -0,0 +1,196 @@
/*
* 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.Q00493_KickingOutUnwelcomeGuests;
import java.util.HashSet;
import java.util.Set;
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.NpcLogListHolder;
import com.l2jmobius.gameserver.model.quest.Quest;
import com.l2jmobius.gameserver.model.quest.QuestState;
import com.l2jmobius.gameserver.model.quest.State;
/**
* Kicking Out Unwelcome Guests (493)
* @author St3eT
*/
public final class Q00493_KickingOutUnwelcomeGuests extends Quest
{
// NPCs
private static final int GEORGIO = 33515;
private static final int LUNATIC_CREATURE = 23148;
private static final int RESURRECTED_CREATION = 23147;
private static final int UNDEAD_CREATURE = 23149;
private static final int SHILEN_MESSENGER = 23151;
private static final int HELLISH_CREATURE = 23150;
// Misc
private static final int MIN_LEVEL = 95;
public Q00493_KickingOutUnwelcomeGuests()
{
super(493);
addStartNpc(GEORGIO);
addTalkId(GEORGIO);
addKillId(LUNATIC_CREATURE, RESURRECTED_CREATION, UNDEAD_CREATURE, SHILEN_MESSENGER, HELLISH_CREATURE);
addCondMinLevel(MIN_LEVEL, "33515-10.htm");
}
@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 "33515-02.htm":
case "33515-03.htm":
case "33515-04.htm":
{
htmltext = event;
break;
}
case "33515-05.htm":
{
st.startQuest();
htmltext = event;
break;
}
case "33515-08.html":
{
if (st.isCond(2))
{
addExpAndSp(player, 560_000_000, 134_400);
st.exitQuest(QuestType.DAILY, true);
htmltext = event;
}
break;
}
}
return htmltext;
}
@Override
public String onTalk(L2Npc npc, L2PcInstance player)
{
String htmltext = getNoQuestMsg(player);
final QuestState st = getQuestState(player, true);
if (st == null)
{
return htmltext;
}
if (npc.getId() == GEORGIO)
{
switch (st.getState())
{
case State.CREATED:
{
htmltext = "33515-01.htm";
break;
}
case State.STARTED:
{
if (st.isCond(1))
{
htmltext = "33515-06.html";
}
else if (st.isCond(2))
{
htmltext = "33515-07.html";
}
break;
}
case State.COMPLETED:
{
if (st.isNowAvailable())
{
st.setState(State.CREATED);
htmltext = "33515-01.htm";
}
else
{
htmltext = "33515-09.html";
}
break;
}
}
}
return htmltext;
}
@Override
public void actionForEachPlayer(L2PcInstance player, L2Npc npc, boolean isSummon)
{
final QuestState st = getQuestState(player, false);
if ((st != null) && st.isCond(1))
{
final int killedCount = st.getInt(Integer.toString(npc.getId()));
if (killedCount < 20)
{
st.set(Integer.toString(npc.getId()), killedCount + 1);
}
final int killedLunatic = st.getInt(Integer.toString(LUNATIC_CREATURE));
final int killedRessurected = st.getInt(Integer.toString(RESURRECTED_CREATION));
final int killedUndead = st.getInt(Integer.toString(UNDEAD_CREATURE));
final int killedMessenger = st.getInt(Integer.toString(SHILEN_MESSENGER));
final int killedHellish = st.getInt(Integer.toString(HELLISH_CREATURE));
if ((killedLunatic == 20) && (killedRessurected == 20) && (killedUndead == 20) && (killedMessenger == 20) && (killedHellish == 20))
{
st.setCond(2, true);
}
else
{
sendNpcLogList(player);
}
}
}
@Override
public String onKill(L2Npc npc, L2PcInstance player, boolean isSummon)
{
executeForEachPlayer(player, npc, isSummon, true, false);
return super.onKill(npc, player, isSummon);
}
@Override
public Set<NpcLogListHolder> getNpcLogList(L2PcInstance player)
{
final QuestState st = getQuestState(player, false);
if (st != null)
{
final Set<NpcLogListHolder> npcLogList = new HashSet<>(5);
npcLogList.add(new NpcLogListHolder(LUNATIC_CREATURE, false, st.getInt(Integer.toString(LUNATIC_CREATURE))));
npcLogList.add(new NpcLogListHolder(RESURRECTED_CREATION, false, st.getInt(Integer.toString(RESURRECTED_CREATION))));
npcLogList.add(new NpcLogListHolder(UNDEAD_CREATURE, false, st.getInt(Integer.toString(UNDEAD_CREATURE))));
npcLogList.add(new NpcLogListHolder(SHILEN_MESSENGER, false, st.getInt(Integer.toString(SHILEN_MESSENGER))));
npcLogList.add(new NpcLogListHolder(HELLISH_CREATURE, false, st.getInt(Integer.toString(HELLISH_CREATURE))));
return npcLogList;
}
return super.getNpcLogList(player);
}
}