diff --git a/trunk/dist/game/data/scripts/quests/Q10737_GrakonsWarehouse/33942-01.htm b/trunk/dist/game/data/scripts/quests/Q10737_GrakonsWarehouse/33942-01.htm new file mode 100644 index 0000000000..4a29c4c368 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10737_GrakonsWarehouse/33942-01.htm @@ -0,0 +1,7 @@ +Magister Ayanthe:
+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.
+I'll need plenty of Spiritshots.
+Of course, I'm not the only person trying to help. Some people have been sent from the continent to the administrative area.
+Want me to tell you about them?
+ + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10737_GrakonsWarehouse/33942-02.htm b/trunk/dist/game/data/scripts/quests/Q10737_GrakonsWarehouse/33942-02.htm new file mode 100644 index 0000000000..f53b545add --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10737_GrakonsWarehouse/33942-02.htm @@ -0,0 +1,6 @@ +Master Katalin:
+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.
+But of these, I find Warehouse Manager Grakon 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!
+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.
+ + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10737_GrakonsWarehouse/33942-03.htm b/trunk/dist/game/data/scripts/quests/Q10737_GrakonsWarehouse/33942-03.htm new file mode 100644 index 0000000000..d284cf1259 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10737_GrakonsWarehouse/33942-03.htm @@ -0,0 +1,5 @@ +Magister Ayanthe:
+I knew you'd help me.
+The item I promised you is in Grakon's Warehouse. The warehouse is probably full right now.
+Just take what's yours from the warehouse and store my things in its place. Thanks you.
+ \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10737_GrakonsWarehouse/33942-noLevel.htm b/trunk/dist/game/data/scripts/quests/Q10737_GrakonsWarehouse/33942-noLevel.htm new file mode 100644 index 0000000000..4c22d5f681 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10737_GrakonsWarehouse/33942-noLevel.htm @@ -0,0 +1,3 @@ +Magister Ayanthe:
+(This quest can only be performed by characters who have completed "A Special Power" and between Lv. 5 or 20.)
+ \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10737_GrakonsWarehouse/33943-01.htm b/trunk/dist/game/data/scripts/quests/Q10737_GrakonsWarehouse/33943-01.htm new file mode 100644 index 0000000000..d7c8ce4fa9 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10737_GrakonsWarehouse/33943-01.htm @@ -0,0 +1,7 @@ +Master Katalin:
+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.
+I'll need plenty of Spiritshots.
+Of course, I'm not the only person trying to help. Some people have been sent from the continent to the administrative area.
+Want me to tell you about them?
+ + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10737_GrakonsWarehouse/33943-02.htm b/trunk/dist/game/data/scripts/quests/Q10737_GrakonsWarehouse/33943-02.htm new file mode 100644 index 0000000000..0e6dd29758 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10737_GrakonsWarehouse/33943-02.htm @@ -0,0 +1,6 @@ +Magister Ayanthe:
+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.
+But of these, I find Warehouse Manager Grakon 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!
+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.
+ + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10737_GrakonsWarehouse/33943-03.htm b/trunk/dist/game/data/scripts/quests/Q10737_GrakonsWarehouse/33943-03.htm new file mode 100644 index 0000000000..2d9648664d --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10737_GrakonsWarehouse/33943-03.htm @@ -0,0 +1,5 @@ +Master Katalin:
+I knew you'd help me.
+The item I promised you is in Grakon's Warehouse. The warehouse is probably full right now.
+Just take what's yours from the warehouse and store my things in its place. Thanks you.
+ \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10737_GrakonsWarehouse/33943-noLevel.htm b/trunk/dist/game/data/scripts/quests/Q10737_GrakonsWarehouse/33943-noLevel.htm new file mode 100644 index 0000000000..4e947f2e2f --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10737_GrakonsWarehouse/33943-noLevel.htm @@ -0,0 +1,3 @@ +Master Katalin:
+(This quest can only be performed by characters who have completed "A Special Power" and between Lv. 5 or 20.)
+ \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10737_GrakonsWarehouse/33947-01.htm b/trunk/dist/game/data/scripts/quests/Q10737_GrakonsWarehouse/33947-01.htm new file mode 100644 index 0000000000..7fdbb5731a --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10737_GrakonsWarehouse/33947-01.htm @@ -0,0 +1,5 @@ +Warehouse Keeper Grakon:
+Ow, my legs. Whatcha staring at? You should show some respect to someone who obviously looks older than you.
+Don't look at me like that. I know I look older than every Ertheia here! So what do you want?
+ + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10737_GrakonsWarehouse/33947-02.htm b/trunk/dist/game/data/scripts/quests/Q10737_GrakonsWarehouse/33947-02.htm new file mode 100644 index 0000000000..07e88e6e1f --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10737_GrakonsWarehouse/33947-02.htm @@ -0,0 +1,5 @@ +Warehouse Keeper Grakon:
+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.
+All right then, which item have you come for?
+ + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10737_GrakonsWarehouse/33947-03.htm b/trunk/dist/game/data/scripts/quests/Q10737_GrakonsWarehouse/33947-03.htm new file mode 100644 index 0000000000..0910723d3c --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10737_GrakonsWarehouse/33947-03.htm @@ -0,0 +1,7 @@ +Warehouse Keeper Grakon:
+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.
+Shall we make the swap?
+ + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10737_GrakonsWarehouse/33947-04.htm b/trunk/dist/game/data/scripts/quests/Q10737_GrakonsWarehouse/33947-04.htm new file mode 100644 index 0000000000..18170b4895 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10737_GrakonsWarehouse/33947-04.htm @@ -0,0 +1,6 @@ +Warehouse Keeper Grakon:
+If you yourself ever need to store something in the warehouse, you're always welcome to come back. +Of course, it's not free -- there's a small fee.
+Just as long as you don't go abusing my services like somebody we know. You can even send mail to a friend. +If I'm ever unsure about keeping or discarding something. I'll mail it to a friend. Haha!
+ \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10737_GrakonsWarehouse/33947-05.htm b/trunk/dist/game/data/scripts/quests/Q10737_GrakonsWarehouse/33947-05.htm new file mode 100644 index 0000000000..edc311a7fd --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10737_GrakonsWarehouse/33947-05.htm @@ -0,0 +1,5 @@ +Warehouse Keeper Grakon:
+Ow, my legs. Whatcha staring at? You should show some respect to someone who obviously looks older than you.
+Don't look at me like that. I know I look older than every Ertheia here! So what do you want?
+ + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10737_GrakonsWarehouse/33947-06.htm b/trunk/dist/game/data/scripts/quests/Q10737_GrakonsWarehouse/33947-06.htm new file mode 100644 index 0000000000..fc142e802f --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10737_GrakonsWarehouse/33947-06.htm @@ -0,0 +1,5 @@ +Warehouse Keeper Grakon:
+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.
+All right then, which item have you come for?
+ + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10737_GrakonsWarehouse/33947-07.htm b/trunk/dist/game/data/scripts/quests/Q10737_GrakonsWarehouse/33947-07.htm new file mode 100644 index 0000000000..25f8dd7093 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10737_GrakonsWarehouse/33947-07.htm @@ -0,0 +1,7 @@ +Warehouse Keeper Grakon:
+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.
+Shall we make the swap?
+ + \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10737_GrakonsWarehouse/33947-08.htm b/trunk/dist/game/data/scripts/quests/Q10737_GrakonsWarehouse/33947-08.htm new file mode 100644 index 0000000000..18170b4895 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10737_GrakonsWarehouse/33947-08.htm @@ -0,0 +1,6 @@ +Warehouse Keeper Grakon:
+If you yourself ever need to store something in the warehouse, you're always welcome to come back. +Of course, it's not free -- there's a small fee.
+Just as long as you don't go abusing my services like somebody we know. You can even send mail to a friend. +If I'm ever unsure about keeping or discarding something. I'll mail it to a friend. Haha!
+ \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10737_GrakonsWarehouse/NoConditionRequired.htm b/trunk/dist/game/data/scripts/quests/Q10737_GrakonsWarehouse/NoConditionRequired.htm new file mode 100644 index 0000000000..23505d7c29 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10737_GrakonsWarehouse/NoConditionRequired.htm @@ -0,0 +1,3 @@ + +(This quest can only be performed by characters who have completed "A Special Power" and between Lv. 5 or 20.)
+ \ No newline at end of file diff --git a/trunk/dist/game/data/scripts/quests/Q10737_GrakonsWarehouse/Q10737_GrakonsWarehouse.java b/trunk/dist/game/data/scripts/quests/Q10737_GrakonsWarehouse/Q10737_GrakonsWarehouse.java new file mode 100644 index 0000000000..ffb1b54d51 --- /dev/null +++ b/trunk/dist/game/data/scripts/quests/Q10737_GrakonsWarehouse/Q10737_GrakonsWarehouse.java @@ -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 . + */ +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; + } +} \ No newline at end of file