Merged with released L2J-Unity files.
This commit is contained in:
4
trunk/dist/game/data/scripts/quests/Q10737_GrakonsWarehouse/33942-00.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10737_GrakonsWarehouse/33942-00.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Magister Ayanthe:<br>
|
||||
Are your burdens proportional to the time you spend idling?<br>
|
||||
(This quest can only be performed by Ertheia who have completed "A Special Power", and are between Lv. 5 and 20.)
|
||||
</body></html>
|
||||
@@ -1,7 +1,7 @@
|
||||
<html><head><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>
|
||||
<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>
|
||||
@@ -1,6 +1,6 @@
|
||||
<html><head><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.html">"I always wanted to be a porter"</Button>
|
||||
<html><body>Magister Ayanthe:<br>
|
||||
The people who can send you across space to a different territory -- Gatekeepers, Adventurers' Guides, Auction House Managers, 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 bags when I travel about. Even now I am overburdened!<br>
|
||||
And so, a favor! I cannot abandon my position here, so I cannot deposit my bags. Would you be so kind 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>
|
||||
5
trunk/dist/game/data/scripts/quests/Q10737_GrakonsWarehouse/33942-03.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q10737_GrakonsWarehouse/33942-03.htm
vendored
Normal 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. Thank you.
|
||||
</body></html>
|
||||
@@ -1,5 +0,0 @@
|
||||
<html><head><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>
|
||||
4
trunk/dist/game/data/scripts/quests/Q10737_GrakonsWarehouse/33942-04.html
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10737_GrakonsWarehouse/33942-04.html
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Magister Ayanthe:<br>
|
||||
Just tell <font color="LEVEL">Warehouse Keeper Grakon</font> that you've come in my stead to store some items for me.<br>
|
||||
You're not shy, right?
|
||||
</body></html>
|
||||
@@ -1,3 +0,0 @@
|
||||
<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>
|
||||
4
trunk/dist/game/data/scripts/quests/Q10737_GrakonsWarehouse/33943-00.htm
vendored
Normal file
4
trunk/dist/game/data/scripts/quests/Q10737_GrakonsWarehouse/33943-00.htm
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>Master Katalin:<br>
|
||||
Do you know how hard I'm working to help you?<br>
|
||||
(Quest only available for Ertheia characters Lv. 5 to 20 who have completed the quest "A Special Power.")
|
||||
</body></html>
|
||||
@@ -1,7 +1,4 @@
|
||||
<html><head><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>
|
||||
<html><body>Master Katalin:<br>
|
||||
More Ertheia are coming through a Dimensional Rift. Thanks to that, it's overloading my job. It must be even harder for those who came here from Aden.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10737_GrakonsWarehouse 33942-02.htm">"Who came from Aden?"</button>
|
||||
</body></html>
|
||||
@@ -1,6 +1,6 @@
|
||||
<html><head><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 33942-03.html">"I always wanted to be a porter"</Button>
|
||||
<html><body>Master Katalin:<br>
|
||||
You've never met them? Many came from Aden to help us settle here. Gatekeepers, who help us to go to other areas. Adventurer's Guide, Auction House Manager, Mentor Guides, and Warehouse Keepers...I can't even list them all.<br>
|
||||
<font color="LEVEL">Warehouse Keeper Grakon</font> is the best! Too much stuff in the inventory is too heavy. Warehouses always come in handy.<br>
|
||||
Speaking of which...I cannot leave my post. Will you give Grakon some of my stuff?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10737_GrakonsWarehouse 33942-03.htm">"Sure."</button>
|
||||
</body></html>
|
||||
5
trunk/dist/game/data/scripts/quests/Q10737_GrakonsWarehouse/33943-03.htm
vendored
Normal file
5
trunk/dist/game/data/scripts/quests/Q10737_GrakonsWarehouse/33943-03.htm
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html><body>Master Katalin:<br>
|
||||
You're kind. I will give you something you will need outside the village in return.<br>
|
||||
It's in Grakon's <FONT color="LEVEL">Warehouse</font>.<br>
|
||||
Take it and put in my item.
|
||||
</body></html>
|
||||
@@ -1,5 +0,0 @@
|
||||
<html><head><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>
|
||||
3
trunk/dist/game/data/scripts/quests/Q10737_GrakonsWarehouse/33943-04.html
vendored
Normal file
3
trunk/dist/game/data/scripts/quests/Q10737_GrakonsWarehouse/33943-04.html
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<html><body>Master Katalin:<br>
|
||||
Just go to <font color="LEVEL">Warehouse Keeper Grakon</font> and tell him that you're there to give him my stuff.<br>
|
||||
</body></html>
|
||||
@@ -1,3 +0,0 @@
|
||||
<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>
|
||||
@@ -1,5 +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.html">"Master Katalin sent me"</Button>
|
||||
<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-03.html">"Master Katalin sent me."</button>
|
||||
</body></html>
|
||||
@@ -1,5 +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.html">"Well, I want to take one and leave one."</Button>
|
||||
<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-03.html">"Magister Ayanthe sent me."</button>
|
||||
</body></html>
|
||||
@@ -1,7 +1,5 @@
|
||||
<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.html">"Give it!"</Button>
|
||||
<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 storing 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-04.html">"Well, I want to take one and leave one."</button>
|
||||
</body></html>
|
||||
@@ -1,6 +1,5 @@
|
||||
<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>
|
||||
<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-05.html">"Give it!"</button>
|
||||
</body></html>
|
||||
@@ -1,5 +1,4 @@
|
||||
<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.html">"Magister Ayanthe sent me"</Button>
|
||||
<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!
|
||||
</body></html>
|
||||
@@ -1,5 +0,0 @@
|
||||
<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.html">"Well, I want to take one and leave one."</Button>
|
||||
</body></html>
|
||||
@@ -1,7 +0,0 @@
|
||||
<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.html">"Give it!"</Button>
|
||||
</body></html>
|
||||
@@ -1,6 +0,0 @@
|
||||
<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>
|
||||
@@ -1,3 +0,0 @@
|
||||
<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>
|
||||
@@ -1,148 +1,178 @@
|
||||
/*
|
||||
* 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.Q10737_GrakonsWarehouse;
|
||||
|
||||
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.base.ClassId;
|
||||
import com.l2jmobius.gameserver.model.holders.ItemHolder;
|
||||
import com.l2jmobius.gameserver.model.quest.Quest;
|
||||
import com.l2jmobius.gameserver.model.quest.QuestState;
|
||||
|
||||
/**
|
||||
* @author Sdw
|
||||
*/
|
||||
public class Q10737_GrakonsWarehouse extends Quest
|
||||
{
|
||||
// NPC's
|
||||
private static final int KATALIN = 33943;
|
||||
private static final int AYANTHE = 33942;
|
||||
private static final int GRAKON = 33947;
|
||||
// Misc
|
||||
private static final int MIN_LEVEL = 5;
|
||||
private static final int MAX_LEVEL = 20;
|
||||
// Items
|
||||
private static final ItemHolder APPRENTICE_SUPPORT_BOX = new ItemHolder(39520, 1);
|
||||
private static final ItemHolder APPRENTICE_ADVENTURER_STAFF = new ItemHolder(7816, 1);
|
||||
private static final ItemHolder APPRENTICE_ADVENTURER_FISTS = new ItemHolder(7819, 1);
|
||||
|
||||
public Q10737_GrakonsWarehouse()
|
||||
{
|
||||
super(10737, Q10737_GrakonsWarehouse.class.getSimpleName(), "Grakon's Warehouse");
|
||||
addStartNpc(KATALIN, AYANTHE);
|
||||
addTalkId(KATALIN, AYANTHE, GRAKON);
|
||||
addCondLevel(MIN_LEVEL, MAX_LEVEL, "no_quest.html");
|
||||
addCondRace(Race.ERTHEIA, "no_quest.html");
|
||||
registerQuestItems(APPRENTICE_SUPPORT_BOX.getId());
|
||||
}
|
||||
|
||||
@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 "33942-03.html":
|
||||
case "33943-03.html":
|
||||
{
|
||||
qs.startQuest();
|
||||
giveItems(player, APPRENTICE_SUPPORT_BOX);
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
case "33947-04.html":
|
||||
case "33947-08.html":
|
||||
{
|
||||
if (qs.isStarted())
|
||||
{
|
||||
giveAdena(player, 11000, true);
|
||||
addExpAndSp(player, 2625, 0);
|
||||
if (player.getClassId() == ClassId.ERTHEIA_FIGHTER)
|
||||
{
|
||||
giveItems(player, APPRENTICE_ADVENTURER_FISTS);
|
||||
}
|
||||
else if (player.getClassId() == ClassId.ERTHEIA_WIZARD)
|
||||
{
|
||||
giveItems(player, APPRENTICE_ADVENTURER_STAFF);
|
||||
}
|
||||
qs.exitQuest(false, true);
|
||||
htmltext = event;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "33942-02.htm":
|
||||
case "33943-02.htm":
|
||||
case "33947-02.html":
|
||||
case "33947-03.html":
|
||||
case "33947-06.html":
|
||||
case "33947-07.html":
|
||||
{
|
||||
htmltext = event;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final QuestState qs = getQuestState(player, true);
|
||||
String htmltext = qs.isCompleted() ? getAlreadyCompletedMsg(player) : getNoQuestMsg(player);
|
||||
|
||||
switch (npc.getId())
|
||||
{
|
||||
case KATALIN:
|
||||
case AYANTHE:
|
||||
{
|
||||
if (qs.isCreated())
|
||||
{
|
||||
htmltext = npc.getId() + "-01.htm";
|
||||
}
|
||||
else if (qs.isStarted())
|
||||
{
|
||||
htmltext = npc.getId() + "-03.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case GRAKON:
|
||||
{
|
||||
if (qs.isStarted())
|
||||
{
|
||||
if (player.getClassId() == ClassId.ERTHEIA_FIGHTER)
|
||||
{
|
||||
htmltext = "33947-01.html";
|
||||
}
|
||||
else if (player.getClassId() == ClassId.ERTHEIA_WIZARD)
|
||||
{
|
||||
htmltext = "33947-05.html";
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return htmltext;
|
||||
}
|
||||
}
|
||||
/*
|
||||
* 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.Q10737_GrakonsWarehouse;
|
||||
|
||||
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.holders.ItemHolder;
|
||||
import com.l2jmobius.gameserver.model.quest.Quest;
|
||||
import com.l2jmobius.gameserver.model.quest.QuestState;
|
||||
import com.l2jmobius.gameserver.network.NpcStringId;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.ExShowScreenMessage;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.TutorialShowHtml;
|
||||
|
||||
import quests.Q10735_ASpecialPower.Q10735_ASpecialPower;
|
||||
import quests.Q10736_ASpecialPower.Q10736_ASpecialPower;
|
||||
|
||||
/**
|
||||
* Grakons Warehouse (10737)
|
||||
* @author Sdw
|
||||
*/
|
||||
public final class Q10737_GrakonsWarehouse extends Quest
|
||||
{
|
||||
// NPC's
|
||||
private static final int KATALIN = 33943;
|
||||
private static final int AYANTHE = 33942;
|
||||
private static final int GRAKON = 33947;
|
||||
// Items
|
||||
private static final ItemHolder APPRENTICE_SUPPORT_BOX = new ItemHolder(39520, 1);
|
||||
private static final ItemHolder APPRENTICE_ADVENTURER_STAFF = new ItemHolder(7816, 1);
|
||||
private static final ItemHolder APPRENTICE_ADVENTURER_FISTS = new ItemHolder(7819, 1);
|
||||
// Misc
|
||||
private static final int MIN_LEVEL = 5;
|
||||
private static final int MAX_LEVEL = 20;
|
||||
|
||||
public Q10737_GrakonsWarehouse()
|
||||
{
|
||||
super(10737);
|
||||
addStartNpc(KATALIN, AYANTHE);
|
||||
addTalkId(KATALIN, AYANTHE, GRAKON);
|
||||
|
||||
addCondRace(Race.ERTHEIA, "");
|
||||
registerQuestItems(APPRENTICE_SUPPORT_BOX.getId());
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final QuestState qs = getQuestState(player, false);
|
||||
if (qs == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
String htmltext = event;
|
||||
switch (event)
|
||||
{
|
||||
case "33942-02.htm":
|
||||
case "33943-02.htm":
|
||||
case "33947-03.html":
|
||||
case "33947-04.html":
|
||||
break;
|
||||
case "33942-03.htm":
|
||||
case "33943-03.htm":
|
||||
{
|
||||
qs.startQuest();
|
||||
giveItems(player, APPRENTICE_SUPPORT_BOX);
|
||||
break;
|
||||
}
|
||||
case "33947-05.html":
|
||||
{
|
||||
if (qs.isStarted())
|
||||
{
|
||||
player.sendPacket(new TutorialShowHtml(npc.getObjectId(), "..\\L2text\\QT_007_post_01.htm", TutorialShowHtml.LARGE_WINDOW));
|
||||
showOnScreenMsg(player, NpcStringId.WEAPONS_HAVE_BEEN_ADDED_TO_YOUR_INVENTORY, ExShowScreenMessage.TOP_CENTER, 10000);
|
||||
giveAdena(player, 11000, true);
|
||||
if (player.isMageClass())
|
||||
{
|
||||
giveItems(player, APPRENTICE_ADVENTURER_STAFF);
|
||||
}
|
||||
else
|
||||
{
|
||||
giveItems(player, APPRENTICE_ADVENTURER_FISTS);
|
||||
}
|
||||
addExpAndSp(player, 2625, 0);
|
||||
qs.exitQuest(false, true);
|
||||
}
|
||||
break;
|
||||
}
|
||||
default:
|
||||
htmltext = null;
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final QuestState qs = getQuestState(player, true);
|
||||
String htmltext = getNoQuestMsg(player);
|
||||
|
||||
if (qs.isCompleted())
|
||||
{
|
||||
htmltext = getAlreadyCompletedMsg(player);
|
||||
}
|
||||
|
||||
switch (npc.getId())
|
||||
{
|
||||
case KATALIN:
|
||||
{
|
||||
if (!player.isMageClass())
|
||||
{
|
||||
if (qs.isCreated())
|
||||
{
|
||||
htmltext = (meetStartRestrictions(player)) ? "33943-01.htm" : "33943-00.htm";
|
||||
}
|
||||
else if (qs.isStarted())
|
||||
{
|
||||
htmltext = "33943-04.html";
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case AYANTHE:
|
||||
{
|
||||
if (player.isMageClass())
|
||||
{
|
||||
if (qs.isCreated())
|
||||
{
|
||||
htmltext = (meetStartRestrictions(player)) ? "33942-01.htm" : "33942-00.htm";
|
||||
}
|
||||
else if (qs.isStarted())
|
||||
{
|
||||
htmltext = "33942-04.html";
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case GRAKON:
|
||||
{
|
||||
if (qs.isStarted())
|
||||
{
|
||||
htmltext = (player.isMageClass()) ? "33947-02.html" : "33947-01.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
private boolean meetStartRestrictions(L2PcInstance player)
|
||||
{
|
||||
final QuestState qs;
|
||||
if (player.isMageClass())
|
||||
{
|
||||
qs = player.getQuestState(Q10735_ASpecialPower.class.getSimpleName());
|
||||
}
|
||||
else
|
||||
{
|
||||
qs = player.getQuestState(Q10736_ASpecialPower.class.getSimpleName());
|
||||
}
|
||||
return (player.getLevel() >= MIN_LEVEL) && (player.getLevel() <= MAX_LEVEL) && (qs != null) && qs.isCompleted();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
<html><body>You either don't meet this NPC's minimum quest requirements, or your level is too low to start this quest.</body></html>
|
||||
Reference in New Issue
Block a user