Quests 10415, 10766 and 10791.
Contributed by gigilo1968.
This commit is contained in:
@@ -100,7 +100,6 @@
|
||||
10380 The Executioner's Execution
|
||||
10388 Conspiracy Behind Doors
|
||||
10389 The Voice of Authority
|
||||
10415 Kekropus' Letter: With Wisdom (7/9)
|
||||
10422 Assassination of the Varka Silenos Chief
|
||||
10424 Kekropus' Letter: Belos' Whereabouts (8/9)
|
||||
10425 The Ketra Orc Supporters
|
||||
@@ -155,9 +154,7 @@
|
||||
10748 Mysterious Suggestion - 1
|
||||
10749 Mysterious Suggestion - 2
|
||||
10753 Winds of Fate: Choices
|
||||
10766 A New Craft
|
||||
10767 A Whole New Level of Alchemy
|
||||
10791 The Man of Mystery
|
||||
10794 Investigate the Forest
|
||||
10796 The Eye that Defied the Gods
|
||||
10797 Crossing Fate
|
||||
|
4
trunk/dist/game/data/scripts/quests/Q10415_KekropusLetterWithWisdom/31292-01.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10415_KekropusLetterWithWisdom/31292-01.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Captain Andrei:<br>
|
||||
Nice to meet you. <font color=LEVEL>Kekropus</font> promised me that he would send me someone trustworthy. I guess he kept his word. You probably know what is going on after reading Kekropus letter, but let me tell you more details.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10415_KekropusLetterWithWisdom 31292-02.html">Got it</button>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10415_KekropusLetterWithWisdom/31292-02.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10415_KekropusLetterWithWisdom/31292-02.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Captain Andrei:<br>
|
||||
Orc Trackers were chasing after a suspicious group when they split up toward the Wall of Argos. The Orc Trackers also divided into two groups and chased after them separately. But now they are asking for help. I think both of the groups have run into problems.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10415_KekropusLetterWithWisdom 31292-03.html">So where should I go?</button>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10415_KekropusLetterWithWisdom/31292-03.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10415_KekropusLetterWithWisdom/31292-03.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Captain Andrei:<br>
|
||||
You're a brave one, aren't you? Go to the <font color=LEVEL>Wall of Argos</font> and meet <font color=LEVEL>Janitt</font>
|
||||
Get the details from him and help him with whatever he needs. I look forward to hearing the result.
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10415_KekropusLetterWithWisdom/31292-04.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10415_KekropusLetterWithWisdom/31292-04.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Captain Andrei:<br>
|
||||
Hurry to the <font color="LEVEL">Wall of Argos</font> and help the <font color="LEVEL">Giant's Minion Janitt</font> there.<br>
|
||||
To get there quickly, use the <font color="LEVEL">Scroll of Escape: Wall of Argos</font> I gave you. You could also ask a Gatekeeper for help..
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10415_KekropusLetterWithWisdom/33851-01.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10415_KekropusLetterWithWisdom/33851-01.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Giant's Minion Janitt:<br>
|
||||
Me? I'm Janitt. The Giant's Minion. Since Shilen and her followees ruined the world, I have been chasing them. For revenge!<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10415_KekropusLetterWithWisdom 33851-02.html">You look injured</button>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10415_KekropusLetterWithWisdom/33851-02.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10415_KekropusLetterWithWisdom/33851-02.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Giant's Minion Janitt:<br>
|
||||
It was a trap! But no more. The Suspicious Vagabond will never harm another. Not if you go after him<br>
|
||||
<font color=LEVEL>- Note: You can develop yourself through quests and hunting at the hunting ground on Wall of Argos. You can get the next item, Kekropus' Letter, at Lv. 76.</font>
|
||||
</body></html>
|
@@ -0,0 +1,151 @@
|
||||
/*
|
||||
* 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.Q10415_KekropusLetterWithWisdom;
|
||||
|
||||
import com.l2jmobius.gameserver.model.Location;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jmobius.gameserver.model.quest.QuestState;
|
||||
import com.l2jmobius.gameserver.network.NpcStringId;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.ExShowScreenMessage;
|
||||
|
||||
import quests.LetterQuest;
|
||||
|
||||
/**
|
||||
* Kekropus Letter: With Wisdom (10415)
|
||||
* @URL https://l2wiki.com/Kekropus%27_Letter:_With_Wisdom
|
||||
* @author Gigi
|
||||
*/
|
||||
public class Q10415_KekropusLetterWithWisdom extends LetterQuest
|
||||
{
|
||||
// NPCs
|
||||
private static final int ANDREI = 31292;
|
||||
private static final int JANITT = 33851;
|
||||
private static final int INVISIBLE_NPC = 19543;
|
||||
// Items
|
||||
private static final int SOE_WALL_OF_ARGOS = 37032; // Scroll of Escape: Wall of Argos
|
||||
private static final int SOE_TOWN_OF_GODDARD = 37119; // Scroll of Escape: Town of Goddard
|
||||
private static final int EAA = 730; // Scroll: Enchant Armor (A-grade)
|
||||
// Requirements
|
||||
private static final int MIN_LEVEL = 70;
|
||||
private static final int MAX_LEVEL = 75;
|
||||
// Teleport
|
||||
private static final Location TELEPORT_LOC = new Location(147491, -56633, -2776);
|
||||
|
||||
public Q10415_KekropusLetterWithWisdom()
|
||||
{
|
||||
super(10415);
|
||||
addTalkId(ANDREI, JANITT);
|
||||
addSeeCreatureId(INVISIBLE_NPC);
|
||||
|
||||
setIsErtheiaQuest(false);
|
||||
setLevel(MIN_LEVEL, MAX_LEVEL);
|
||||
setStartQuestSound("Npcdialog1.kekrops_quest_8");
|
||||
setStartLocation(SOE_TOWN_OF_GODDARD, TELEPORT_LOC);
|
||||
registerQuestItems(SOE_TOWN_OF_GODDARD, SOE_WALL_OF_ARGOS);
|
||||
}
|
||||
|
||||
@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 "31292-02.html":
|
||||
{
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "31292-03.html":
|
||||
{
|
||||
if (qs.isCond(1))
|
||||
{
|
||||
takeItems(player, SOE_TOWN_OF_GODDARD, -1);
|
||||
giveItems(player, SOE_WALL_OF_ARGOS, 1);
|
||||
qs.setCond(2, true);
|
||||
htmltext = event;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "33851-02.html":
|
||||
{
|
||||
if (qs.isCond(2))
|
||||
{
|
||||
qs.exitQuest(false, true);
|
||||
giveItems(player, EAA, 5);
|
||||
giveStoryQuestReward(player, 123);
|
||||
if (player.getLevel() >= MIN_LEVEL)
|
||||
{
|
||||
addExpAndSp(player, 1_088_640, 261);
|
||||
}
|
||||
showOnScreenMsg(player, NpcStringId.GROW_STRONGER_HERE_UNTIL_YOU_RECEIVE_THE_NEXT_LETTER_FROM_KEKROPUS_AT_LV_76, ExShowScreenMessage.TOP_CENTER, 6000);
|
||||
htmltext = event;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final QuestState qs = getQuestState(player, true);
|
||||
String htmltext = getNoQuestMsg(player);
|
||||
if (qs.isStarted())
|
||||
{
|
||||
if ((npc.getId() == ANDREI) && qs.isCond(1))
|
||||
{
|
||||
htmltext = "31292-01.html";
|
||||
}
|
||||
else if (qs.isCond(2))
|
||||
{
|
||||
htmltext = npc.getId() == ANDREI ? "31292-04.html" : "33851-01.html";
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onSeeCreature(L2Npc npc, L2Character creature, boolean isSummon)
|
||||
{
|
||||
if (creature.isPlayer())
|
||||
{
|
||||
final L2PcInstance player = creature.getActingPlayer();
|
||||
final QuestState st = getQuestState(player, false);
|
||||
|
||||
if ((st != null) && st.isCond(2))
|
||||
{
|
||||
showOnScreenMsg(player, NpcStringId.WALL_OF_ARGOS_IS_A_GOOD_HUNTING_ZONE_FOR_LV_70_OR_ABOVE, ExShowScreenMessage.TOP_CENTER, 6000);
|
||||
}
|
||||
}
|
||||
return super.onSeeCreature(npc, creature, isSummon);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canShowTutorialMark(L2PcInstance player)
|
||||
{
|
||||
return player.isMageClass();
|
||||
}
|
||||
}
|
6
trunk/dist/game/data/scripts/quests/Q10415_KekropusLetterWithWisdom/popup.html
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q10415_KekropusLetterWithWisdom/popup.html
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><title>Kekropus' Letter</title></head><body>Kekropus' Letter:<br>
|
||||
A group of suspicious people were seen in the <font color=LEVEL>Wall of Argos</font>, a part of the Goddard territory. Go to <font color=LEVEL>Captain Andrei</font> in the <font color=LEVEL>Town of Goddard</font> for details.<br>
|
||||
(A <font color=LEVEL>Scroll of Escape</font> is enclosed. If you want to go now, use it to travel immediately.)<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h %teleport%">"I'll go right away with this scroll."</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h tutorial_close">Close</Button>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q10766_ANewCraft/33942-01.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q10766_ANewCraft/33942-01.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Magister Ayanthe:<br>
|
||||
Now that you've unlocked your ability, you should get ready to take the leap into the world. Speaking of which, I'd like to advise you to learn a skill that will help you.<br>
|
||||
We call it <font color="LEVEL">Alchemy</font>.<br>
|
||||
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Q10766_ANewCraft 33942-02.htm">"What's Alchemy?"</Button>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q10766_ANewCraft/33942-02.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q10766_ANewCraft/33942-02.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Magister Ayanthe:<br>
|
||||
While we did not need means of wealth for our lives, the Material Realm requires <font color="LEVEL">Adena</font> to live. That's why we developed a new study where we use existing materials to create new valuables: Alchemy.<br>
|
||||
Using this skill will help you obtain what you need in the Material Realm. <br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10766_ANewCraft 33942-03.htm">"How do I learn this?"</Button>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q10766_ANewCraft/33942-03.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q10766_ANewCraft/33942-03.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Magister Ayanthe:<br>
|
||||
Interested? Good. You will need that to learn Alchemy.<br>
|
||||
Unfortunately, there's nothing more I can tell you about Alchemy. In Faeron Village, there is an Ertheia who invented and organized Alchemy. You can go to her to learn.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10766_ANewCraft 33942-04.html">"Okay."</Button>
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q10766_ANewCraft/33942-04.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q10766_ANewCraft/33942-04.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Magister Ayanthe:<br>
|
||||
Go to <font color="LEVEL">Alchemist Zephyra</font>, one of the twin sisters who invented Alchemy after Faeron Village came to the Material Realm. Tell her that I sent you, and she will teach you the basics.
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q10766_ANewCraft/33942-05.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q10766_ANewCraft/33942-05.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Magister Ayanthe:<br>
|
||||
Go to <font color="LEVEL">Alchemist Zephyra</font>. Say that I have sent you, and she will teach you the basics of Alchemy.
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q10766_ANewCraft/33943-01.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q10766_ANewCraft/33943-01.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Master Katalin:<br>
|
||||
Now that you've unlocked your ability, you should get ready to take the leap into the world. Speaking of which, I'd like to advise you to learn a skill that will help you.<br>
|
||||
We call it <font color="LEVEL">Alchemy</font>.<br>
|
||||
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Q10766_ANewCraft 33943-02.htm">"What's Alchemy?"</Button>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q10766_ANewCraft/33943-02.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q10766_ANewCraft/33943-02.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Master Katalin:<br>
|
||||
While we did not need means of wealth for our lives, the Material Realm requires <font color="LEVEL">Adena</font> to live. That's why we developed a new study where we use existing materials to create new valuables: Alchemy.<br>
|
||||
Using this skill will help you obtain what you need in the Material Realm. <br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10766_ANewCraft 33943-03.htm">"How do I learn this?"</Button>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q10766_ANewCraft/33943-03.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q10766_ANewCraft/33943-03.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Master Katalin:<br>
|
||||
Interested? Good. You will need that to learn Alchemy.<br>
|
||||
Unfortunately, there's nothing more I can tell you about Alchemy. In Faeron Village, there is an Ertheia who invented and organized Alchemy. You can go to her to learn.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10766_ANewCraft 33943-04.html">"Okay."</Button>
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q10766_ANewCraft/33943-04.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q10766_ANewCraft/33943-04.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Master Katalin:<br>
|
||||
Go to <font color="LEVEL">Alchemist Zephyra</font>, one of the twin sisters who invented Alchemy after Faeron Village came to the Material Realm. Tell her that I sent you, and she will teach you the basics.
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q10766_ANewCraft/33943-05.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q10766_ANewCraft/33943-05.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Master Katalin:<br>
|
||||
Go to <font color="LEVEL">Alchemist Zephyra</font>. Say that I have sent you, and she will teach you the basics of Alchemy.
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10766_ANewCraft/33978-01.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10766_ANewCraft/33978-01.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Zephyra the Alchemist:<br>
|
||||
An Ertheia yet unknown to me. You must be new to the Material Realm. How may I help you?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10766_ANewCraft 33978-02.html">"I'm here to learn Alchemy."</Button>
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q10766_ANewCraft/33978-02.html
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q10766_ANewCraft/33978-02.html
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Zephyra the Alchemist:<br>
|
||||
Oh! Learn about <font color="LEVEL">Alchemy</font>? Fine, let me explain.<br>
|
||||
Alchemy is divided into <font color="LEVEL">Combination</font>, which makes <font color="LEVEL">Air Stones</font>, and <font color="LEVEL">Transmutation</font>, which uses <font color="LEVEL">Air Stones or Material Realm items</font> to make <font color="LEVEL">Potions, Enchant Scrolls, Life Stones, and Dyes</font>.<br>
|
||||
You must have the power to control the wind spirits as a child of Sayha, but the amount of control needed for Alchemy calls for an <font color="LEVEL">Alchemy Cube</font>.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10766_ANewCraft 33978-03.html">"Interesting. Go on."</Button>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10766_ANewCraft/33978-03.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10766_ANewCraft/33978-03.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Zephyra the Alchemist:<br>
|
||||
The Alchemy Cube is made of compressed wind energy. You may grind the items with it to make Air Stones. <br>
|
||||
You cannot understand Alchemy through words. You've gotten this far, which means that you can use the Alchemy Cube. Let's try "Combination" to actually make something. I will allow you time to prepare.
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10766_ANewCraft/33978-04.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10766_ANewCraft/33978-04.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Zephyra the Alchemist:<br>
|
||||
Are you ready now? Let's try to make something with Alchemy. Try to remember the instructions. Bring me the transmuted item and I will trade it for something more valuable. You must make it.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10766_ANewCraft 33978-05.html">"I want to make some money."</Button>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q10766_ANewCraft/33978-05.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q10766_ANewCraft/33978-05.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Zephyra the Alchemist:<br>
|
||||
Now try making <font color="LEVEL">1 Air Stone</font> and <font color="LEVEL">1 Windy Healing Potion</font>.<br>
|
||||
Use <font color="LEVEL">Alchemy - Combination</font> to use an <font color="LEVEL">Alchemy Cube</font>. You can create <font color="LEVEL">Air Stones</font> with it. You can check the number of items you can get beforehand by inserting items in the Alchemy Cube. <font color="LEVEL">The more items you have in the cube</font>, the more items you can get.<br>
|
||||
<font color="LEVEL">Windy Healing Potions</font> can be made via <font color="LEVEL">Alchemy - Transmutation</font>. You can see the list of items you can make by clicking on Transmutation. Go to <font color="LEVEL">Pelu the Grocer</font> for the items you need. Remember that you can only create one <font color="LEVEL">when you have all the required items</font>.
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10766_ANewCraft/33978-06.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10766_ANewCraft/33978-06.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Zephyra the Alchemist:<br>
|
||||
Did you make it? Let me see.
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10766_ANewCraft 33978-07.html">"Here it is."</Button>
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q10766_ANewCraft/33978-07.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q10766_ANewCraft/33978-07.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Zephyra the Alchemist:<br>
|
||||
Congratulations on understanding the basics of Alchemy. You can make the items you need in combat yourself with this skill. Or you could make money to buy those. I wish you luck then.
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q10766_ANewCraft/33978-08.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q10766_ANewCraft/33978-08.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Zephyra the Alchemist:<br>
|
||||
Now try making <font color="LEVEL">1 Air Stone</font> and <font color="LEVEL">1 Windy Healing Potion</font>.<br>
|
||||
Use <font color="LEVEL">Alchemy - Combination</font> to use an <font color="LEVEL">Alchemy Cube</font>. You can create <font color="LEVEL">Air Stones</font> with it. You can check the number of items you can get beforehand by inserting items in the Alchemy Cube. <font color="LEVEL">The more items you have in the cube</font>, the more items you can get.<br>
|
||||
<font color="LEVEL">Windy Healing Potions</font> can be made via <font color="LEVEL">Alchemy - Transmutation</font>. You can see the list of items you can make by clicking on Transmutation. Go to <font color="LEVEL">Pelu the Grocer</font> for the items you need. Remember that you can only create one <font color="LEVEL">when you have all the required items</font>.
|
||||
</body></html>
|
211
trunk/dist/game/data/scripts/quests/Q10766_ANewCraft/Q10766_ANewCraft.java
vendored
Normal file
211
trunk/dist/game/data/scripts/quests/Q10766_ANewCraft/Q10766_ANewCraft.java
vendored
Normal file
@@ -0,0 +1,211 @@
|
||||
/*
|
||||
* 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.Q10766_ANewCraft;
|
||||
|
||||
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.events.EventType;
|
||||
import com.l2jmobius.gameserver.model.events.ListenerRegisterType;
|
||||
import com.l2jmobius.gameserver.model.events.annotations.Id;
|
||||
import com.l2jmobius.gameserver.model.events.annotations.RegisterEvent;
|
||||
import com.l2jmobius.gameserver.model.events.annotations.RegisterType;
|
||||
import com.l2jmobius.gameserver.model.events.impl.item.OnItemCreate;
|
||||
import com.l2jmobius.gameserver.model.holders.ItemHolder;
|
||||
import com.l2jmobius.gameserver.model.quest.Quest;
|
||||
import com.l2jmobius.gameserver.model.quest.QuestState;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.TutorialShowHtml;
|
||||
|
||||
/**
|
||||
* A New Craft (10766)
|
||||
* @URL https://l2wiki.com/A_New_Craft
|
||||
* @author Gigi
|
||||
*/
|
||||
public class Q10766_ANewCraft extends Quest
|
||||
{
|
||||
// NPCs
|
||||
private static final int KATALIN = 33943;
|
||||
private static final int AYANTHE = 33942;
|
||||
private static final int ZEPHYRA = 33978;
|
||||
// Items
|
||||
private static final ItemHolder WINDY_HEALING_POTION = new ItemHolder(39466, 50);
|
||||
private static final ItemHolder WINDY_QUICK_HEALING_POTION = new ItemHolder(39471, 50);
|
||||
private static final int AIR_STONE = 39461;
|
||||
private static final int WINDY_HEALING_POTION_1 = 39466;
|
||||
// Misc
|
||||
private static final int MIN_LEVEL = 40;
|
||||
// Reward
|
||||
private static final int EXP_REWARD = 168000;
|
||||
private static final int SP_REWARD = 40;
|
||||
|
||||
public Q10766_ANewCraft()
|
||||
{
|
||||
super(10766);
|
||||
addStartNpc(KATALIN, AYANTHE);
|
||||
addTalkId(KATALIN, AYANTHE, ZEPHYRA);
|
||||
registerQuestItems(AIR_STONE, WINDY_HEALING_POTION_1);
|
||||
addCondMinLevel(MIN_LEVEL, "noLevel.html");
|
||||
addCondRace(Race.ERTHEIA, "noErtheia.html");
|
||||
}
|
||||
|
||||
@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 "33943-02.htm":
|
||||
case "33943-03.htm":
|
||||
case "33942-02.htm":
|
||||
case "33942-03.htm":
|
||||
case "33978-02.html":
|
||||
{
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "33943-04.html":
|
||||
{
|
||||
qs.startQuest();
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "33942-04.html":
|
||||
{
|
||||
qs.startQuest();
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "33978-03.html":
|
||||
{
|
||||
qs.setCond(2, true);
|
||||
player.sendPacket(new TutorialShowHtml(npc.getObjectId(), "..\\L2Text\\QT_026_alchemy_01.htm", TutorialShowHtml.LARGE_WINDOW));
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "33978-05.html":
|
||||
{
|
||||
qs.setCond(3, true);
|
||||
qs.set(Integer.toString(AIR_STONE), 0);
|
||||
qs.set(Integer.toString(WINDY_HEALING_POTION_1), 0);
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "33978-07.html":
|
||||
{
|
||||
takeItems(player, AIR_STONE, 1);
|
||||
takeItems(player, WINDY_HEALING_POTION_1, 1);
|
||||
giveItems(player, WINDY_HEALING_POTION);
|
||||
giveItems(player, WINDY_QUICK_HEALING_POTION);
|
||||
addExpAndSp(player, EXP_REWARD, SP_REWARD);
|
||||
qs.exitQuest(false, true);
|
||||
htmltext = event;
|
||||
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 KATALIN:
|
||||
{
|
||||
if (qs.isCreated() && !player.isMageClass())
|
||||
{
|
||||
htmltext = "33943-01.htm";
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "noFighter.html";
|
||||
}
|
||||
if (qs.getCond() > 0)
|
||||
{
|
||||
htmltext = "33943-05.html";
|
||||
}
|
||||
else if (qs.isCompleted())
|
||||
{
|
||||
htmltext = getAlreadyCompletedMsg(player);
|
||||
}
|
||||
break;
|
||||
}
|
||||
case AYANTHE:
|
||||
{
|
||||
if (qs.isCreated() && player.isMageClass())
|
||||
{
|
||||
htmltext = "33942-01.htm";
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "noMage.html";
|
||||
}
|
||||
if (qs.getCond() > 0)
|
||||
{
|
||||
htmltext = "33942-05.html";
|
||||
}
|
||||
else if (qs.isCompleted())
|
||||
{
|
||||
htmltext = getAlreadyCompletedMsg(player);
|
||||
}
|
||||
break;
|
||||
}
|
||||
case ZEPHYRA:
|
||||
{
|
||||
if (qs.isCond(1))
|
||||
{
|
||||
htmltext = "33978-01.html";
|
||||
}
|
||||
if (qs.isCond(2))
|
||||
{
|
||||
htmltext = "33978-04.html";
|
||||
}
|
||||
if (qs.isCond(3) && ((getQuestItemsCount(player, AIR_STONE) == 0) || (getQuestItemsCount(player, WINDY_HEALING_POTION_1) == 1)))
|
||||
{
|
||||
htmltext = "33978-08.html";
|
||||
}
|
||||
if (qs.isCond(4))
|
||||
{
|
||||
htmltext = "33978-06.html";
|
||||
}
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@RegisterEvent(EventType.ON_ITEM_CREATE)
|
||||
@RegisterType(ListenerRegisterType.ITEM)
|
||||
@Id(AIR_STONE)
|
||||
@Id(WINDY_HEALING_POTION_1)
|
||||
public void onItemCreate(OnItemCreate event)
|
||||
{
|
||||
final L2PcInstance player = event.getActiveChar();
|
||||
final QuestState qs = getQuestState(player, false);
|
||||
if ((qs != null) && (qs.isCond(3)) && (getQuestItemsCount(qs.getPlayer(), AIR_STONE) >= 1) && (getQuestItemsCount(qs.getPlayer(), WINDY_HEALING_POTION_1) >= 1))
|
||||
{
|
||||
qs.setCond(4, true);
|
||||
}
|
||||
}
|
||||
}
|
3
trunk/dist/game/data/scripts/quests/Q10766_ANewCraft/noErtheia.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q10766_ANewCraft/noErtheia.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Ivory Tower Wizard Rombel:<br>
|
||||
This quest is only for Ertheia class.
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q10766_ANewCraft/noFighter.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q10766_ANewCraft/noFighter.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Master Katalin:<br>
|
||||
This quest available only Fighter class Entheria race character
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10766_ANewCraft/noLevel.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10766_ANewCraft/noLevel.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body><br>
|
||||
This mission will be too hard for you. Don't be disappointed. Once you have grown a little more, please come back<br>
|
||||
(You must be level 40 or above to start this quest.)
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q10766_ANewCraft/noMage.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q10766_ANewCraft/noMage.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Magister Ayanthe:<br>
|
||||
This quest available only Mage class Entheria race character
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10791_TheManOfMystery/33847-01.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10791_TheManOfMystery/33847-01.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Tracker Dokara:<br>
|
||||
Wait! I thought if we felled that many Stakatos it'd be enough, but there's more of them. We'll need to find a better solution to this.<br>
|
||||
<Button ALIGN=LEFT ICON="Normal" action="bypass -h Quest Q10791_TheManOfMystery 33847-02.htm">"What do you want me to do?"</Button>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q10791_TheManOfMystery/33847-02.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q10791_TheManOfMystery/33847-02.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Tracker Dokara:<br>
|
||||
I thought for sure that we'd gotten rid of them all...Were you really as thorough as you claim?<br>
|
||||
No, someone recommended by Innocentin wouldn't be so careless. Did you happen to discover anything strange while fighting the Stakatos?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10791_TheManOfMystery 33847-03.htm">"I did hear about a Suspicious Cocoon."</Button>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q10791_TheManOfMystery/33847-03.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q10791_TheManOfMystery/33847-03.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Tracker Dokara:<br>
|
||||
A cocoon? No!<br>Are all these Stakatos being born out of cocoons? Wait, it sounds plausible. This means we need to get rid of more than just the Stakatos!<br>
|
||||
I need your help again, in that case.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10791_TheManOfMystery 33847-04.htm">"Don't tell me..."</Button>
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10791_TheManOfMystery/33847-04.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10791_TheManOfMystery/33847-04.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Tracker Dokara:<br>
|
||||
I'm guessing that these Suspicious Cocoons are the real problem. If we got rid of them, we'd be rid of the Stakato problem as well.<br>
|
||||
Go get rid of 5 <font color="LEVEL">Suspicious Cocoons.</font>That shouldn't be too difficult.
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10791_TheManOfMystery/33847-05.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10791_TheManOfMystery/33847-05.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Tracker Dokara:<br>
|
||||
You're a few monsters short.<br1>
|
||||
You weren't trying to fast talk me like everyone else, were you?
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10791_TheManOfMystery/33847-06.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10791_TheManOfMystery/33847-06.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Tracker Dokara:<br>
|
||||
I think that takes care of it. Did anything happen while you were getting rid of those Suspicious Cocoons?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10791_TheManOfMystery 33847-07.html">"Kinda..."</Button>
|
||||
</body></html>
|
5
trunk/dist/game/data/scripts/quests/Q10791_TheManOfMystery/33847-07.html
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q10791_TheManOfMystery/33847-07.html
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
html><body>Tracker Dokara:<br>
|
||||
So, this Kain has appeared and helped you again? Pa'agrio always shows the way to outstanding warriors.<br>
|
||||
Anyway, we know that those Suspicious Cocoons are the root of our problems, and you've gotten rid of a high number of them, so there's no longer a need to worry. Of course, this Kain fellow helped you, but to me, the outcome is all the same.<br>
|
||||
Thank you for your help.
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10791_TheManOfMystery/33993-01.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10791_TheManOfMystery/33993-01.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Kain:<br>
|
||||
You aren't strong enough to be out here alone.<br>
|
||||
I stopped by because someone was having trouble with Stakato. How funny it's another Ertheia.<br>
|
||||
</body></html>
|
6
trunk/dist/game/data/scripts/quests/Q10791_TheManOfMystery/33993.html
vendored
Normal file
6
trunk/dist/game/data/scripts/quests/Q10791_TheManOfMystery/33993.html
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html><body>Kain:<br>
|
||||
What are Stakatos doing here?<br>
|
||||
Huh? You're Ertheia. Faeron must be stable enough for you to leave town, eh?<br>
|
||||
But what are you doing here? Did Stakatos attack you?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10791_TheManOfMystery thank">"Yes. Thank you for helping me."</Button>
|
||||
</body></html>
|
222
trunk/dist/game/data/scripts/quests/Q10791_TheManOfMystery/Q10791_TheManOfMystery.java
vendored
Normal file
222
trunk/dist/game/data/scripts/quests/Q10791_TheManOfMystery/Q10791_TheManOfMystery.java
vendored
Normal file
@@ -0,0 +1,222 @@
|
||||
/*
|
||||
* 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.Q10791_TheManOfMystery;
|
||||
|
||||
import com.l2jmobius.gameserver.enums.QuestSound;
|
||||
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.actor.instance.L2QuestGuardInstance;
|
||||
import com.l2jmobius.gameserver.model.base.ClassId;
|
||||
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.serverpackets.ExQuestNpcLogList;
|
||||
|
||||
import quests.Q10790_AMercenaryHelper.Q10790_AMercenaryHelper;
|
||||
|
||||
/**
|
||||
* The Man Of Mystery (10791)
|
||||
* @URL https://l2wiki.com/The_Man_of_Mystery
|
||||
* @author Gigi
|
||||
*/
|
||||
public class Q10791_TheManOfMystery extends Quest
|
||||
{
|
||||
// NPCs
|
||||
private static final int DOKARA = 33847;
|
||||
private static final int KAIN_VAN_HALTER = 33993;
|
||||
// Monsters
|
||||
private static final int SUSPICIOUS_COCOON = 27536;
|
||||
private static final int SUSPICIOUS_COCOON1 = 27537;
|
||||
private static final int SUSPICIOUS_COCOON2 = 27538;
|
||||
private static final int NEEDLE_STAKATO_CAPTAIN = 27542;
|
||||
private static final int NEEDLE_STAKATO = 27543;
|
||||
// Items
|
||||
private static final int EAA = 730;
|
||||
// Misc
|
||||
private static final int MIN_LEVEL = 65;
|
||||
private static final int MAX_LEVEL = 70;
|
||||
|
||||
public Q10791_TheManOfMystery()
|
||||
{
|
||||
super(10791);
|
||||
addStartNpc(DOKARA);
|
||||
addTalkId(DOKARA, KAIN_VAN_HALTER);
|
||||
addFirstTalkId(KAIN_VAN_HALTER);
|
||||
addKillId(SUSPICIOUS_COCOON, SUSPICIOUS_COCOON1, SUSPICIOUS_COCOON2, NEEDLE_STAKATO_CAPTAIN);
|
||||
addAttackId(NEEDLE_STAKATO_CAPTAIN);
|
||||
addCondLevel(MIN_LEVEL, MAX_LEVEL, "no_level.html");
|
||||
addCondRace(Race.ERTHEIA, "noErtheia.html");
|
||||
addCondClassId(ClassId.MARAUDER, "no_quest.html");
|
||||
addCondCompletedQuest(Q10790_AMercenaryHelper.class.getSimpleName(), "restriction.html");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
final QuestState qs = getQuestState(player, false);
|
||||
if (qs == null)
|
||||
{
|
||||
return getNoQuestMsg(player);
|
||||
}
|
||||
|
||||
switch (event)
|
||||
{
|
||||
case "33847-02.htm":
|
||||
case "33847-03.htm":
|
||||
{
|
||||
break;
|
||||
}
|
||||
case "33847-04.htm":
|
||||
{
|
||||
qs.startQuest();
|
||||
break;
|
||||
}
|
||||
case "thank":
|
||||
{
|
||||
npc.deleteMe();
|
||||
htmltext = "33993-01.html";
|
||||
break;
|
||||
}
|
||||
default:
|
||||
{
|
||||
if (qs.isCond(3))
|
||||
{
|
||||
addExpAndSp(player, 16968420, 4072);
|
||||
giveStoryQuestReward(player, 63);
|
||||
giveItems(player, EAA, 2);
|
||||
qs.exitQuest(false, true);
|
||||
htmltext = "33847-07.html";
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final QuestState qs = getQuestState(player, true);
|
||||
String htmltext = getNoQuestMsg(player);
|
||||
|
||||
switch (qs.getState())
|
||||
{
|
||||
case State.CREATED:
|
||||
{
|
||||
htmltext = "33847-01.htm";
|
||||
break;
|
||||
}
|
||||
case State.STARTED:
|
||||
{
|
||||
if ((qs.getCond() > 0) && (qs.getCond() < 3))
|
||||
{
|
||||
htmltext = "33847-05.html";
|
||||
}
|
||||
else if (qs.isCond(3))
|
||||
{
|
||||
htmltext = "33847-06.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case State.COMPLETED:
|
||||
{
|
||||
htmltext = getAlreadyCompletedMsg(player);
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onFirstTalk(L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
return "33993.html";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAttack(L2Npc npc, L2PcInstance attacker, int damage, boolean isSummon)
|
||||
{
|
||||
if (npc.isScriptValue(0))
|
||||
{
|
||||
for (int i = 0; i < 5; i++)
|
||||
{
|
||||
final L2Npc creature = addSpawn(NEEDLE_STAKATO, npc.getX() + getRandom(-20, 20), npc.getY() + getRandom(-20, 20), npc.getZ(), npc.getHeading(), true, 120000, false);
|
||||
addAttackPlayerDesire(creature, attacker);
|
||||
npc.setScriptValue(1);
|
||||
}
|
||||
}
|
||||
return super.onAttack(npc, attacker, damage, isSummon);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
|
||||
{
|
||||
final QuestState qs = getQuestState(killer, true);
|
||||
if ((qs != null) && (qs.getCond() > 0))
|
||||
{
|
||||
switch (npc.getId())
|
||||
{
|
||||
case SUSPICIOUS_COCOON:
|
||||
case SUSPICIOUS_COCOON1:
|
||||
case SUSPICIOUS_COCOON2:
|
||||
{
|
||||
int kills = qs.getInt(Integer.toString(SUSPICIOUS_COCOON));
|
||||
if (kills < 5)
|
||||
{
|
||||
kills++;
|
||||
qs.set(Integer.toString(SUSPICIOUS_COCOON), kills);
|
||||
playSound(killer, QuestSound.ITEMSOUND_QUEST_ITEMGET);
|
||||
}
|
||||
if (kills >= 5)
|
||||
{
|
||||
final L2Npc monster = addSpawn(NEEDLE_STAKATO_CAPTAIN, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), true, 600000, false);
|
||||
final L2QuestGuardInstance kain = (L2QuestGuardInstance) addSpawn(KAIN_VAN_HALTER, killer.getX() + getRandom(-100, 100), killer.getY() + getRandom(-100, 100), killer.getZ(), 0, true, 300000, false);
|
||||
kain.setRunning();
|
||||
kain.setIsInvul(true);
|
||||
kain.reduceCurrentHp(1, monster, null); // TODO: Find better way for attack
|
||||
addAttackPlayerDesire(monster, killer);
|
||||
qs.setCond(2);
|
||||
}
|
||||
break;
|
||||
}
|
||||
case NEEDLE_STAKATO_CAPTAIN:
|
||||
{
|
||||
int kills = qs.getInt(Integer.toString(NEEDLE_STAKATO_CAPTAIN));
|
||||
if ((kills < 1) && qs.isCond(2))
|
||||
{
|
||||
kills++;
|
||||
qs.set(Integer.toString(NEEDLE_STAKATO_CAPTAIN), kills);
|
||||
playSound(killer, QuestSound.ITEMSOUND_QUEST_ITEMGET);
|
||||
}
|
||||
if (qs.getInt(Integer.toString(NEEDLE_STAKATO_CAPTAIN)) >= 1)
|
||||
{
|
||||
qs.setCond(1);
|
||||
qs.setCond(3, true);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
final ExQuestNpcLogList log = new ExQuestNpcLogList(getId());
|
||||
log.addNpc(SUSPICIOUS_COCOON, qs.getInt(Integer.toString(SUSPICIOUS_COCOON)));
|
||||
log.addNpc(NEEDLE_STAKATO_CAPTAIN, qs.getInt(Integer.toString(NEEDLE_STAKATO_CAPTAIN)));
|
||||
qs.getPlayer().sendPacket(log);
|
||||
}
|
||||
return super.onKill(npc, killer, isSummon);
|
||||
}
|
||||
}
|
3
trunk/dist/game/data/scripts/quests/Q10791_TheManOfMystery/noErtheia.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q10791_TheManOfMystery/noErtheia.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Tracker Dokara:<br>
|
||||
You are not Ertheia, this quest is not for you.
|
||||
</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q10791_TheManOfMystery/no_class.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q10791_TheManOfMystery/no_class.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>You don't meet class requirements<br>
|
||||
(Quest available for Ertheia Marauder.)
|
||||
</body></html>
|
4
trunk/dist/game/data/scripts/quests/Q10791_TheManOfMystery/no_level.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10791_TheManOfMystery/no_level.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Tracker Dokara:<br>
|
||||
You don't meet level requirements<br>
|
||||
(Quest available from level 65 - 70)
|
||||
</body></html>
|
1
trunk/dist/game/data/scripts/quests/Q10791_TheManOfMystery/no_quest.html
vendored
Normal file
1
trunk/dist/game/data/scripts/quests/Q10791_TheManOfMystery/no_quest.html
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<html><body>You are not Marauder class, this quest is not for you.</body></html>
|
3
trunk/dist/game/data/scripts/quests/Q10791_TheManOfMystery/restriction.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q10791_TheManOfMystery/restriction.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Research Pio:<br>
|
||||
(Quest only available to Ertheia characters Lv. 58-61 who have completed the quest "A Mercenary Helper.")
|
||||
</body></html>
|
@@ -269,6 +269,7 @@ import quests.Q10411_KekropusLetterTheForestOfTheDead.Q10411_KekropusLetterTheFo
|
||||
import quests.Q10412_ASuspiciousVagabondInTheForest.Q10412_ASuspiciousVagabondInTheForest;
|
||||
import quests.Q10413_EmbryoInTheForestOfTheDead.Q10413_EmbryoInTheForestOfTheDead;
|
||||
import quests.Q10414_KekropusLetterWithCourage.Q10414_KekropusLetterWithCourage;
|
||||
import quests.Q10415_KekropusLetterWithWisdom.Q10415_KekropusLetterWithWisdom;
|
||||
import quests.Q10416_InSearchOfTheEyeOfArgos.Q10416_InSearchOfTheEyeOfArgos;
|
||||
import quests.Q10417_DaimonTheWhiteEyed.Q10417_DaimonTheWhiteEyed;
|
||||
import quests.Q10421_AssassinationOfTheVarkaSilenosCommander.Q10421_AssassinationOfTheVarkaSilenosCommander;
|
||||
@@ -319,6 +320,7 @@ import quests.Q10761_AnOrcInLove.Q10761_AnOrcInLove;
|
||||
import quests.Q10762_MarionetteSpirit.Q10762_MarionetteSpirit;
|
||||
import quests.Q10763_TerrifyingChertuba.Q10763_TerrifyingChertuba;
|
||||
import quests.Q10764_FreeSpirit.Q10764_FreeSpirit;
|
||||
import quests.Q10766_ANewCraft.Q10766_ANewCraft;
|
||||
import quests.Q10769_LettersFromTheQueenCrumaTowerPart1.Q10769_LettersFromTheQueenCrumaTowerPart1;
|
||||
import quests.Q10770_InSearchOfTheGrail.Q10770_InSearchOfTheGrail;
|
||||
import quests.Q10771_VolatilePower.Q10771_VolatilePower;
|
||||
@@ -338,6 +340,7 @@ import quests.Q10786_ResidentProblemSolver.Q10786_ResidentProblemSolver;
|
||||
import quests.Q10787_ASpyMission.Q10787_ASpyMission;
|
||||
import quests.Q10789_LettersFromTheQueenSwampOfScreams.Q10789_LettersFromTheQueenSwampOfScreams;
|
||||
import quests.Q10790_AMercenaryHelper.Q10790_AMercenaryHelper;
|
||||
import quests.Q10791_TheManOfMystery.Q10791_TheManOfMystery;
|
||||
import quests.Q10792_LettersFromTheQueenForestOfTheDead.Q10792_LettersFromTheQueenForestOfTheDead;
|
||||
import quests.Q10793_SaveTheSouls.Q10793_SaveTheSouls;
|
||||
import quests.Q10795_LettersFromTheQueenWallOfAgros.Q10795_LettersFromTheQueenWallOfAgros;
|
||||
@@ -609,6 +612,7 @@ public class QuestMasterHandler
|
||||
Q10412_ASuspiciousVagabondInTheForest.class,
|
||||
Q10413_EmbryoInTheForestOfTheDead.class,
|
||||
Q10414_KekropusLetterWithCourage.class,
|
||||
Q10415_KekropusLetterWithWisdom.class,
|
||||
Q10416_InSearchOfTheEyeOfArgos.class,
|
||||
Q10417_DaimonTheWhiteEyed.class,
|
||||
Q10421_AssassinationOfTheVarkaSilenosCommander.class,
|
||||
@@ -659,6 +663,7 @@ public class QuestMasterHandler
|
||||
Q10762_MarionetteSpirit.class,
|
||||
Q10763_TerrifyingChertuba.class,
|
||||
Q10764_FreeSpirit.class,
|
||||
Q10766_ANewCraft.class,
|
||||
Q10769_LettersFromTheQueenCrumaTowerPart1.class,
|
||||
Q10770_InSearchOfTheGrail.class,
|
||||
Q10771_VolatilePower.class,
|
||||
@@ -678,6 +683,7 @@ public class QuestMasterHandler
|
||||
Q10787_ASpyMission.class,
|
||||
Q10789_LettersFromTheQueenSwampOfScreams.class,
|
||||
Q10790_AMercenaryHelper.class,
|
||||
Q10791_TheManOfMystery.class,
|
||||
Q10792_LettersFromTheQueenForestOfTheDead.class,
|
||||
Q10793_SaveTheSouls.class,
|
||||
Q10795_LettersFromTheQueenWallOfAgros.class,
|
||||
|
Reference in New Issue
Block a user