Bläddra i källkod

Quest 357: Warehouse Keeper's Ambition. by disKret

DrLecter 19 år sedan
förälder
incheckning
943e267c35

+ 5 - 0
datapack_development/data/jscript/quests/357_WarehouseKeepersAmbition/7686-0.htm

@@ -0,0 +1,5 @@
+<html><head><body>Warehouse Freightman Silva:<br>
+Are you an adventurer? Could I speak with you privately?<br>
+I want to tell you about a new layaway service that the Iron Gate Guild is offering... This is a great chance for you to get in on the ground floor!<br>
+<a action="bypass -h Quest 357_WarehouseKeepersAmbition 7686-1.htm">Tell me more.</a>
+</body></html>

+ 5 - 0
datapack_development/data/jscript/quests/357_WarehouseKeepersAmbition/7686-0a.htm

@@ -0,0 +1,5 @@
+<html><head><body>Warehouse Freightman Silva:<br>
+Are you an adventurer? Could I speak with you privately?<br>
+I want to tell you about a new layaway service that the Iron Gate Guild is offering... This is a great chance for you to get in on the ground floor!<br>
+<font color="LEVEL">(Quest for characters 47 and above)</font>
+</body></html>

+ 4 - 0
datapack_development/data/jscript/quests/357_WarehouseKeepersAmbition/7686-1.htm

@@ -0,0 +1,4 @@
+<html><head><body>Warehouse Freightman Silva:<br>
+... Keep your voice down! If old man Sorint overhears us, I could lose my job!<br>
+Where to start? Never mind all that stuff about the layaway service... I just wanted to get you alone! I need to hire an adventurer... Someone to be my partner in a business I'm starting...<br>
+<a action="bypass -h Quest 357_WarehouseKeepersAmbition 7686-2.htm">What sort of business?</a></body></html>

+ 5 - 0
datapack_development/data/jscript/quests/357_WarehouseKeepersAmbition/7686-2.htm

@@ -0,0 +1,5 @@
+<html><head><body>Warehouse Freightman Silva:<br>
+Ah, yes, I suppose you would want to know that, wouldn't you? No harm in that.<br>
+The truth is ... The Warehouse Chief over there just announced that he'll be retiring next year. He's narrowed the choice for his successor down to old man Sorint and myself. He says that whichever of us generates the most profit in the coming year will fill his position.<br>
+This is my big chance! No more working for the man! I've been in the warehouse business since I was 10 years old! I deserve this position!<br>
+<a action="bypass -h Quest 357_WarehouseKeepersAmbition 7686-3.htm">Hey, I think he heard you.</a></body></html>

+ 7 - 0
datapack_development/data/jscript/quests/357_WarehouseKeepersAmbition/7686-3.htm

@@ -0,0 +1,7 @@
+<html><head><body>Warehouse Freightman Silva:<br>
+Oops, oh yeah, him...<br>
+Ah! Mr. Sorint. It's nothing! Yes! Nothing unusual going here, sir! Just helping this customer.<br>
+Damn that idiotic old fool... Anyway, this should be easy for you. Just bring me some <font color="LEVEL">Jade Crystals</font>. They are all the rage this year among the noblewomen of Aden! The more of them you bring me, the greater your reward shall be. Bring me <font color="LEVEL">100 or more at once</font> and I'll give you a bonus. Do we have a deal?<br>
+You'll find Jade Crystals in the <font color="LEVEL">Enchanted Valley</font>. You may have some trouble with the <font color="LEVEL">forest runners, the fline elders, the liele elders and the valley treant elders</font>. Are you taking notes?<br>
+Ah, one more thing. Enchanted Valley is too dangerous a place to walk around by yourself. So, <font color="LEVEL">bring me a few of your friends who can keep a secret. Not too many though... Once we have enough people, you can go there with them. It's too dangerous to go there alone.</font>
+</body></html>

+ 6 - 0
datapack_development/data/jscript/quests/357_WarehouseKeepersAmbition/7686-4.htm

@@ -0,0 +1,6 @@
+<html><head><body>Warehouse Freightman Silva:<br>
+Wait here a moment, please... Mr. Sorint! Would you like a cup of tea? Do you need anything? Very well! Please come this way...<br>
+That doddering old fool! I'm surprised he hasn't fallen off a cliff by now...<br>
+Have you brought me any Jade Crystals? What's with the empty hands? Have you been to the <font color="LEVEL">Enchanted Valley</font> and met any <font color="LEVEL">forest runners, fline elders, liele elders or valley treant elders</font>?<br>
+<a action="bypass -h Quest 357_WarehouseKeepersAmbition 7686-5.htm">On my way, sir!</a><br>
+<a action="bypass -h Quest 357_WarehouseKeepersAmbition 7686-8.htm">I quit.</a></body></html>

+ 4 - 0
datapack_development/data/jscript/quests/357_WarehouseKeepersAmbition/7686-5.htm

@@ -0,0 +1,4 @@
+<html><head><body>Warehouse Freightman Silva:<br>
+You do remember about the bonus for bringing me 100 or more crystals, don't you? Keep up the good work!<br>
+Pardon me... Yes? What's that, Mr. Sorint? What did you say? Oh, you want a massage? Very well, sir, but there shall be no happy ending!
+</body></html>

+ 7 - 0
datapack_development/data/jscript/quests/357_WarehouseKeepersAmbition/7686-6.htm

