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,4 @@
<html><body>Novain the Geographer:<br>
I heard you killed monsters to help us. Thank you. It makes what I'm asking you to do that much easier, I think. Can you spare some more time for us?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10403_TheGuardianGiant 33866-02.htm">"I can."</Button>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Novain the Geographer:<br>
I am happy to hear that. With such a shortage of investigators, I was worried you'd say no.<br>
Anyway, I am glad that you've agreed help me. Here's what we have to do next.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10403_TheGuardianGiant 33866-03.htm">"I'm listening."</Button>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Novain the Geographer:<br>
You've probably heard about an organization called Embryo using a new kind of power. I don't know how and where they're gathering it, but if it's got something to do with Giants, they must have found it in the <font color="LEVEL">Forsaken Plains</font>.<br>
My instinct as a scholar is that if we investigate this area, we will get some answers.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10403_TheGuardianGiant 33866-04.htm">"Tell me what you need me to do."</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Geographer Novain:<br>
I'm thinking you should hunt <font color="LEVEL">Kranrot, Paliote, Yintzu, and Hamrut</font>, and collect <font color="LEVEL">50</font> <font color="LEVEL">Guardian Giant's Nucleus Fragments</font>. I should be able to determine Embryo's power source from that.<br>
While you're out there, you may run into <font color="LEVEL">Guardian Giant Akum</font>. Get rid of him if you can.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Geographer Novain:<br>
Hunt <font color="LEVEL">Kranrot, Paliote, Yintzu, and Hamrut</font>, and collect <font color="LEVEL">50</font> <font color="LEVEL">Guardian Giant's Nucleus Fragments</font>.<br>
When you collect them, <font color="LEVEL">Guardian Giant Akum</font> might show up. Kill him if you can.
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Novain the Geographer:<br>
I saw you kill the Guardian Giant! I was too surprised to help, but I probably would have hurt your chances, come to think of it.<br>
Anyway, did you find any clues?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10403_TheGuardianGiant 33866-07.html">"Akum had some dying words..."</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Geographer Novain:<br>
What? He said that <font color="LEVEL">everyone with the power of gods must not pretend to own it</font>? I have no idea what that means, but this has to be the clue we need. I'll take the message to Paterson, as well as the Guardian Giant's Nucleus Fragments you brought.<br>
Here, take this reward. I hope our paths will cross again, once we know more about this. It would be best for you to hone your skills until then.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Geographer Novain:<br>
On your way here, did you see any researchers? I hope they are all right.<br>
(Ertheia is excluded from this quest.)
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Geographer Novain:<br>
On your way here, did you see any investigators? I hope they are okay... Ah, maybe I am not in a position to worry about others. <br>
(This quest is for characters level 58 and higher who have completed the "Nowhere to Turn" quest.)
</body></html>

View File

@@ -0,0 +1,175 @@
/*
* 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.Q10403_TheGuardianGiant;
import com.l2jmobius.gameserver.enums.ChatType;
import com.l2jmobius.gameserver.enums.Race;
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;
import com.l2jmobius.gameserver.network.NpcStringId;
import quests.Q10402_NowhereToTurn.Q10402_NowhereToTurn;
/**
* The Guardian Giant (10403)
* @author St3eT
*/
public final class Q10403_TheGuardianGiant extends Quest
{
// NPCs
private static final int NOVIAN = 33866;
private static final int AKUM = 27504; // Guardian Giant Akum
private static final int[] MONSTERS =
{
20650, // Kranrot
20648, // Paliote
20647, // Yintzu
20649, // Hamrut
};
// Items
private static final int FRAGMENT = 36713; // Guardian Giant's Nucleus Fragment
private static final int EAB = 948; // Scroll: Enchant Armor (B-grade)
// Misc
private static final int MIN_LEVEL = 58;
private static final int MAX_LEVEL = 61;
public Q10403_TheGuardianGiant()
{
super(10403);
addStartNpc(NOVIAN);
addTalkId(NOVIAN);
addKillId(MONSTERS);
addKillId(AKUM);
registerQuestItems(FRAGMENT);
addCondNotRace(Race.ERTHEIA, "33866-08.html");
addCondLevel(MIN_LEVEL, MAX_LEVEL, "33866-09.htm");
addCondCompletedQuest(Q10402_NowhereToTurn.class.getSimpleName(), "33866-09.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 "33866-02.htm":
case "33866-03.htm":
{
htmltext = event;
break;
}
case "33866-04.htm":
{
st.startQuest();
htmltext = event;
break;
}
case "33866-07.html":
{
if (st.isCond(3))
{
st.exitQuest(false, true);
giveItems(player, EAB, 5);
giveStoryQuestReward(player, 40);
if (player.getLevel() >= MIN_LEVEL)
{
addExpAndSp(player, 6_579_090, 1_578);
}
htmltext = event;
}
break;
}
}
return htmltext;
}
@Override
public String onTalk(L2Npc npc, L2PcInstance player)
{
String htmltext = getNoQuestMsg(player);
final QuestState st = getQuestState(player, true);
switch (st.getState())
{
case State.CREATED:
{
htmltext = "33866-01.htm";
break;
}
case State.STARTED:
{
switch (st.getCond())
{
case 1:
case 2:
{
htmltext = "33866-05.html";
break;
}
case 3:
{
htmltext = "33866-06.html";
break;
}
}
break;
}
case State.COMPLETED:
{
htmltext = getAlreadyCompletedMsg(player);
break;
}
}
return htmltext;
}
@Override
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState st = getQuestState(killer, false);
if ((st != null) && st.isStarted())
{
if (st.isCond(2) && (npc.getId() == AKUM))
{
st.setCond(3, true);
takeItems(killer, FRAGMENT, -1);
npc.broadcastSay(ChatType.NPC_GENERAL, NpcStringId.YOU_WITH_THE_POWER_OF_THE_GODS_CEASE_YOUR_MASQUERADING_AS_OUR_MASTERS_OR_ELSE);
}
else if (st.isCond(1))
{
if (giveItemRandomly(killer, FRAGMENT, 1, 50, 1, true))
{
st.setCond(2, true);
final L2Npc akum = addSpawn(AKUM, npc);
akum.broadcastSay(ChatType.NPC_GENERAL, NpcStringId.WHO_IS_IT_THAT_THREATENS_US_YOU_WITH_THE_POWER_OF_THE_GODS_WHY_DO_YOU_COVET_OUR_POWERS);
addAttackPlayerDesire(akum, killer);
}
}
}
return super.onKill(npc, killer, isSummon);
}
}