From a2743c1fd95a53fbd385383762d5706ff12df183 Mon Sep 17 00:00:00 2001 From: Adry_85 <Adrya85@hotmail.it> Date: Fri, 13 Dec 2013 23:04:31 +0000 Subject: [PATCH] BETA: Quest '''Beyond the Hills of Winter''' (116) in Java. --- L2J_DataPack_BETA/dist/game/data/scripts.cfg | 2 +- .../116_BeyondTheHillsOfWinter/30535-00.htm | 3 - .../116_BeyondTheHillsOfWinter/30535-01.htm | 5 - .../116_BeyondTheHillsOfWinter/30535-02.htm | 8 - .../116_BeyondTheHillsOfWinter/30535-03.htm | 6 - .../116_BeyondTheHillsOfWinter/30535-04.htm | 8 - .../116_BeyondTheHillsOfWinter/30535-05.htm | 13 -- .../116_BeyondTheHillsOfWinter/32052-01.htm | 10 - .../116_BeyondTheHillsOfWinter/__init__.py | 116 ----------- .../30535-01.htm | 4 + .../30535-02.htm | 4 + .../30535-03.htm | 4 + .../30535-04.html | 5 + .../30535-05.html | 6 + .../30535-06.html | 4 + .../30535-07.html | 4 + .../32052-01.html} | 6 +- .../32052-02.html | 8 + .../32052-03.html} | 2 +- .../Q00116_BeyondTheHillsOfWinter.java | 182 ++++++++++++++++++ .../dist/sql/game/updates/20131213update.sql | 1 + 21 files changed, 227 insertions(+), 174 deletions(-) delete mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/116_BeyondTheHillsOfWinter/30535-00.htm delete mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/116_BeyondTheHillsOfWinter/30535-01.htm delete mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/116_BeyondTheHillsOfWinter/30535-02.htm delete mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/116_BeyondTheHillsOfWinter/30535-03.htm delete mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/116_BeyondTheHillsOfWinter/30535-04.htm delete mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/116_BeyondTheHillsOfWinter/30535-05.htm delete mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/116_BeyondTheHillsOfWinter/32052-01.htm delete mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/116_BeyondTheHillsOfWinter/__init__.py create mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00116_BeyondTheHillsOfWinter/30535-01.htm create mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00116_BeyondTheHillsOfWinter/30535-02.htm create mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00116_BeyondTheHillsOfWinter/30535-03.htm create mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00116_BeyondTheHillsOfWinter/30535-04.html create mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00116_BeyondTheHillsOfWinter/30535-05.html create mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00116_BeyondTheHillsOfWinter/30535-06.html create mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00116_BeyondTheHillsOfWinter/30535-07.html rename L2J_DataPack_BETA/dist/game/data/scripts/quests/{116_BeyondTheHillsOfWinter/32052-00.htm => Q00116_BeyondTheHillsOfWinter/32052-01.html} (64%) create mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00116_BeyondTheHillsOfWinter/32052-02.html rename L2J_DataPack_BETA/dist/game/data/scripts/quests/{116_BeyondTheHillsOfWinter/32052-02.htm => Q00116_BeyondTheHillsOfWinter/32052-03.html} (92%) create mode 100644 L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00116_BeyondTheHillsOfWinter/Q00116_BeyondTheHillsOfWinter.java create mode 100644 L2J_DataPack_BETA/dist/sql/game/updates/20131213update.sql diff --git a/L2J_DataPack_BETA/dist/game/data/scripts.cfg b/L2J_DataPack_BETA/dist/game/data/scripts.cfg index 85540db5a4..2bd218bb67 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts.cfg +++ b/L2J_DataPack_BETA/dist/game/data/scripts.cfg @@ -299,7 +299,7 @@ quests/Q00112_WalkOfFate/Q00112_WalkOfFate.java quests/Q00113_StatusOfTheBeaconTower/Q00113_StatusOfTheBeaconTower.java quests/Q00114_ResurrectionOfAnOldManager/Q00114_ResurrectionOfAnOldManager.java quests/Q00115_TheOtherSideOfTruth/Q00115_TheOtherSideOfTruth.java -quests/116_BeyondTheHillsOfWinter/__init__.py +quests/Q00116_BeyondTheHillsOfWinter/Q00116_BeyondTheHillsOfWinter.java quests/117_OceanOfDistantStar/__init__.py quests/118_ToLeadAndBeLed/__init__.py quests/Q00119_LastImperialPrince/Q00119_LastImperialPrince.java diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/116_BeyondTheHillsOfWinter/30535-00.htm b/L2J_DataPack_BETA/dist/game/data/scripts/quests/116_BeyondTheHillsOfWinter/30535-00.htm deleted file mode 100644 index c769978527..0000000000 --- a/L2J_DataPack_BETA/dist/game/data/scripts/quests/116_BeyondTheHillsOfWinter/30535-00.htm +++ /dev/null @@ -1,3 +0,0 @@ -<html><body>Filaur of Gray Pillar Guild:<br> -(Only dwarf-characters level 30 and above are permitted to undertake this quest.) -</body></html> \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/116_BeyondTheHillsOfWinter/30535-01.htm b/L2J_DataPack_BETA/dist/game/data/scripts/quests/116_BeyondTheHillsOfWinter/30535-01.htm deleted file mode 100644 index 16fa0f3fae..0000000000 --- a/L2J_DataPack_BETA/dist/game/data/scripts/quests/116_BeyondTheHillsOfWinter/30535-01.htm +++ /dev/null @@ -1,5 +0,0 @@ -<html><body>Filaur of Gray Pillar Guild:<br> -Egads! I almost didn't notice you! Pardon my ignorance as I am old and absent-minded. - I however must still ask a favor of you.<br> -<a action="bypass -h Quest 116_BeyondTheHillsOfWinter 30535-02.htm">Agree to do it.</a> -</body></html> diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/116_BeyondTheHillsOfWinter/30535-02.htm b/L2J_DataPack_BETA/dist/game/data/scripts/quests/116_BeyondTheHillsOfWinter/30535-02.htm deleted file mode 100644 index 160fdd49af..0000000000 --- a/L2J_DataPack_BETA/dist/game/data/scripts/quests/116_BeyondTheHillsOfWinter/30535-02.htm +++ /dev/null @@ -1,8 +0,0 @@ -<html><body>Filaur of the Gray Pillar Guild:<br> -This is fortuitous timing! Come closer, so that my aging eyes can see you - better... ah, yes, I can see that you are an experinced adventurer. I have - a task that requires the skills of someone just like you.<br> -Before you embark on it, however, you'll need some things. Let me think...yes, - I believe that <font color="LEVEL">20 Bandages, 5 Energy Stones and 10 - Skeleton Keys</font> should be it. Bring them to me as quickly as you can! -</body></html> diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/116_BeyondTheHillsOfWinter/30535-03.htm b/L2J_DataPack_BETA/dist/game/data/scripts/quests/116_BeyondTheHillsOfWinter/30535-03.htm deleted file mode 100644 index fb7ff3e6a6..0000000000 --- a/L2J_DataPack_BETA/dist/game/data/scripts/quests/116_BeyondTheHillsOfWinter/30535-03.htm +++ /dev/null @@ -1,6 +0,0 @@ -<html><body>Filaur of the Gray Pillar Guild:<br> -Ah, you have returned! Most fortunate. Thank you for these; I need to send them - to <font color="LEVEL">Railroad Worker Obi in the Plunderous Plains</font>.<br> -Ha! I imagine you can guess what I need you to do next...<br> -<a action="bypass -h Quest 116_BeyondTheHillsOfWinter 30535-05.htm">"Yes, I can."</a> -</body></html> diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/116_BeyondTheHillsOfWinter/30535-04.htm b/L2J_DataPack_BETA/dist/game/data/scripts/quests/116_BeyondTheHillsOfWinter/30535-04.htm deleted file mode 100644 index 160fdd49af..0000000000 --- a/L2J_DataPack_BETA/dist/game/data/scripts/quests/116_BeyondTheHillsOfWinter/30535-04.htm +++ /dev/null @@ -1,8 +0,0 @@ -<html><body>Filaur of the Gray Pillar Guild:<br> -This is fortuitous timing! Come closer, so that my aging eyes can see you - better... ah, yes, I can see that you are an experinced adventurer. I have - a task that requires the skills of someone just like you.<br> -Before you embark on it, however, you'll need some things. Let me think...yes, - I believe that <font color="LEVEL">20 Bandages, 5 Energy Stones and 10 - Skeleton Keys</font> should be it. Bring them to me as quickly as you can! -</body></html> diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/116_BeyondTheHillsOfWinter/30535-05.htm b/L2J_DataPack_BETA/dist/game/data/scripts/quests/116_BeyondTheHillsOfWinter/30535-05.htm deleted file mode 100644 index bf3c029e8d..0000000000 --- a/L2J_DataPack_BETA/dist/game/data/scripts/quests/116_BeyondTheHillsOfWinter/30535-05.htm +++ /dev/null @@ -1,13 +0,0 @@ -<html><body>Filaur of the Gray Pillar Guild:<br> -My thanks for the supplies. I now need you to deliver them to where they are -needed most. Travel through the <font color="LEVEL">Mining Zone Passage</font> - that you will find south of here. From there, you will come to see the -Plunderous Plains.<br> -Once there, you should easily fond the <font color="LEVEL">Train Station</font> - that we Dwarves originally built. Find Railroad Worker Obi and give these -supplies to him.<br> -It is a long journey, and there are a few people to see along the way... If - your devotion wanes, just think back to all of our guildsmen who are waiting - for these supplies and how much they are counting on you.<br> -Be careful and good luck! -</body></html> diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/116_BeyondTheHillsOfWinter/32052-01.htm b/L2J_DataPack_BETA/dist/game/data/scripts/quests/116_BeyondTheHillsOfWinter/32052-01.htm deleted file mode 100644 index 1c5c3e7145..0000000000 --- a/L2J_DataPack_BETA/dist/game/data/scripts/quests/116_BeyondTheHillsOfWinter/32052-01.htm +++ /dev/null @@ -1,10 +0,0 @@ -<html><body>Railroad Worker Obi:<br> -This symbol is used by the Gray Pillar Guild, of which we are members.<br> -Well, shall we open it together?<br> -Hmm... Unless someone can use D-Grade materials, it doen't seem very -helpful!<br> -What shall we do with it? Do you want it, or do you want me to give you someone -adena for it?<br> -<a action="bypass -h Quest 116_BeyondTheHillsOfWinter materials">"I'll take the materials."</a><br> -<a action="bypass -h Quest 116_BeyondTheHillsOfWinter adena">"I'll take the adena."</a><br> -</body></html> \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/116_BeyondTheHillsOfWinter/__init__.py b/L2J_DataPack_BETA/dist/game/data/scripts/quests/116_BeyondTheHillsOfWinter/__init__.py deleted file mode 100644 index 1ca081fcf6..0000000000 --- a/L2J_DataPack_BETA/dist/game/data/scripts/quests/116_BeyondTheHillsOfWinter/__init__.py +++ /dev/null @@ -1,116 +0,0 @@ -# Made by Ky6uk <xmpp:ky6uk@jabber.ru> -# this script is part of the Official L2J Datapack Project. -# Visit http://www.l2jdp.com/forum/ for more details. - -#---------------------------------------------------------------------------- -# This quest starts in the Dwarven Village in the Elder Council with -# Gray Pillar Member Filaur. He asks you to bring 20 bandages, -# 5 Energy Stones and 10 "skeleton keys" which are just Key of Thief. -# You can get these at the Grocery store nearby, it cost me 15,590 to do so. -# Reward: 1650 SSD or 16500 adena -#---------------------------------------------------------------------------- - -import sys -from com.l2jserver import Config -from com.l2jserver.gameserver.model.quest import State -from com.l2jserver.gameserver.model.quest import QuestState -from com.l2jserver.gameserver.model.quest import Quest as JQuest - -qn = "116_BeyondTheHillsOfWinter" - -# NPCs -FILAUR = 30535 -OBI = 32052 - -# ITEMs -BANDAGE = 1833 -ESTONE = 5589 -TKEY = 1661 -SGOODS = 8098 -SS = 1463 -ADENA = 57 - -class Quest (JQuest) : - - def __init__(self,id, name, descr) : - JQuest.__init__(self, id, name, descr) - self.questItemIds = [SGOODS] - - def onAdvEvent (self,event,npc, player) : - htmltext = event - st = player.getQuestState(qn) - if not st : return - id = st.getState() - cond = st.getInt("cond") - if st.getPlayer().getClassId().getId() not in [0x35, 0x36, 0x37, 0x38, 0x39, 0x75, 0x76] : - htmltext = "30535-00.htm" - elif event == "30535-02.htm" : - st.set("cond","1") - st.setState(State.STARTED) - st.playSound("ItemSound.quest_accept") - elif event == "30535-05.htm" : - st.giveItems(SGOODS, 1) - st.playSound("ItemSound.quest_itemget") - st.set("cond","3") - elif event == "32052-01.htm" : - htmltext = "32052-01.htm" - elif event == "materials" : - st.takeItems(SGOODS, -1) - st.playSound("ItemSound.quest_itemget") - st.rewardItems(SS,1650) - st.addExpAndSp(82792,4981) - htmltext = "32052-02.htm" - st.playSound("ItemSound.quest_finish") - st.exitQuest(False) - elif event == "adena" : - st.takeItems(SGOODS, -1) - st.playSound("ItemSound.quest_itemget") - st.giveItems(ADENA, 16500) - st.addExpAndSp(82792,4981) - htmltext = "32052-02.htm" - st.playSound("ItemSound.quest_finish") - st.exitQuest(False) - else : - htmltext = Quest.getNoQuestMsg(player) - return htmltext - - def onTalk (self, npc, player) : - htmltext = Quest.getNoQuestMsg(player) - st = player.getQuestState(qn) - if not st : return htmltext - - npcId = npc.getId() - id = st.getState() - cond = st.getInt("cond") - if id == State.COMPLETED : - htmltext = Quest.getAlreadyCompletedMsg(player) - elif npcId == FILAUR : - if cond == 0 : - if player.getLevel() >= 30 : - htmltext = "30535-01.htm" - else: - htmltext = "30535-00.htm" - st.exitQuest(1) - elif cond == 1 : - if st.getQuestItemsCount(BANDAGE) >= 20 and st.getQuestItemsCount(ESTONE) >= 5 and st.getQuestItemsCount(TKEY) >= 10 : - htmltext = "30535-03.htm" - st.takeItems(BANDAGE, 20) - st.takeItems(ESTONE, 5) - st.takeItems(TKEY, 10) - st.set("cond","2") - else : - htmltext = "30535-04.htm" - elif cond == 2 : - htmltext = "30535-03.htm" - elif cond == 3 : - htmltext = "30535-05.htm" - elif npcId == OBI and st.getQuestItemsCount(SGOODS) == 1 : - if cond == 3 : - htmltext = "32052-00.htm" - return htmltext - -QUEST = Quest(116,qn,"Beyond The Hills Of Winter") - -QUEST.addStartNpc(FILAUR) -QUEST.addTalkId(FILAUR) -QUEST.addTalkId(OBI) diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00116_BeyondTheHillsOfWinter/30535-01.htm b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00116_BeyondTheHillsOfWinter/30535-01.htm new file mode 100644 index 0000000000..0704af0c95 --- /dev/null +++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00116_BeyondTheHillsOfWinter/30535-01.htm @@ -0,0 +1,4 @@ +<html><body>Filaur of the Gray Pillar Guild:<br> +Egads! I almost didn't notice you! Pardon my ignorance as I am old and absent-minded. I however must still ask a favor of you.<br> +<a action="bypass -h Quest Q00116_BeyondTheHillsOfWinter 30535-02.htm">Agree to do it.</a> +</body></html> diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00116_BeyondTheHillsOfWinter/30535-02.htm b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00116_BeyondTheHillsOfWinter/30535-02.htm new file mode 100644 index 0000000000..8a2021817c --- /dev/null +++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00116_BeyondTheHillsOfWinter/30535-02.htm @@ -0,0 +1,4 @@ +<html><body>Filaur of the Gray Pillar Guild:<br> +This is fortuitous timing! Come closer, so that my aging eyes can see you better... ah, yes, I can see that you are an experienced adventurer. I have a task that requires the skills of someone just like you.<br> +Before you embark on it, however, you'll need some things. Let me think...yes, I believe that <font color="LEVEL">20 Bandages, 5 Energy Stones and 10 Skeleton Keys</font> should be it. Bring them to me as quickly as you can! +</body></html> diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00116_BeyondTheHillsOfWinter/30535-03.htm b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00116_BeyondTheHillsOfWinter/30535-03.htm new file mode 100644 index 0000000000..80d4334fff --- /dev/null +++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00116_BeyondTheHillsOfWinter/30535-03.htm @@ -0,0 +1,4 @@ +<html><body>Filaur of the Gray Pillar Guild:<br> +This is fortuitous timing! Come closer... oh, I'm sorry. I have a task that needs doing, but I'm afraid it will require very experienced adventurers. My apologies.<br> + (Only characters level 30 and above are permitted to take on the quest.) +</body></html> diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00116_BeyondTheHillsOfWinter/30535-04.html b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00116_BeyondTheHillsOfWinter/30535-04.html new file mode 100644 index 0000000000..b906ae6a6b --- /dev/null +++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00116_BeyondTheHillsOfWinter/30535-04.html @@ -0,0 +1,5 @@ +<html><body>Filaur of the Gray Pillar Guild:<br> +Ah, you have returned! Most fortunate. Thank you for these; I need to send them to <font color="LEVEL">Railroad Worker Obi in the Plunderous Plains</font>.<br> +Ha! I imagine you can guess what I need you to do next...<br> +<a action="bypass -h Quest Q00116_BeyondTheHillsOfWinter 30535-05.html">"Yes, I can."</a> +</body></html> diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00116_BeyondTheHillsOfWinter/30535-05.html b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00116_BeyondTheHillsOfWinter/30535-05.html new file mode 100644 index 0000000000..c5063fff74 --- /dev/null +++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00116_BeyondTheHillsOfWinter/30535-05.html @@ -0,0 +1,6 @@ +<html><body>Filaur of the Gray Pillar Guild:<br> +My thanks for the supplies. I now need you to deliver them to where they are needed most. Travel through the<font color="LEVEL"> Mining Zone Passage </font>that you will find south of here. From there, you will come to see the<font color="LEVEL"> Plunderous Plains.</font><br> +Once there, you should easily find the<font color="LEVEL"> Train Station </font>that we Dwarves originally built. Find<font color="LEVEL"> Railroad Worker Obi </font>and give these supplies to him.<br> +It is a long journey, and there are a few people to see along the way... If your devotion wanes, just think back to all of our guildsmen who are waiting for these supplies and how much they are counting on you.<br> +Be careful and good luck! +</body></html> diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00116_BeyondTheHillsOfWinter/30535-06.html b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00116_BeyondTheHillsOfWinter/30535-06.html new file mode 100644 index 0000000000..cd7d08e734 --- /dev/null +++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00116_BeyondTheHillsOfWinter/30535-06.html @@ -0,0 +1,4 @@ +<html><body>Filaur of the Gray Pillar Guild:<br> +Come, now, I was specific in my request! <font color="LEVEL">20 bandages, 5 energy stones and 10 skeleton keys</font> - that's what's needed!<br> +Quickly, get them and return! Time passes; waste none of it! +</body></html> diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00116_BeyondTheHillsOfWinter/30535-07.html b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00116_BeyondTheHillsOfWinter/30535-07.html new file mode 100644 index 0000000000..d55c7a3224 --- /dev/null +++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00116_BeyondTheHillsOfWinter/30535-07.html @@ -0,0 +1,4 @@ +<html><body>Filaur of the Gray Pillar Guild:<br> +Travel the Mining Zone Passage and follow the railway until you arrive at the train station.<br> +Find <font color="LEVEL">Railroad Worker Obi</font> and deliver these supplies to him. +</body></html> diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/116_BeyondTheHillsOfWinter/32052-00.htm b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00116_BeyondTheHillsOfWinter/32052-01.html similarity index 64% rename from L2J_DataPack_BETA/dist/game/data/scripts/quests/116_BeyondTheHillsOfWinter/32052-00.htm rename to L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00116_BeyondTheHillsOfWinter/32052-01.html index 7dcc380eaa..049c41fa35 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/quests/116_BeyondTheHillsOfWinter/32052-00.htm +++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00116_BeyondTheHillsOfWinter/32052-01.html @@ -1,8 +1,8 @@ <html><body>Railroad Worker Obi:<br> -It looks like it came from Filaur of the Gray Pillar Guild. All right...<br> +It looks like it came from Filaur of the Gray Pillar Guild. All right... <br> I didn't see this coming.<br> We may still survive after all!<br> What a relief!<br> Hmm... I think this is for you...<br> -<a action="bypass -h Quest 116_BeyondTheHillsOfWinter 32052-01.htm">"What?"</a> -</body></html> \ No newline at end of file +<a action="bypass -h Quest Q00116_BeyondTheHillsOfWinter 32052-02.html">"What?"</a> +</body></html> diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00116_BeyondTheHillsOfWinter/32052-02.html b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00116_BeyondTheHillsOfWinter/32052-02.html new file mode 100644 index 0000000000..0e57084d2d --- /dev/null +++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00116_BeyondTheHillsOfWinter/32052-02.html @@ -0,0 +1,8 @@ +<html><body>Railroad Worker Obi:<br> +This symbol is used by the Gray Pillar Guild, of which we are members.<br> +Well, shall we open it together? <br> +Hmm... Unless someone can use D-Grade materials, it doesn't seem very helpful!<br> +What shall we do with it? Do you want it, or do you want me to give you some adena for it?<br> +<a action="bypass -h Quest Q00116_BeyondTheHillsOfWinter MATERIAL">"I'll take the materials."</a><br> +<a action="bypass -h Quest Q00116_BeyondTheHillsOfWinter ADENA">"I'll take the adena."</a> +</body></html> diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/116_BeyondTheHillsOfWinter/32052-02.htm b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00116_BeyondTheHillsOfWinter/32052-03.html similarity index 92% rename from L2J_DataPack_BETA/dist/game/data/scripts/quests/116_BeyondTheHillsOfWinter/32052-02.htm rename to L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00116_BeyondTheHillsOfWinter/32052-03.html index fb41e2ea37..5b1f0bca7d 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/quests/116_BeyondTheHillsOfWinter/32052-02.htm +++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00116_BeyondTheHillsOfWinter/32052-03.html @@ -3,4 +3,4 @@ Ok, here it goes...<br> My sister Abey and I have been looking for a skilled adventurer like you!<br> Abey sleeps a lot so it might be hard to catch her...<br> If you have some free time, please come back to see us. Have a good trip! -</body></html> \ No newline at end of file +</body></html> diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00116_BeyondTheHillsOfWinter/Q00116_BeyondTheHillsOfWinter.java b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00116_BeyondTheHillsOfWinter/Q00116_BeyondTheHillsOfWinter.java new file mode 100644 index 0000000000..bc9c0d3467 --- /dev/null +++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00116_BeyondTheHillsOfWinter/Q00116_BeyondTheHillsOfWinter.java @@ -0,0 +1,182 @@ +/* + * Copyright (C) 2004-2013 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.Q00116_BeyondTheHillsOfWinter; + +import com.l2jserver.gameserver.model.actor.L2Npc; +import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; +import com.l2jserver.gameserver.model.holders.ItemHolder; +import com.l2jserver.gameserver.model.quest.Quest; +import com.l2jserver.gameserver.model.quest.QuestState; +import com.l2jserver.gameserver.model.quest.State; + +/** + * Beyond the Hills of Winter (116) + * @author Adry_85 + */ +public final class Q00116_BeyondTheHillsOfWinter extends Quest +{ + // NPCs + private static final int FILAUR = 30535; + private static final int OBI = 32052; + // Items + private static final ItemHolder THIEF_KEY = new ItemHolder(1661, 10); + private static final ItemHolder BANDAGE = new ItemHolder(1833, 20); + private static final ItemHolder ENERGY_STONE = new ItemHolder(5589, 5); + private static final int SUPPLYING_GOODS = 8098; + // Reward + private static final int SOULSHOT_D = 1463; + // Misc + private static final int MIN_LEVEL = 30; + + private Q00116_BeyondTheHillsOfWinter() + { + super(116, Q00116_BeyondTheHillsOfWinter.class.getSimpleName(), "Beyond the Hills of Winter"); + addStartNpc(FILAUR); + addTalkId(FILAUR, OBI); + registerQuestItems(SUPPLYING_GOODS); + } + + @Override + public String onAdvEvent(String event, L2Npc npc, L2PcInstance player) + { + final QuestState st = getQuestState(player, false); + if (st == null) + { + return null; + } + + String htmltext = null; + switch (event) + { + case "30535-02.htm": + { + st.startQuest(); + st.setMemoState(1); + htmltext = event; + break; + } + case "30535-05.html": + { + if (st.isMemoState(1)) + { + st.setMemoState(2); + st.setCond(2, true); + st.giveItems(SUPPLYING_GOODS, 1); + htmltext = event; + } + break; + } + case "32052-02.html": + { + if (st.isMemoState(2)) + { + htmltext = event; + } + break; + } + case "MATERIAL": + { + if (st.isMemoState(2)) + { + st.rewardItems(SOULSHOT_D, 1740); + st.addExpAndSp(82792, 4981); + st.exitQuest(false, true); + htmltext = "32052-03.html"; + } + break; + } + case "ADENA": + { + if (st.isMemoState(2)) + { + st.giveAdena(17387, true); + st.addExpAndSp(82792, 4981); + st.exitQuest(false, true); + htmltext = "32052-03.html"; + } + break; + } + } + return htmltext; + } + + @Override + public String onTalk(L2Npc npc, L2PcInstance player) + { + QuestState st = getQuestState(player, true); + String htmltext = getNoQuestMsg(player); + if (st == null) + { + return htmltext; + } + + switch (st.getState()) + { + case State.COMPLETED: + { + if (npc.getId() == FILAUR) + { + htmltext = getAlreadyCompletedMsg(player); + } + break; + } + case State.CREATED: + { + if (npc.getId() == FILAUR) + { + htmltext = (player.getLevel() >= MIN_LEVEL) ? "30535-01.htm" : "30535-03.htm"; + } + break; + } + case State.STARTED: + { + switch (npc.getId()) + { + case FILAUR: + { + if (st.isMemoState(1)) + { + htmltext = (hasAllItems(player, true, THIEF_KEY, BANDAGE, ENERGY_STONE)) ? "30535-04.html" : "30535-06.html"; + } + else if (st.isMemoState(2)) + { + htmltext = "30535-07.html"; + } + break; + } + case OBI: + { + if (st.isMemoState(2) && st.hasQuestItems(SUPPLYING_GOODS)) + { + htmltext = "32052-01.html"; + } + break; + } + } + break; + } + } + return htmltext; + } + + public static void main(String args[]) + { + new Q00116_BeyondTheHillsOfWinter(); + } +} diff --git a/L2J_DataPack_BETA/dist/sql/game/updates/20131213update.sql b/L2J_DataPack_BETA/dist/sql/game/updates/20131213update.sql new file mode 100644 index 0000000000..cbb2301f68 --- /dev/null +++ b/L2J_DataPack_BETA/dist/sql/game/updates/20131213update.sql @@ -0,0 +1 @@ +UPDATE character_quests SET name='Q00116_BeyondTheHillsOfWinter' WHERE name='116_BeyondTheHillsOfWinter'; \ No newline at end of file -- GitLab