Quest Moon Knight (11000).

Contributed by Stayway.
This commit is contained in:
MobiusDev
2017-08-09 21:00:28 +00:00
parent 5ab60b4287
commit 5cb1f5b838
94 changed files with 805 additions and 59 deletions

View File

@@ -0,0 +1,7 @@
<html><body>Trader Damion:<br>
Did guards send you? Are you a mercenary? Hmm...<br>
Fine, let's get down to business. We got into this nasty mess recently. Ol Mahums have attacked the caravan headed to Gludio and have taken, among other things,<font color="LEVEL"> 10 Armor Stubs</font>. These stubs should have been delivery to a Human named Amora. The word is she values accuracy and strict abidance to the contracts... If she does not receive the goods on time she might stop any trade with our city. And if other Traders find out about it they might follow. Meaning huge losses for us...<br>
I beg you! <font color="LEVEL"> Find the goods stolen by Ol Mahums and return it to Armor</font>. You can find her to the West of Fellmere Lake.<br>
By the way, I can tell you something interesting while you're still here. Some really juicy rumors reached me lately...<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q11000_MoonKnight 30208-02.html">Ask about rumors</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Trader Damion:<br>
The word is Ol Mahums that attacked the caravan are in alliance with Turek Orcs. This never happened before... It looks like they're planning something bad. Be careful!<br>
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h Quest Q11000_MoonKnight 30208-01.html">Home</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Trader Damion:<br>
Have you delivered the goods? Alright, Amor has taken the goods and she has given you the receipt. You did well!<br>
Now the Traders of Aden will keep trading with us. Thanks to you!<font color="LEVEL"> Moon Knight Jones</font> is waiting for your report. Go to him.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Trader Damion:<br>
You are the one who helped us return the goods, stolen by Ol Mahum? I can see you are doing well. Thanks again for your help. You saved my reputation.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Neti:<br>
I hope <font color="LEVEL">Trader Rolento</font> will be cleared of all suspicion. He is so kind! He would help Orcs! This is merely impossible!<br>
Please! Go to the <font color="LEVEL"> Southern Entrance to the Wastelands</font> and talk to Rolento.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Neti:<br>
Please! Go to the <font color="LEVEL"> Southern Entrance to the Wastelands</font> and talk to Rolento.
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Trader Rolento:<br>
You're right. This contract was drafted by me. Did something happen?<br>
What are you saying? You think I am selling equipment to Ol Mahums? No-no! It was nothing like that!<br>
Let me tell you everything. Turek Orc Commander came by my place not long ago. He told me they made an alliance with Ol Mahums. He ordered the armor to give it to them as a token of good will. That is it!<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q11000_MoonKnight 30437-02.html">Tell about Turec Orcs plans.</Button>
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Trader Rolento:<br>
They told me they need the armor for hunting! They told me that Ol Mahums will starve in winter so they need armor to hunt boars, otherwise they might get injured and die! So they wanted to use the armor to attack the city? I didn't know that, I swear! Please, trust me!<br>
(Cries.) And here I was, planning to celebrate such a lucrative contract!<br>
So these Orcish scum are about to attack Gludin together with Ol Mahums... Well, I won't stay silent! I have a great idea how we can ruin their plans.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q11000_MoonKnight 30437-03.html">Ask about the idea.</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Trader Rolento:<br>
You cold deliver the armor instead of me! If you go to the West from Fellmere Lake you will meet <font color="LEVEL">Ol Mahum Hierarch Gudz</font>. Tell him about Turek Orcs plans. If Ol Mahums find out that they were used they will not just sit there, they will attack Orcs to avenge themselves.<br>
Right! Take this Iron Scale Guild Certificate. And this pouch with armor. Don't worry about it. This is made from cheap bronze so it will not be of any use to them in battle.
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Trader Rolento:<br>
You are still here? Have you forgotten the plan already? Go to the <font color="LEVEL">Abandoned Camp</font> instead of me to give the armor to Ol Mahums. Find <font color="LEVEL">Ol Mahum Hierarch Gudz</font> there and tell him about Turek Orcs trachery. If Ol Mahums find out that they will not just sit there, they will attack to avenge themselves.<br>
Do not lose the Iron Scale Guild Certificate! This is a proof that you come from me. Go on now!
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Moon Knight Jones:<br>
You cannot imagine how much trouble are Ol Mahums causing lately. Just a few days ago they have attacked caravan coming to Gludio and took a good loot. Traders of Aden asked Gludio guards for help after this.<br>
But the guards cannot spare any warriors to guard the caravans because of all the bandits which are always waiting for the right moment to attack the city. Traders discussed the matter a lot but could not think of anything. So they have decided to use mercenaries to<font color="LEVEL"> deal with Ol Mahums</font>. It is a shame that we have to ask outsiders to deal with such an important problem...<br>
What? Are you a mercenary too?... Ha, it is good that we met then. So, what do you say? You have a chance to help us bring peace and prosperity back to Gludin. Will you agree to help?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q11000_MoonKnight 30939-02.htm">Agree</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Moon Knight Jones:<br>
Well then! Then listen carefully!<br>
You have to go to <font color="LEVEL">Armor Merchant Damion</font> first and find out the details of that attack on the caravan. Look through the list of the goods to find out what was stolen. You can find Damion in <font color="LEVEL"> Armor Store</font>.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Moon Knight Jones:<br>
Have you forgotten what I told you? Go to <font color="LEVEL">Armor Merchant Damion</font> and look through the list of the goods to find out what was stolen. Hurry up, Traders of Aden are complaining all the time that no one is going to investigate this attack on the caravan.
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Moon Knight Jones:<br>
I have just received a letter from Damion. He wants me to tell you that all of the goods stolen by Ol Mahums were brought back and shipped to the client. Damion is very gratefull. You did a good job.<br>
But... There is another problem. Our spies tell us that Turek Orcs are going through active preparations to attack Gludin. I have reported this to Sir Klaus Vasper but he has only ordered to keep an eye on them. Sir Klaus thinks there way too few Orcs and they will not attack. Hmm...<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q11000_MoonKnight 30939-04.html">"It looks like Ol Mahums have joined forces with Turek Orcs."</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Moon Knight Jones:<br>
What?! Have you seen Turek Orcs in Abandoned Camp? That means... These monsters have joined forces and are about to attack us together. It's a disaster!<br>
...But I think we should no hurry with our report to Sir Vasper. We have to get concrete evidence first, kill<font color="LEVEL"> Turek Orc Commanders</font> near Orc Barracks and search them to find out something about their plans. Time is the essence. I am asking you to hurry.<br>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Moon Knight Jones:<br>
Have you completed my task? We have to find proof that someone is helping Turek Orcs! Find <font color="LEVEL">Turek Orc Commanders</font> near <font color="LEVEL">Orc Barracks</font> and search them to find out something about their plans. You will definitely find something important.
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Moon Knight Jones:<br>
Have you found something important? Turek Orc Order? Let me take a look...<br>
This is nonsense! Orcs do not want Gludin, they want to attack Abandoned Camp. They are going to pretend to attack Gludin with Ol Mahums while in fact they will overtake Abandoned Camp when there is no one there. What a low cunning.<br>
If Orcs have camps to the west and to the north of Gludin we will be surrounded...<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q11000_MoonKnight 30939-06.html">Show Armor Trade Contract</Button>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Moon Knight Jones:<br>
A contract? Let's see... It is an contract for a large batch of armor. Look at the stamp. There is no doubt that is a sign of the Dwarven Guild. So, Dwarves are selling military equipment to Turek Orcs?<br>
Hmm... We have to find out wich of Dwarven Guild's is working with Tureck Orcs. We have to find out whose stamp is that but we cannot just ask the Dwarves themselves...<br>
By the way! Do you know <font color="LEVEL">Neti</font>? She lives nearby. We can ask her! The word is Neti lived near Schuttgart when she was young. She knows Dwarves very well.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Moon Knight Jones:<br>
Ask <font color="LEVEL">Neti</font> who lives about the stamp on the Armor Trade Contract. We have to find out who is selling equipments to Turek Orcs no matter what!<br>
</body></html>

