Addition of quest 336, 337, 386, 492, 551, 754, 755, 756, 943, 10382, 10383, 10384, 10453, 10465, 10790.
This commit is contained in:
145
trunk/dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/Q10384_AnAudienceWithTauti.java
vendored
Normal file
145
trunk/dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/Q10384_AnAudienceWithTauti.java
vendored
Normal file
@@ -0,0 +1,145 @@
|
||||
/*
|
||||
* 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.Q10384_AnAudienceWithTauti;
|
||||
|
||||
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 quests.Q10383_FergasonsOffer.Q10383_FergasonsOffer;
|
||||
|
||||
/**
|
||||
* @author hlwrave
|
||||
*/
|
||||
public class Q10384_AnAudienceWithTauti extends Quest
|
||||
{
|
||||
// NPCs
|
||||
private static final int FERGASON = 33681;
|
||||
private static final int AKU = 33671;
|
||||
// Monsters
|
||||
private static final int TAUTI = 29237;
|
||||
// Items
|
||||
private static final int TAUTIS_FRAGMENT = 34960;
|
||||
private static final int BOTTLE_OF_TAUTIS_SOUL = 35295;
|
||||
// Misc
|
||||
private static final int MIN_LEVEL = 97;
|
||||
|
||||
public Q10384_AnAudienceWithTauti()
|
||||
{
|
||||
super(10384);
|
||||
addStartNpc(FERGASON);
|
||||
addTalkId(FERGASON, AKU);
|
||||
addKillId(TAUTI);
|
||||
registerQuestItems(TAUTIS_FRAGMENT);
|
||||
addCondMinLevel(MIN_LEVEL, "maestro_ferguson_q10384_05.html");
|
||||
addCondCompletedQuest(Q10383_FergasonsOffer.class.getSimpleName(), "maestro_ferguson_q10384_06.html");
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final String htmltext = event;
|
||||
final QuestState qs = getQuestState(player, false);
|
||||
|
||||
if (qs == null)
|
||||
{
|
||||
return getNoQuestMsg(player);
|
||||
}
|
||||
|
||||
switch (event)
|
||||
{
|
||||
case "maestro_ferguson_q10384_04.html":
|
||||
{
|
||||
qs.startQuest();
|
||||
break;
|
||||
}
|
||||
case "sofa_aku_q10384_02.html":
|
||||
{
|
||||
qs.setCond(2);
|
||||
break;
|
||||
}
|
||||
case "maestro_ferguson_q10384_11.html":
|
||||
{
|
||||
addExpAndSp(player, 951127800, 435041400);
|
||||
giveAdena(player, 3256740, true);
|
||||
giveItems(player, BOTTLE_OF_TAUTIS_SOUL, 1);
|
||||
qs.exitQuest(QuestType.ONE_TIME, true);
|
||||
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 FERGASON:
|
||||
{
|
||||
if (qs.isCreated())
|
||||
{
|
||||
htmltext = "maestro_ferguson_q10384_01.htm";
|
||||
}
|
||||
else if (qs.isStarted())
|
||||
{
|
||||
if (qs.isCond(1) || qs.isCond(2))
|
||||
{
|
||||
htmltext = "maestro_ferguson_q10384_08.html";
|
||||
}
|
||||
else if (qs.isCond(3) && hasQuestItems(player, TAUTIS_FRAGMENT))
|
||||
{
|
||||
htmltext = "maestro_ferguson_q10384_09.html";
|
||||
}
|
||||
|
||||
}
|
||||
else if (qs.isCompleted())
|
||||
{
|
||||
htmltext = "maestro_ferguson_q10384_07.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case AKU:
|
||||
{
|
||||
if (qs.isStarted())
|
||||
{
|
||||
htmltext = "sofa_aku_q10384_01.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
|
||||
{
|
||||
final QuestState qs = getQuestState(killer, false);
|
||||
if ((qs != null) && qs.isCond(2))
|
||||
{
|
||||
qs.setCond(3);
|
||||
giveItems(killer, TAUTIS_FRAGMENT, 1);
|
||||
}
|
||||
return super.onKill(npc, killer, isSummon);
|
||||
}
|
||||
}
|
@@ -0,0 +1,4 @@
|
||||
<html><body>Ferguson:<br>
|
||||
How have you been? Are you getting on with <font color="LEVEL">Aku</font><br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10384_AnAudienceWithTauti maestro_ferguson_q10384_02.htm">"Well enough."</button>
|
||||
</body></html>
|
@@ -0,0 +1,4 @@
|
||||
<html><body>Ferguson:<br>
|
||||
Remember, he's the key to meeting <font color="LEVEL">Tauti</font>! That's the most important thing.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10384_AnAudienceWithTauti maestro_ferguson_q10384_03.htm">"I know, I know."</button>
|
||||
</body></html>
|
@@ -0,0 +1,4 @@
|
||||
<html><body>Ferguson:<br>
|
||||
Well then, if you do meet <font color="LEVEL">Tauti</font>, please bring me <font color="LEVEL">1</font> of <font color="LEVEL">Tauti's Fragment</font>.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10384_AnAudienceWithTauti maestro_ferguson_q10384_04.html">"No problem!"</button>
|
||||
</body></html>
|
@@ -0,0 +1,4 @@
|
||||
<html><body>Fergason:<br>
|
||||
You need something called <font color="LEVEL">Aku's Mark</font> in order to meet <font color="LEVEL">Tauti</font> through <font color="LEVEL">Aku</font>. I think you should have collected enough number of these. So you should be okay, right? <br>
|
||||
Don't forget. Kill <font color="LEVEL">Tauti</font> and bring <font color="LEVEL">1</font> <font color="LEVEL">Tauti's Fragment</font> to me.
|
||||
</body></html>
|
@@ -0,0 +1,4 @@
|
||||
<html><body>Fergason:<br>
|
||||
Hm... You're much too weak for this quest!<br>
|
||||
(You must be level 97 or above to start this quest.)
|
||||
</body></html>
|
@@ -0,0 +1,4 @@
|
||||
<html><body>Ferguson:<br>
|
||||
Huh? Do we know each other?<br>
|
||||
(You have not completed the prerequisite quests.)
|
||||
</body></html>
|
@@ -0,0 +1,4 @@
|
||||
<html><body>Ferguson:<br>
|
||||
Hehe. Now I think I can create the best weapons! Hahahah!<br>
|
||||
(You have already completed this quest.)
|
||||
</body></html>
|
@@ -0,0 +1,4 @@
|
||||
<html><body>Ferguson:<br>
|
||||
You need something called <font color="LEVEL">Aku's Mark</font> in order to meet <font color="LEVEL">Tauti</font> through <font color="LEVEL">Aku</font>. I think you should have collected enough number of these. So you should be okay, right? <br>
|
||||
Don't forget. Kill <font color="LEVEL">Tauti</font> and bring <font color="LEVEL">1</font> <font color="LEVEL">Tauti's Fragment</font> to me.
|
||||
</body></html>
|
@@ -0,0 +1,4 @@
|
||||
<html><body>Ferguson:<br>
|
||||
Hahaha! Finally I get the <font color="LEVEL">Tauti's Fragment</font>!<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10384_AnAudienceWithTauti maestro_ferguson_q10384_10.html">"What are you going to do with it?"</button>
|
||||
</body></html>
|
@@ -0,0 +1,4 @@
|
||||
<html><body>Fergason:<br>
|
||||
Create the greatest weapon ever made, that's what! These are not simple weapons, but actual living organisms! I have been searching through <font color="LEVEL">Aden</font> for years now, looking for materials like these <font color="LEVEL">Tauti's Fragments</font>! And finally, I have one!<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10384_AnAudienceWithTauti maestro_ferguson_q10384_11.html">"You should... sleep a bit."</button>
|
||||
</body></html>
|
@@ -0,0 +1,3 @@
|
||||
<html><body>Fergason:<br>
|
||||
Hahaha! No! No sleep for me! Wasted hours! Could be spent crafting! Hahahaha!
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/sofa_aku_q10384_01.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/sofa_aku_q10384_01.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Aku:<br>
|
||||
Oh, you want to see <font color="LEVEL">Lord Tauti</font>? Hee, okay, I will give you the chance. <font color="LEVEL">Lord Tauti</font> seemed to be interested in you too, after all those <font color="LEVEL">Petras.</font><br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10384_AnAudienceWithTauti sofa_aku_q10384_02.html">"Send me, please!"</button>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/sofa_aku_q10384_02.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10384_AnAudienceWithTauti/sofa_aku_q10384_02.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Aku:<br>
|
||||
Someone's in a hurry to see <font color="LEVEL">Lord Tauti</font>! You think it's easy, dingbat?<br>
|
||||
First! Do you have enough <font color="LEVEL">Aku's Mark</font>s? You must be sure! Be sure! Double-check! And then you must politely ask <font color="LEVEL">"I would like to see Lord Tauti."</font>
|
||||
</body></html>
|
Reference in New Issue
Block a user