Sync with L2JServer Jan 9th 2015.
This commit is contained in:
@@ -1,7 +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>
|
||||
<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>
|
||||
</body></html>
|
@@ -1,6 +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>
|
||||
<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.htm">"I always wanted to be a porter"</Button>
|
||||
</body></html>
|
@@ -1,5 +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>
|
||||
<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>
|
@@ -1,7 +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>
|
||||
<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>
|
||||
</body></html>
|
@@ -1,6 +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>
|
||||
<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.htm">"I always wanted to be a porter"</Button>
|
||||
</body></html>
|
@@ -1,5 +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>
|
||||
<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>
|
@@ -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.htm">"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-02.htm">"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.htm">"Well, I want to take one and leave one."</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 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>
|
@@ -1,7 +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>
|
||||
<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>
|
@@ -1,6 +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>
|
||||
<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,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-06.htm">"Magister Ayanthe 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-06.htm">"Magister Ayanthe 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-07.htm">"Well, I want to take one and leave one."</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 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>
|
@@ -1,7 +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>
|
||||
<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>
|
@@ -1,6 +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>
|
||||
<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>
|
@@ -22,88 +22,79 @@ 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.holders.ItemHolder;
|
||||
import com.l2jserver.gameserver.model.quest.Quest;
|
||||
import com.l2jserver.gameserver.model.quest.QuestState;
|
||||
|
||||
/**
|
||||
* @author Krash
|
||||
* @author Sdw
|
||||
*/
|
||||
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
|
||||
// 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);
|
||||
registerQuestItems(Apprentice_Support_Box);
|
||||
addCondMinLevel(MIN_LEVEL, "");
|
||||
addCondMaxLevel(MAX_LEVEL, "");
|
||||
addCondRace(Race.ERTHEIA, "");
|
||||
addStartNpc(KATALIN, AYANTHE);
|
||||
addTalkId(KATALIN, AYANTHE, GRAKON);
|
||||
addCondLevel(MIN_LEVEL, MAX_LEVEL, "fixme.htm");
|
||||
addCondRace(Race.ERTHEIA, "fixme.htm");
|
||||
registerQuestItems(APPRENTICE_SUPPORT_BOX.getId());
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
|
||||
{
|
||||
final QuestState qs = getQuestState(player, false);
|
||||
String htmltext = null;
|
||||
if (qs == null)
|
||||
{
|
||||
return htmltext;
|
||||
return null;
|
||||
}
|
||||
|
||||
String htmltext = null;
|
||||
switch (event)
|
||||
{
|
||||
case "33942-03.htm":
|
||||
case "33943-03.htm":
|
||||
{
|
||||
qs.startQuest();
|
||||
qs.setCond(1);
|
||||
qs.giveItems(Apprentice_Support_Box, 1);
|
||||
giveItems(player, APPRENTICE_SUPPORT_BOX);
|
||||
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))
|
||||
if (qs.isStarted())
|
||||
{
|
||||
giveAdena(player, 11000, true);
|
||||
addExpAndSp(player, 2650, 0);
|
||||
qs.giveItems(Apprentice_Adventurer_Staff, 1);
|
||||
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 "33943-02.htm":
|
||||
case "33942-02.htm":
|
||||
case "33943-02.htm":
|
||||
case "33947-02.htm":
|
||||
case "33947-03.htm":
|
||||
case "33947-06.htm":
|
||||
@@ -113,7 +104,6 @@ public class Q10737_GrakonsWarehouse extends Quest
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@@ -123,48 +113,29 @@ public class Q10737_GrakonsWarehouse extends Quest
|
||||
final QuestState qs = getQuestState(player, true);
|
||||
String htmltext = getNoQuestMsg(player);
|
||||
|
||||
if (qs.isCompleted())
|
||||
{
|
||||
htmltext = getAlreadyCompletedMsg(player);
|
||||
}
|
||||
|
||||
switch (npc.getId())
|
||||
{
|
||||
case Katalin:
|
||||
if (qs.isCond(0) && (player.getLevel() >= MIN_LEVEL) && (player.getLevel() <= MAX_LEVEL) && (player.getClassId() == ClassId.ERTHEIA_FIGHTER))
|
||||
case KATALIN:
|
||||
case AYANTHE:
|
||||
{
|
||||
if (qs.isCreated())
|
||||
{
|
||||
htmltext = "33943-01.htm";
|
||||
htmltext = npc.getId() + "-01.htm";
|
||||
}
|
||||
else
|
||||
else if (qs.isStarted())
|
||||
{
|
||||
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";
|
||||
htmltext = npc.getId() + "-03.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))
|
||||
}
|
||||
case GRAKON:
|
||||
{
|
||||
if (qs.isStarted())
|
||||
{
|
||||
if (player.getClassId() == ClassId.ERTHEIA_FIGHTER)
|
||||
{
|
||||
@@ -176,8 +147,9 @@ public class Q10737_GrakonsWarehouse extends Quest
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return htmltext;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user