View File

@@ -0,0 +1,8 @@
<html><body>Moon Knight Jones:<br>
You did it well. Thanks to you we have broken the plans of our enemies. In addition to that, Ol Mahums and Turek Orcs are enemies now. I could not even dream about this. All thanks to you. Sometimes one warrior can archieve more than a whole army... Looks like you are this warrior.<br>
You are going to be properly rewarded. That is the decision of Gludio Guards. This reward is our gratitude for all your efforts.<br>
You can pick one <font color="LEVEL">Armor Set</font>. Just one, so choose carefuly.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q11000_MoonKnight reward1">Choose Light Armor Set</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q11000_MoonKnight reward2">Choose Heavy Armor Set</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q11000_MoonKnight reward3">Choose Magic Armor Set</Button>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Amora:<br>
I placed the order a month ago but the goods were delivered just now... The delivery was a full week late. And the merchandise is not that good either.<br>
Of course, I have heard of Ol Mahum attacks but that is not an excuse. One should just get proper guards.<br>
But then again, Ol Mahum have good mad indeed, I will let it go for now, but that is the last time. I will pay for the goods with a check. Pass it over to <font color="LEVEL">Trader Damion</font>. And make sure that it does noy happen again.
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Amora:<br>
Pass the check you have got from me to <color font="LEVEL">Trader Damion</font> of the armor store in <font color="LEVEL">Gludin Villag</font>. And tell him to follow our agreement from now on.<br>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Amora:<br>
<color font="LEVEL">no items<br>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Ol Mahum Hierarch Gudz:<br>
Well, well... A stranger has stopped by in our domain. It must have been hard to get there Anwyay... Okay.<br>
Have you brought the armor? Ah, the gift from Turek Orcs! But you don't look like a trader... Who are you? You must be a Mercenary... Am I right?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q11000_MoonKnight 30941-02.html">Show the Iron Scale Guild Certificate</Button>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Ol Mahum Hierarch Gudz:<br>
Haha! Apparently, that Dwarf sent you? Haha, Dwarves are such cowards - thet cannot even deliver their goods on their own and assign Mercenaries to do that!<br>
Now when we have the armor from the Orcs my fearless warriors are invincible! We shall destroy our enemies and archieve glorious victory!<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q11000_MoonKnight 30941-03.html">Show the Turek Orc Order</Button>
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Ol Mahum Hierarch Gudz:<br>
...?<br>
What a turn-up!<br>
Those rascals dared to fool us! Filthy traitors! Those devious crooks!<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q11000_MoonKnight 30941-04.html">"You have been used!"</Button>
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Ol Mahum Hierarch Gudz:<br>
Grrrrr! Hear me, warriors! Our plans have changed! We were cheated and we must avenge ourselves! Get ready! Tomorrow we attack Turek Orc Barracks!<br>
By the way, you are a mercenary, right? Fight on our side and bring me the heads of <font color="LEVEL">Turek Orc Invaders</font>! Not less than <font color="LEVEL">10</font>! Hurry up!
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Ol Mahum Hierarch Gudz:<br>
Hurry up and bring me the heads of <font color="LEVEL">Turek Orc Invaders</font>! Not less than <font color="LEVEL">10</font>!
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Ol Mahum Hierarch Gudz:<br>
Oh, you have brought me 10 Orc Invader Heads! Wonderful!<br>
But that is just a start! Turek Orcs are going to pay for cheating us! Now my fearless warriors will put their new armor on and attack Turek Orc Barracks!<br>
And you go to Gludin and tell something to the people over there. Tell them that this time to great! Ol Mahums warriors are merciful and will not take their lives! But one day we shall raze Gludin to the ground, so be prepared!
</body></html>