@@ -0,0 +1,7 @@
+<html><head><body>Warehouse Freightman Silva:<br>
+Wait here a moment, please... Mr. Sorint! Would you like a cup of tea? Do you need anything? Very well! Please come this way...<br>
+... That doddering old fool! I'm surprised he hasn't fallen off a cliff by now...<br>
+Have you brought me any Jade Crystals? Do you remember my offer? Bring me 100 or more of them and you get a bonus!<br>
+<a action="bypass -h Quest 357_WarehouseKeepersAmbition 7686-7.htm">Here are your crystals.</a><br>
+<a action="bypass -h Quest 357_WarehouseKeepersAmbition 7686-5.htm">I'll go for more crystals.</a><br>
+<a action="bypass -h Quest 357_WarehouseKeepersAmbition 7686-8.htm">I quit.</a></body></html>

+ 4 - 0
datapack_development/data/jscript/quests/357_WarehouseKeepersAmbition/7686-7.htm

@@ -0,0 +1,4 @@
+<html><head><body>Warehouse Freightman Silva:<br>
+Ah, yes, very high-quality crystals. Great job! You shall have your reward. Here you go! It's a fair price, no?<br>
+<a action="bypass -h Quest 357_WarehouseKeepersAmbition 7686-5.htm">I will bring you more Jade Crystals.</a><br>
+<a action="bypass -h Quest 357_WarehouseKeepersAmbition 7686-8.htm">I quit.</a></body></html>

+ 5 - 0
datapack_development/data/jscript/quests/357_WarehouseKeepersAmbition/7686-8.htm

@@ -0,0 +1,5 @@
+<html><head><body>Warehouse Freightman Silva:<br>
+How can you quit such a great job? I don't understand! Oh, well, you guys are a dime a dozen...<br>
+Dammit! Old man Sorint is calling me again. I wonder what it is this time... If you change your mind, come back and see me! Okay?<br>
+Mr. Sorint, did you call me? I'm coming!
+</body></html>

+ 81 - 0
datapack_development/data/jscript/quests/357_WarehouseKeepersAmbition/__init__.py

@@ -0,0 +1,81 @@
+# Made by disKret
+import sys
+from net.sf.l2j.gameserver.model.quest import State
+from net.sf.l2j.gameserver.model.quest import QuestState
+from net.sf.l2j.gameserver.model.quest.jython import QuestJython as JQuest
+
+#CUSTOM VALUES
+DROPRATE=50
+REWARD1=900  #This is paid per item
+REWARD2=10000  #Extra reward, if > 100
+
+#NPC
+SILVA = 7686
+
+#ITEMS
+JADE_CRYSTAL = 5867
+
+class Quest (JQuest) :
+
+ def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr)
+
+ def onEvent (self,event,st) :
+   htmltext = event
+   if event == "7686-2.htm" :
+     st.set("cond","1")
+     st.setState(STARTED)
+     st.playSound("ItemSound.quest_accept")
+   elif event == "7686-7.htm" :
+     count = st.getQuestItemsCount(JADE_CRYSTAL)
+     if count:
+       reward = count * REWARD1
+       if count >= 100 :
+         reward = reward + REWARD2
+       st.takeItems(JADE_CRYSTAL,-1)
+       st.giveItems(57,reward)
+     else:
+       htmltext="7686-4.htm"
+   if event == "7686-8.htm" :
+     st.playSound("ItemSound.quest_finish")
+     st.exitQuest(1)
+   return htmltext
+
+ def onTalk (Self,npc,st):
+   htmltext = "<html><head><body>I have nothing to say you</body></html>"
+   id = st.getState()
+   cond=st.getint("cond")
+   jade = st.getQuestItemsCount(JADE_CRYSTAL)
+   if cond == 0 :
+     if st.getPlayer().getLevel() >= 47 :
+       htmltext = "7686-0.htm"
+     else:
+       htmltext = "7686-0a.htm"
+       st.exitQuest(1)
+   elif not jade :
+       htmltext = "7686-4.htm"
+   elif jade :
+       htmltext = "7686-6.htm"
+   return htmltext
+
+ def onKill (self,npc,st):
+   chance = st.getRandom(100) 
+   if chance < DROPRATE :
+     st.giveItems(JADE_CRYSTAL,1)
+     st.playSound("ItemSound.quest_itemget")	
+   return
+
+QUEST       = Quest(357,"357_WarehouseKeepersAmbition","Warehouse Keepers Ambition")
+CREATED     = State('Start', QUEST)
+STARTED     = State('Started', QUEST)
+
+QUEST.setInitialState(CREATED)
+QUEST.addStartNpc(SILVA)
+CREATED.addTalkId(SILVA)
+STARTED.addTalkId(SILVA)
+
+for MOBS in range(594,598) :
+  STARTED.addKillId(MOBS)
+
+STARTED.addQuestDrop(SILVA,JADE_CRYSTAL,1)
+
+print "importing quests: 357: Warehouse Keepers Ambition"

+ 1 - 0
datapack_development/data/jscript/quests/__init__.py

@@ -134,6 +134,7 @@ __all__ = [
 '354_ConquestOfAlligatorIsland',
 '355_FamilyHonor',
 '356_DigUpTheSeaOfSpores',
+'357_WarehouseKeepersAmbition',
 '358_IllegitimateChildOfAGoddess',
 '359_ForSleeplessDeadmen',
 '360_PlunderTheirSupplies',