Ver código fonte

Chest/bait saga fix (tnx zhyla)

DrLecter 17 anos atrás
pai
commit
725c6f2189

+ 3 - 3
datapack_development/data/scripts/quests/27_ChestCaughtWithABaitOfWind/__init__.py

@@ -50,9 +50,9 @@ class Quest (JQuest) :
     npcId=npc.getNpcId()
     id = st.getState()
     if id == State.CREATED :
-      req = player.getQuestState("50_LanoscoSpecialBait")
+      req = player.getQuestState("50_LanoscosSpecialBait")
       if req : reqst = req.getState()
-      if player.getLevel() >= 27 and req and reqst == 'State.COMPLETED' :
+      if player.getLevel() >= 27 and req and reqst == State.COMPLETED :
         htmltext = "31570-01.htm"
       else :
         st.exitQuest(1)
@@ -79,4 +79,4 @@ QUEST=Quest(27,qn,"Chest Caught With A Bait Of Wind")
 
 QUEST.addStartNpc(LANOSCO)
 QUEST.addTalkId(LANOSCO)
-QUEST.addTalkId(SHALING)
+QUEST.addTalkId(SHALING)

+ 2 - 2
datapack_development/data/scripts/quests/28_ChestCaughtWithABaitOfIcyAir/__init__.py

@@ -60,7 +60,7 @@ class Quest (JQuest) :
                 if PlayerLevel >= 36 :
                     OFullesSpecialBait= player.getQuestState("51_OFullesSpecialBait")
                     if OFullesSpecialBait :
-                        if OFullesSpecialBait.getState() == 'State.COMPLETED':
+                        if OFullesSpecialBait.getState() == State.COMPLETED :
                             htmltext="31572-01.htm"
                         else :
                             htmltext="31572-02.htm"
@@ -89,4 +89,4 @@ QUEST      = Quest(28,qn,"Chest Caught With A Bait Of Icy Air")
 
 QUEST.addStartNpc(OFulle)
 QUEST.addTalkId(OFulle)
-QUEST.addTalkId(Kiki)
+QUEST.addTalkId(Kiki)

+ 2 - 2
datapack_development/data/scripts/quests/29_ChestCaughtWithABaitOfEarth/__init__.py

@@ -59,7 +59,7 @@ class Quest (JQuest) :
                 if PlayerLevel >= 48 :
                     WilliesSpecialBait = player.getQuestState("52_WilliesSpecialBait")
                     if WilliesSpecialBait:
-                        if WilliesSpecialBait.getState() == 'State.COMPLETED':
+                        if WilliesSpecialBait.getState() == State.COMPLETED :
                             htmltext="31574-01.htm"
                         else :
                             htmltext="31574-02.htm"
@@ -89,4 +89,4 @@ QUEST       = Quest(29,qn,"Chest Caught With A Bait Of Earth")
 
 QUEST.addStartNpc(Willie)
 QUEST.addTalkId(Willie)
-QUEST.addTalkId(Anabel)
+QUEST.addTalkId(Anabel)

+ 2 - 2
datapack_development/data/scripts/quests/30_ChestCaughtWithABaitOfFire/__init__.py

@@ -52,7 +52,7 @@ class Quest (JQuest) :
     if id == State.CREATED :
       req = player.getQuestState("53_LinnaeusSpecialBait")
       if req : reqst = req.getState()
-      if player.getLevel() >= 61 and req and reqst == 'State.COMPLETED' :
+      if player.getLevel() >= 61 and req and reqst == State.COMPLETED :
         htmltext = "31577-01.htm"
       else :
         st.exitQuest(1)
@@ -79,4 +79,4 @@ QUEST=Quest(30,qn,"Chest Caught With A Bait Of Fire")
 
 QUEST.addStartNpc(LINNAEUS)
 QUEST.addTalkId(LINNAEUS)
-QUEST.addTalkId(RUKAL)
+QUEST.addTalkId(RUKAL)