View File

@@ -0,0 +1,4 @@
<html><body>Ol Mahum Hierarch Gudz:<br>
Our revenge has just started! Turek Orcks are going to pay for cheating us!<br>
And you go to Gludin and tell something to the people over there. Tell them that this time to great! Ol Mahums warriors are merciful and will not take their lives! But one day we shall raze Gludin to the ground, so be prepared!
</body></html>

View File

@@ -0,0 +1,459 @@
/*
* 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.Q11000_MoonKnight;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.enums.QuestSound;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
import com.l2jmobius.gameserver.model.events.EventType;
import com.l2jmobius.gameserver.model.events.ListenerRegisterType;
import com.l2jmobius.gameserver.model.events.annotations.RegisterEvent;
import com.l2jmobius.gameserver.model.events.annotations.RegisterType;
import com.l2jmobius.gameserver.model.events.impl.character.player.OnPlayerLevelChanged;
import com.l2jmobius.gameserver.model.events.impl.character.player.OnPlayerLogin;
import com.l2jmobius.gameserver.model.events.impl.character.player.OnPlayerPressTutorialMark;
import com.l2jmobius.gameserver.model.quest.Quest;
import com.l2jmobius.gameserver.model.quest.QuestState;
import com.l2jmobius.gameserver.network.serverpackets.TutorialShowHtml;
import com.l2jmobius.gameserver.network.serverpackets.TutorialShowQuestionMark;
/**
* Moon Knight (11000)
* @author Stayway
*/
public class Q11000_MoonKnight extends Quest
{
// NPC
private static final int JONES = 30939;
private static final int DAMION = 30208;
private static final int AMORA = 30940;
private static final int NETI = 30425;
private static final int ROLENTO = 30437;
private static final int GUDZ = 30941;
// Monsters
private static final int OL_MAHUM_THIEF = 27201;
private static final int TUREK_ORC_COMMANDER = 27202;
private static final int TUREK_ORC_INVADER = 27203;
// Rewards
private static final int MOON_HELMET = 7850;
private static final int MOON_ARMOR = 7851;
private static final int MOON_GAUNTLETS_HEAVY = 7852;
private static final int MOON_BOOTS_HEAVY = 7853;
private static final int MOON_SHELL = 7854;
private static final int MOON_LEATHER_GLOVES = 7855;
private static final int MOON_SHOES = 7856;
private static final int MOON_CAPE = 7857;
private static final int MOON_SILK_GLOVES = 7858;
private static final int MOON_SANDALS = 7859;
// Items
private static final int MOLD = 49555;
private static final int AMORA_RECEIPT = 49556;
private static final int ARMOR_TRADE_CONTRACT = 49557;
private static final int TUREK_ORC_ORDER = 49558;
private static final int TUREK_ORC_INVADER_HEAD = 49561;
private static final int ROLENTO_BAG = 49559;
private static final int IRON_SCALE_GUILD_CERTIFICATE = 49560;
// Misc
private static final int QUESTION_MARK_ID = 18;
private static final int MIN_LVL = 25;
private static final int MAX_LVL = 40;
public Q11000_MoonKnight()
{
super(11000);
addStartNpc(JONES);
addTalkId(JONES, DAMION, AMORA, NETI, ROLENTO, GUDZ);
addKillId(OL_MAHUM_THIEF, TUREK_ORC_COMMANDER, TUREK_ORC_INVADER);
addCondLevel(MIN_LVL, MAX_LVL, "no_level.html");
registerQuestItems(MOLD, AMORA_RECEIPT, ARMOR_TRADE_CONTRACT, TUREK_ORC_ORDER, TUREK_ORC_INVADER_HEAD);
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
final QuestState qs = getQuestState(player, false);
String htmltext = null;
if (qs != null)
{
switch (event)
{
case "30208-01.html":
case "30208-02.html":
case "30437-02.html":
case "30941-02.html":
case "30941-03.html":
{
htmltext = event;
break;
}
case "30939-02.htm":
{
qs.startQuest();
htmltext = event;
break;
}
case "30939-04.html":
{
if (qs.isCond(4))
{
qs.setCond(5);
htmltext = event;
}
break;
}
case "30939-06.html":
{
if (qs.isCond(5))
{
qs.setCond(6);
htmltext = event;
}
break;
}
case "30425-01.html":
{
if (qs.isCond(6))
{
qs.setCond(7);
htmltext = event;
}
break;
}
case "30437-03.html":
{
if (qs.isCond(7))
{
qs.setCond(8);
takeItems(player, ARMOR_TRADE_CONTRACT, 1);
giveItems(player, ROLENTO_BAG, 1);
giveItems(player, IRON_SCALE_GUILD_CERTIFICATE, 1);
htmltext = event;
}
break;
}
case "30941-04.html":
{
if (qs.isCond(8))
{
qs.setCond(9);
takeItems(player, TUREK_ORC_ORDER, 1);
takeItems(player, ROLENTO_BAG, 1);
takeItems(player, IRON_SCALE_GUILD_CERTIFICATE, 1);
htmltext = event;
}
break;
}
case "reward1":
{
if (qs.isCond(10))
{
giveItems(player, MOON_HELMET, 1);
giveItems(player, MOON_SHELL, 1);
giveItems(player, MOON_LEATHER_GLOVES, 1);
giveItems(player, MOON_SHOES, 1);
qs.exitQuest(false, true);
}
break;
}
case "reward2":
{
if (qs.isCond(10))
{
giveItems(player, MOON_HELMET, 1);
giveItems(player, MOON_ARMOR, 1);
giveItems(player, MOON_GAUNTLETS_HEAVY, 1);
giveItems(player, MOON_BOOTS_HEAVY, 1);
qs.exitQuest(false, true);
}
break;
}
case "reward3":
{
if (qs.isCond(10))
{
giveItems(player, MOON_HELMET, 1);
giveItems(player, MOON_CAPE, 1);
giveItems(player, MOON_SILK_GLOVES, 1);
giveItems(player, MOON_SANDALS, 1);
qs.exitQuest(false, true);
}
break;
}
}
}
return htmltext;
}
@Override
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = getRandomPartyMemberState(killer, -1, 3, npc);
if (qs != null)
{
switch (npc.getId())
{
case OL_MAHUM_THIEF:
{
if (qs.isCond(2))
{
giveItemRandomly(killer, npc, MOLD, 1, 10, 1, true);
}
break;
}
case TUREK_ORC_COMMANDER:
{
if (qs.isCond(5))
{
giveItemRandomly(killer, npc, ARMOR_TRADE_CONTRACT, 1, 1, 0.25, true);
giveItemRandomly(killer, npc, TUREK_ORC_ORDER, 1, 1, 0.25, true);
}
break;
}
case TUREK_ORC_INVADER:
{
if (qs.isCond(9))
{
giveItemRandomly(killer, npc, TUREK_ORC_INVADER_HEAD, 1, 10, 1, true);
}
break;
}
}
}
return super.onKill(npc, killer, isSummon);
}
@Override
public String onTalk(L2Npc npc, L2PcInstance talker)
{
final QuestState qs = getQuestState(talker, true);
String htmltext = getNoQuestMsg(talker);
switch (npc.getId())
{
case JONES:
{
if (qs.isCreated())
{
htmltext = "30939-01.htm";
}
else if (qs.isStarted())
{
switch (qs.getCond())
{
case 1:
case 2:
case 3:
{
htmltext = "30939-02a.html";
break;
}
case 4:
{
htmltext = "30939-03.html";
break;
}
case 5:
{
if ((getQuestItemsCount(talker, TUREK_ORC_ORDER) < 1) || (getQuestItemsCount(talker, ARMOR_TRADE_CONTRACT) < 1))
{
htmltext = "30939-04a.html";
}
else if ((getQuestItemsCount(talker, TUREK_ORC_ORDER) >= 1) && (getQuestItemsCount(talker, ARMOR_TRADE_CONTRACT) >= 1))
{
htmltext = "30939-05.html";
}
break;
}
case 6:
{
htmltext = "30939-06a.html";
break;
}
case 10:
{
htmltext = "30939-07.html";
break;
}
}
}
else
{
htmltext = getAlreadyCompletedMsg(talker);
}
break;
}
case DAMION:
{
switch (qs.getCond())
{
case 1:
{
htmltext = "30208-01.html";
qs.setCond(2);
break;
}
case 2:
{
htmltext = "30208-01.html";
break;
}
case 3:
{
if (hasQuestItems(talker, AMORA_RECEIPT))
{
takeItems(talker, AMORA_RECEIPT, 1);
htmltext = "30208-03.html";
qs.setCond(4);
}
break;
}
case 4:
{
htmltext = "30208-03a.html";
break;
}
}
break;
}
case AMORA:
{
if (qs.isCond(2) && (getQuestItemsCount(talker, MOLD) >= 10))
{
giveItems(talker, AMORA_RECEIPT, 1);
takeItems(talker, MOLD, 10);
qs.setCond(3);
htmltext = "30940-01.html";
}
else if (qs.isCond(3))
{
htmltext = "30940-01a.html";
}
break;
}
case NETI:
{
if (qs.isCond(6) && hasQuestItems(talker, TUREK_ORC_ORDER, ARMOR_TRADE_CONTRACT))
{
htmltext = "30425-01.html";
qs.setCond(7);
}
else if (qs.isCond(7))
{
htmltext = "30425-01a.html"; // Need retail html
}
break;
}
case ROLENTO:
{
if (qs.isCond(7) && hasQuestItems(talker, TUREK_ORC_ORDER, ARMOR_TRADE_CONTRACT))
{
htmltext = "30437-01.html";
}
else if (qs.isCond(8))
{
htmltext = "30437-03a.html";
}
break;
}
case GUDZ:
{
switch (qs.getCond())
{
case 8:
{
if (hasQuestItems(talker, TUREK_ORC_ORDER, ROLENTO_BAG, IRON_SCALE_GUILD_CERTIFICATE))
{
htmltext = "30941-01.html";
}
break;
}
case 9:
{
if (getQuestItemsCount(talker, TUREK_ORC_INVADER_HEAD) >= 10)
{
htmltext = "30941-05.html";
takeItems(talker, TUREK_ORC_INVADER_HEAD, 10);
qs.setCond(10);
}
else
{
htmltext = "30941-04a.html";
}
break;
}
case 10:
{
htmltext = "30941-05a.html";
break;
}
}
break;
}
}
return htmltext;
}
@RegisterEvent(EventType.ON_PLAYER_LEVEL_CHANGED)
@RegisterType(ListenerRegisterType.GLOBAL_PLAYERS)
public void OnPlayerLevelChanged(OnPlayerLevelChanged event)
{
if (Config.DISABLE_TUTORIAL)
{
return;
}
final L2PcInstance player = event.getActiveChar();
final QuestState qs = getQuestState(player, false);
if ((qs == null) && (event.getOldLevel() < event.getNewLevel()) && canStartQuest(player))
{
player.sendPacket(new TutorialShowQuestionMark(QUESTION_MARK_ID, 1));
playSound(player, QuestSound.ITEMSOUND_QUEST_TUTORIAL);
}
}
@RegisterEvent(EventType.ON_PLAYER_LOGIN)
@RegisterType(ListenerRegisterType.GLOBAL_PLAYERS)
public void OnPlayerLogin(OnPlayerLogin event)
{
if (Config.DISABLE_TUTORIAL)
{
return;
}
final L2PcInstance player = event.getActiveChar();
final QuestState qs = getQuestState(player, false);
if ((qs == null) && canStartQuest(player))
{
player.sendPacket(new TutorialShowQuestionMark(QUESTION_MARK_ID, 1));
playSound(player, QuestSound.ITEMSOUND_QUEST_TUTORIAL);
}
}
@RegisterEvent(EventType.ON_PLAYER_PRESS_TUTORIAL_MARK)
@RegisterType(ListenerRegisterType.GLOBAL_PLAYERS)
public void onPlayerPressTutorialMark(OnPlayerPressTutorialMark event)
{
final L2PcInstance player = event.getActiveChar();
if ((event.getMarkId() == QUESTION_MARK_ID) && canStartQuest(player))
{
final String html = getHtm(player.getHtmlPrefix(), "popup.html");
player.sendPacket(new TutorialShowHtml(html));
}
}
}

