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,5 @@
<html><body>Paterson's Disciple Bacon:<br>
Oh. You're still here. Well, my experiments are complete.<br>
The <font color="LEVEL">Unidentified Suspicious Badges</font> you kindly brought me are covered in writing from the Ancient Giants. I don't understand what it says, but they've definitely got some strange power. Could the power of the <font color="LEVEL">Giant's Alphabet</font> be making monsters?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10399_TheAlphabetOfTheGiants 33846-02.htm">Ah, monsters</Button>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Paterson's Disciple Bacon:<br>
You want to free me up to research the <font color="LEVEL">Giant's Alphabet</font>. You know you do.<br>
That's why you're going to help out! The monsters here go out of their way to collect the <font color="LEVEL">Giant's Alphabet</font>, like someone ordered them to do it. Instead of watching them get more violent, and leaving me with nothing to study, you can kill them and bring the <font color="LEVEL">Giant's Alphabet</font> to me. Great, isn't it?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10399_TheAlphabetOfTheGiants 33846-03.htm">Win, win</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Paterson's Disciple Bacon:<br>
I knew I liked you.<br>
Go back to the <font color="LEVEL">Sea of Spores</font> and defeat <font color="LEVEL">Corpse Looter Stakatos</font> and <font color="LEVEL">Lesser Laikels</font>. Then collect <font color="LEVEL">20</font> letters of the <font color="LEVEL">Giant's Alphabet</font> and come back to me. Thank you.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Paterson's Disciple Bacon:<br>
Come on. I gave you one little task. One. Little. Task. <br>
Go back to the <font color="LEVEL">Sea of Spores</font> and defeat <font color="LEVEL">Corpse Looter Stakatos</font> and <font color="LEVEL">Lesser Laikels</font>. Then collect <font color="LEVEL">20</font> letters of the <font color="LEVEL">Giant's Alphabet</font> and come back to me.
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Paterson's Disciple Bacon:<br>
And here you are! Victorious already.<br>
You're so good at this stuff.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10399_TheAlphabetOfTheGiants 33846-06.html">"Are we done here?"</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Paterson's Disciple Bacon:<br>
All right. We know that the Suspicious Badges are the Giants' Alphabet, and you stopped monsters from collecting them, so we're good for now. But it makes you wonder, doesn't it? What if someone is actually behind all this? I think I'll stay here to keep an eye on things, just in case.<br>
Thanks for all your help. If you ever get a chance, go see my teacher <font color="LEVEL">Paterson</font>. He'll like you a lot, I'm sure. Haha!
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Paterson's Disciple Bacon:<br>
Where have all the capable adventurers gone?<br>
(This quest may only be undertaken by characters of level 52 or above who have completed the quest "Suspicious Badge".)
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Paterson's Disciple Bacon:<br>
Even if I wanted to put someone to work, I can't seem to find anybody skilled enough. And it's even harder to find someone you can trust who also has the skills.<br>
(Ertheia classes cannot perform this quest.)
</body></html>

View File

@@ -0,0 +1,150 @@
/*
* 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.Q10399_TheAlphabetOfTheGiants;
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 quests.Q10398_ASuspiciousBadge.Q10398_ASuspiciousBadge;
/**
* The Alphabet of the Giants (10399)
* @author St3eT
*/
public final class Q10399_TheAlphabetOfTheGiants extends Quest
{
// NPCs
private static final int BACON = 33846;
private static final int[] MONSTERS =
{
23309, // Corpse Looter Stakato
23310, // Lesser Laikel
};
// Items
private static final int TABLET = 36667; // Giant's Alphabet
private static final int EAB = 948; // Scroll: Enchant Armor (B-grade)
// Misc
private static final int MIN_LEVEL = 52;
private static final int MAX_LEVEL = 58;
public Q10399_TheAlphabetOfTheGiants()
{
super(10399);
addStartNpc(BACON);
addTalkId(BACON);
addKillId(MONSTERS);
registerQuestItems(TABLET);
addCondNotRace(Race.ERTHEIA, "33846-08.html");
addCondLevel(MIN_LEVEL, MAX_LEVEL, "33846-07.htm");
addCondCompletedQuest(Q10398_ASuspiciousBadge.class.getSimpleName(), "33846-07.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 "33846-02.htm":
{
htmltext = event;
break;
}
case "33846-03.htm":
{
st.startQuest();
htmltext = event;
break;
}
case "33846-06.html":
{
if (st.isCond(2))
{
st.exitQuest(false, true);
giveItems(player, EAB, 5);
giveStoryQuestReward(player, 37);
if (player.getLevel() >= MIN_LEVEL)
{
addExpAndSp(player, 3_811_500, 914);
}
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 = "33846-01.htm";
break;
}
case State.STARTED:
{
if (st.isCond(1))
{
htmltext = "33846-04.html";
}
else if (st.isCond(2))
{
htmltext = "33846-05.html";
}
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() && st.isCond(1))
{
if (giveItemRandomly(killer, npc, TABLET, 1, 20, 1, true))
{
st.setCond(2);
}
}
return super.onKill(npc, killer, isSummon);
}
}