Quests 10737 Grakon's Warehouse.

Contributed by Krash.
This commit is contained in:
mobius
2015-01-05 05:43:09 +00:00
parent 4628368579
commit 808dfe81cb
18 changed files with 274 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
<html><body>Magister Ayanthe:<br>
The more Ertheia there is coming here, the more I train. There are many things I need to prepare in order to take care of them all.<br>
I'll need plenty of Spiritshots.<br>
Of course, I'm not the only person trying to help. Some people have been sent from the continent to the administrative area.<br>
Want me to tell you about them?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10737_GrakonsWarehouse 33942-02.htm">"Tell me"</Button>
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Master Katalin:<br>
The people who can send you across space to a different territory -- Gatekeepers, Adventurer's Guidess Auction Hourse Mangers, Mentor Guides, Warehouse Keepers -- are truly beyond counting.<br>
But of these, I find <font color="LEVEL"> Warehouse Manager Grakon</font> to be most helpful I am in the habit of using the warehouse since I am weighed down by many heavy tags when I travel about. Even now I'm overburdened!<br>
And so, a favor! I cannot abandon my position here, so I cannot deposit my bags. Would you be so king as to deposit them for me? As a reward, I will give you something useful for when you leave town.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10737_GrakonsWarehouse 33942-03.htm">"I always wanted to be a porter"</Button>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Magister Ayanthe:<br>
I knew you'd help me.<br>
The item I promised you is in <font color="LEVEL">Grakon's Warehouse.</font> The warehouse is probably full right now.<br>
Just take what's yours from the warehouse and store my things in its place. Thanks you.<br>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Magister Ayanthe:<br>
(This quest can only be performed by characters who have completed "A Special Power" and between Lv. 5 or 20.)<br>
</body></html>

View File

@@ -0,0 +1,7 @@
<html><body>Master Katalin:<br>
The more Ertheia there is coming here, the more I train. There are many things I need to prepare in order to take care of them all.<br>
I'll need plenty of Spiritshots.<br>
Of course, I'm not the only person trying to help. Some people have been sent from the continent to the administrative area.<br>
Want me to tell you about them?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10737_GrakonsWarehouse 33942-02.htm">"Tell me"</Button>
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Magister Ayanthe:<br>
The people who can send you across space to a different territory -- Gatekeepers, Adventurer's Guidess Auction Hourse Mangers, Mentor Guides, Warehouse Keepers -- are truly beyond counting.<br>
But of these, I find <font color="LEVEL"> Warehouse Manager Grakon</font> to be most helpful I am in the habit of using the warehouse since I am weighed down by many heavy tags when I travel about. Even now I'm overburdened!<br>
And so, a favor! I cannot abandon my position here, so I cannot deposit my bags. Would you be so king as to deposit them for me? As a reward, I will give you something useful for when you leave town.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10737_GrakonsWarehouse 33943-03.htm">"I always wanted to be a porter"</Button>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Master Katalin:<br>
I knew you'd help me.<br>
The item I promised you is in <font color="LEVEL">Grakon's Warehouse.</font> The warehouse is probably full right now.<br>
Just take what's yours from the warehouse and store my things in its place. Thanks you.<br>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>Master Katalin:<br>
(This quest can only be performed by characters who have completed "A Special Power" and between Lv. 5 or 20.)<br>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Warehouse Keeper Grakon:<br>
Ow, my legs. Whatcha staring at? You should show some respect to someone who obviously looks older than you.<br>
Don't look at me like that. I know I look older than every Ertheia here! So what do you want?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10737_GrakonsWarehouse 33947-02.htm">"Master Katalin sent me"</Button>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Warehouse Keeper Grakon:<br>
Oh, I see. I've got so much of that woman's stuff, my warehouse is about to burst. She's always storring items, but never takes any out.<br>
All right then, which item have you come for?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10737_GrakonsWarehouse 33947-03.htm">"Well, I want to take one and leave one."</Button>
</body></html>

View File

@@ -0,0 +1,7 @@
<html><body>Warehouse Keeper Grakon:<br>
What? Take something and leave something? This is driving me nuts.
Next time you see her, tell her to come to the warehouse and organize her things.
The item you're looking for is...Oh! I see it. It's labeled as a newbie help box or something.<br>
Shall we make the swap?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10737_GrakonsWarehouse 33947-04.htm">"Give it!"</Button>
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Warehouse Keeper Grakon:<br>
If you yourself ever need to store something in the <font color="LEVEL">warehouse</font>, you're always welcome to come back.
Of course, it's not free -- there's a small <font color="LEVEL">fee.</font><br>
Just as long as you don't go abusing my services like somebody we know. You can even send <font color="LEVEL">mail</font> to a friend.
If I'm ever unsure about keeping or discarding something. I'll mail it to a friend. Haha!<br>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Warehouse Keeper Grakon:<br>
Ow, my legs. Whatcha staring at? You should show some respect to someone who obviously looks older than you.<br>
Don't look at me like that. I know I look older than every Ertheia here! So what do you want?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10737_GrakonsWarehouse 33947-06.htm">"Magister Ayanthe sent me"</Button>
</body></html>

View File

@@ -0,0 +1,5 @@
<html><body>Warehouse Keeper Grakon:<br>
Oh, I see. I've got so much of that woman's stuff, my warehouse is about to burst. She's always storring items, but never takes any out.<br>
All right then, which item have you come for?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10737_GrakonsWarehouse 33947-07.htm">"Well, I want to take one and leave one."</Button>
</body></html>