View File

@@ -0,0 +1,5 @@
<html><body>Moon Knight Jones:<br>
You cannot imagine how much trouble are Ol Mahums causing lately. Just a few days ago they have attacked caravan coming to Gludio and took a good loot. Traders of Aden asked Gludio guards for help after this.<br>
But the guards cannot spare any warriors to guard the caravans because of all the bandits which are always waiting for the right moment to attack the city. Traders discussed the matter a lot but could not think of anything. So they have decided to use mercenaries to<font color="LEVEL"> deal with Ol Mahums</font>. It is a shame that we have to ask outsiders to deal with such an important problem...<br>
(Available to characters of level 25 or highter.)
</body></html>

View File

@@ -0,0 +1,4 @@
[Quest Information]<br>
You have reached level 25! The word is <font color="LEVEL">Moon Knight Jones</font> in <font color="LEVEL">Gludin Village</font> is looking for people who could help him bring peace and order to Gludin. If you help him you will receive a </font color="LEVEL">Set of Armor</font>, which will be really useful in your adventures.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h tutorial_close">Close the window</Button>
</body></html>

View File

@@ -82,7 +82,6 @@ import quests.Q00165_ShilensHunt.Q00165_ShilensHunt;
import quests.Q00166_MassOfDarkness.Q00166_MassOfDarkness;
import quests.Q00167_DwarvenKinship.Q00167_DwarvenKinship;
import quests.Q00168_DeliverSupplies.Q00168_DeliverSupplies;
import quests.Q00169_OffspringOfNightmares.Q00169_OffspringOfNightmares;
import quests.Q00170_DangerousSeduction.Q00170_DangerousSeduction;
import quests.Q00211_TrialOfTheChallenger.Q00211_TrialOfTheChallenger;
import quests.Q00212_TrialOfDuty.Q00212_TrialOfDuty;
@@ -179,6 +178,7 @@ import quests.Q00416_PathOfTheOrcShaman.Q00416_PathOfTheOrcShaman;
import quests.Q00417_PathOfTheScavenger.Q00417_PathOfTheScavenger;
import quests.Q00418_PathOfTheArtisan.Q00418_PathOfTheArtisan;
import quests.Q00662_AGameOfCards.Q00662_AGameOfCards;
import quests.Q11000_MoonKnight.Q11000_MoonKnight;
/**
* @author NosBit
@@ -252,7 +252,6 @@ public class QuestMasterHandler
Q00166_MassOfDarkness.class,
Q00167_DwarvenKinship.class,
Q00168_DeliverSupplies.class,
Q00169_OffspringOfNightmares.class,
Q00170_DangerousSeduction.class,
Q00211_TrialOfTheChallenger.class,
Q00212_TrialOfDuty.class,
@@ -349,6 +348,7 @@ public class QuestMasterHandler
Q00417_PathOfTheScavenger.class,
Q00418_PathOfTheArtisan.class,
Q00662_AGameOfCards.class,
Q11000_MoonKnight.class,
};
public static void main(String[] args)