Quests 10327 to 10330.

Contributed by Neanrakyr.
This commit is contained in:
MobiusDev
2015-04-17 12:10:03 +00:00
parent ebfe860e5a
commit ed7940cda0
60 changed files with 1427 additions and 2 deletions

View File

@@ -0,0 +1,5 @@
<html><body>Pantheon:<br>
Gallint is hurt and cannot move, but we must do something about the books before they get stolen.<br>
They're looking for <font color="LEVEL">The War of Gods and Giants</font> mostly, but there are a couple of others they'd probably find useful too.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10327_IntruderWhoWantsTheBookOfGiants 32972-02.htm">"The War of Gods and Giants?"</Button>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Pantheon:<br>
We think they were looking for anything related to the Giants,and tried to steal The War of Gods and Giants, an ancient book that was discovered in Ye Sagira.<br>
It has many stories about the powers of the Giants, how that power can be learned, and about others species from their time. Now that the island has crashed, perhaps we should think about safeguarding the book...<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10327_IntruderWhoWantsTheBookOfGiants 32972-03.htm">"I'd like to help."</Button>
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Pantheon:<br>
Thank you!<br1>
When you get to the museum, you should see a number of desks - <font color="LEVEL">one of them</font> has <font color="LEVEL">The War of Giants and Gods</font> on it. Find it, and bring it to me.<br>
Would you like to go to the museum?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Quest MuseumDungeon enter_instance">"Yes."</Button>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Pantheon:<br>
You're still here<br1>
Go into the museum!<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Quest MuseumDungeon enter_instance">"On my way!"</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Pantheon:<br>
I just saw suspicious intruders entering the Museum! I fear for the rare valuable articles inside the Museum. Please hurry into the Museum and deal with the intruders!<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Quest MuseumDungeon enter_instance">"Sure. I am going in."</Button>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><head><body>Pantheon:<br>
You've brought the book? Good! It must have been difficult to find it amongst all those others!<br>
I hope you didn't get hurt either - Gallint may be a fool, but plenty have hurt themselves moving books around before him.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10327_IntruderWhoWantsTheBookOfGiants 32972-07.htm">"I had to fight someone!"</Button>
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Pantheon:<br>
What? The thieves are getting more brash by the day!<br>
Hmm... So, I wonder if the books related to Giants... are also related to Embryo. It's just speculation, but something worth considering.<br>
Now, I must apologize for placing you in harm's way. Please accept these Earrings - accessories such as these help protect you against magic!<br>
Remember: you can wear up to two <font color="LEVEL">earrings</font> at a time. Purchase more from the <font color="LEVEL">General Merchant</font> if you wish.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Pantheon:<br>
I'm still looking into things, friend. I'll let you know when I find anything<br>
(You have already completed this quest.)
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Pantheon:<br>
This mission can't be give to just anyone!<br>
(Only characters below 20, who've completed the "Let's Respect Elders" quest, may start this quest.)
</body></html>

View File

@@ -0,0 +1,134 @@
/*
* Copyright (C) 2004-2015 L2J DataPack
*
* This file is part of L2J DataPack.
*
* L2J DataPack 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.
*
* L2J DataPack 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.Q10327_IntruderWhoWantsTheBookOfGiants;
import quests.Q10326_RespectYourElders.Q10326_RespectYourElders;
import com.l2jserver.gameserver.model.actor.L2Npc;
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
import com.l2jserver.gameserver.model.holders.ItemHolder;
import com.l2jserver.gameserver.model.quest.Quest;
import com.l2jserver.gameserver.model.quest.QuestState;
import com.l2jserver.gameserver.model.quest.State;
import com.l2jserver.gameserver.network.NpcStringId;
import com.l2jserver.gameserver.network.serverpackets.ExShowScreenMessage;
/**
* @author Neanrakyr
*/
public class Q10327_IntruderWhoWantsTheBookOfGiants extends Quest
{
// Npcs
private static final int PANTHEON = 32972;
// Items
private static final int THE_WAR_OF_GODS_AND_GIANTS = 17575;
private static final ItemHolder APPRENTICE_EARRING = new ItemHolder(112, 2);
// Level Condition
private static final int MAX_LEVEL = 20;
public Q10327_IntruderWhoWantsTheBookOfGiants()
{
super(10327, Q10327_IntruderWhoWantsTheBookOfGiants.class.getSimpleName(), "Intruder Who Wants the Book of Giants ");
addStartNpc(PANTHEON);
addTalkId(PANTHEON);
registerQuestItems(THE_WAR_OF_GODS_AND_GIANTS);
addCondMaxLevel(MAX_LEVEL, "32972-09.htm");
addCondCompletedQuest(Q10326_RespectYourElders.class.getSimpleName(), "32972-09.htm");
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
final QuestState qs = getQuestState(player, false);
if (qs == null)
{
return null;
}
String htmltext = null;
switch (event)
{
case "32972-02.htm":
{
htmltext = event;
break;
}
case "32972-03.htm":
{
qs.startQuest();
htmltext = event;
break;
}
case "32972-07.htm":
{
if (qs.isCond(3))
{
showOnScreenMsg(player, NpcStringId.ACCESSORIES_HAVE_BEEN_ADDED_TO_YOUR_INVENTORY, ExShowScreenMessage.TOP_CENTER, 4500);
giveAdena(player, 160, true);
giveItems(player, APPRENTICE_EARRING);
addExpAndSp(player, 7800, 5);
qs.exitQuest(false, true);
break;
}
break;
}
}
return htmltext;
}
@Override
public String onTalk(L2Npc npc, L2PcInstance player)
{
final QuestState qs = getQuestState(player, true);
String htmltext = null;
switch (qs.getState())
{
case State.CREATED:
{
htmltext = "32972-01.htm";
break;
}
case State.STARTED:
{
if (qs.isCond(1))
{
htmltext = "32972-04.htm";
break;
}
else if (qs.isCond(2))
{
htmltext = "32972-05.htm";
break;
}
else if (qs.isCond(3))
{
htmltext = "32972-06.htm";
break;
}
}
case State.COMPLETED:
{
htmltext = "32972-08.htm";
break;
}
}
return htmltext;
}
}