View File

@@ -0,0 +1,7 @@
<html><body>Warehouse Keeper Grakon:<br>
What? Take something and leave something? This is driving me nuts.
Next time you see her, tell her to come to the warehouse and organize her things.
The item you're looking for is...Oh! I see it. It's labeled as a newbie help box or something.<br>
Shall we make the swap?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10737_GrakonsWarehouse 33947-08.htm">"Give it!"</Button>
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Warehouse Keeper Grakon:<br>
If you yourself ever need to store something in the <font color="LEVEL">warehouse</font>, you're always welcome to come back.
Of course, it's not free -- there's a small <font color="LEVEL">fee.</font><br>
Just as long as you don't go abusing my services like somebody we know. You can even send <font color="LEVEL">mail</font> to a friend.
If I'm ever unsure about keeping or discarding something. I'll mail it to a friend. Haha!<br>
</body></html>

View File

@@ -0,0 +1,3 @@
<html><body>
(This quest can only be performed by characters who have completed "A Special Power" and between Lv. 5 or 20.)<br>
</body></html>

View File

@@ -0,0 +1,183 @@
/*
* 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.Q10737_GrakonsWarehouse;
import com.l2jserver.gameserver.enums.Race;
import com.l2jserver.gameserver.model.actor.L2Npc;
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
import com.l2jserver.gameserver.model.base.ClassId;
import com.l2jserver.gameserver.model.quest.Quest;
import com.l2jserver.gameserver.model.quest.QuestState;
/**
* @author Krash
*/
public class Q10737_GrakonsWarehouse extends Quest
{
// Npcs
private static final int Grakon = 33947;
private static final int Katalin = 33943;
private static final int Ayanthe = 33942;
// Items
private static final int Apprentice_Support_Box = 39520;
private static final int Apprentice_Adventurer_Staff = 7816;
private static final int Apprentice_Adventurer_Fists = 7819;
// Level Check
private static final int MIN_LEVEL = 5;
private static final int MAX_LEVEL = 20;
public Q10737_GrakonsWarehouse()
{
super(10737, Q10737_GrakonsWarehouse.class.getSimpleName(), "Grakon's Warehouse");
addStartNpc(Katalin, Ayanthe);
addTalkId(Katalin, Ayanthe, Grakon);
registerQuestItems(Apprentice_Support_Box);
addCondMinLevel(MIN_LEVEL, "");
addCondMaxLevel(MAX_LEVEL, "");
addCondRace(Race.ERTHEIA, "");
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
final QuestState qs = getQuestState(player, false);
String htmltext = null;
if (qs == null)
{
return htmltext;
}
switch (event)
{
case "33942-03.htm":
case "33943-03.htm":
{
qs.startQuest();
qs.setCond(1);
qs.giveItems(Apprentice_Support_Box, 1);
htmltext = event;
break;
}
case "33947-04.htm":
{
if (qs.isCond(1))
{
giveAdena(player, 11000, true);
addExpAndSp(player, 2650, 0);
qs.giveItems(Apprentice_Adventurer_Fists, 1);
qs.exitQuest(false, true);
htmltext = event;
}
break;
}
case "33947-08.htm":
{
if (qs.isCond(1))
{
giveAdena(player, 11000, true);
addExpAndSp(player, 2650, 0);
qs.giveItems(Apprentice_Adventurer_Staff, 1);
qs.exitQuest(false, true);
htmltext = event;
}
break;
}
case "33943-02.htm":
case "33942-02.htm":
case "33947-02.htm":
case "33947-03.htm":
case "33947-06.htm":
case "33947-07.htm":
{
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.isCond(0) && (player.getLevel() >= MIN_LEVEL) && (player.getLevel() <= MAX_LEVEL) && (player.getClassId() == ClassId.ERTHEIA_FIGHTER))
{
htmltext = "33943-01.htm";
}
else
{
htmltext = "33943-noLevel.htm";
}
if (qs.isCond(1))
{
htmltext = "33943-03.htm";
}
if ((player.getLevel() < MIN_LEVEL) && (player.getLevel() > MAX_LEVEL) && (player.getRace() != Race.ERTHEIA))
{
htmltext = "33943-noLevel.htm";
}
break;
case Ayanthe:
if (qs.isCond(0) && (player.getLevel() >= MIN_LEVEL) && (player.getLevel() <= MAX_LEVEL) && (player.getClassId() == ClassId.ERTHEIA_WIZARD))
{
htmltext = "33942-01.htm";
}
else
{
htmltext = "33942-noLevel.htm";
}
if (qs.isCond(1))
{
htmltext = "33942-03.htm";
}
if ((player.getLevel() < MIN_LEVEL) && (player.getLevel() > MAX_LEVEL) && (player.getRace() != Race.ERTHEIA))
{
htmltext = "33942-noLevel.htm";
}
break;
case Grakon:
if (qs.isCond(1) && qs.hasQuestItems(Apprentice_Support_Box))
{
if (player.getClassId() == ClassId.ERTHEIA_FIGHTER)
{
htmltext = "33947-01.htm";
}
else if (player.getClassId() == ClassId.ERTHEIA_WIZARD)
{
htmltext = "33947-05.htm";
}
}
break;
}
return htmltext;
}
}