Browse Source

JYTHON: Redoing [4394] properly. Leto Lizardman Wizard should NOT give quest items.

Emperorc 17 years ago
parent
commit
54053e4982

+ 4 - 6
datapack_development/data/scripts/quests/226_TestOfHealer/__init__.py

@@ -51,7 +51,6 @@ TATOMA:[2,1,0,"3"],
 LETO_LEADER:[11,1,SECRET_LETTER1,"12"],
 LETO_ASSASSIN:[14,1,SECRET_LETTER2,"15"],
 LETO_SNIPER:[16,1,SECRET_LETTER3,"17"],
-LETO_WIZARD:[18,1,SECRET_LETTER4,"19"],
 LETO_LORD:[18,1,SECRET_LETTER4,"19"]
 }
 
@@ -135,7 +134,6 @@ class Quest (JQuest) :
           st.set("cond","22")
     return htmltext
 
-
  def onTalk (self,npc,player):
    htmltext = "<html><body>You are either not on a quest that involves this NPC, or you don't meet this NPC's minimum quest requirements.</body></html>"
    st = player.getQuestState(qn)
@@ -274,9 +272,9 @@ class Quest (JQuest) :
    st = player.getQuestState(qn)
    if not st : return 
    if st.getState() != State.STARTED : return 
-   
    npcId = npc.getNpcId()
-   condition,maxcount,item,next_condition=DROPLIST[npcId] 
+   if not npcId in DROPLIST.keys() : return
+   condition,maxcount,item,next_condition=DROPLIST[npcId]
    if st.getInt("cond")==condition and st.getQuestItemsCount(item)<maxcount:
      if item != 0:
        st.giveItems(item,1)
@@ -294,5 +292,5 @@ QUEST.addTalkId(BANDELLOS)
 for npcId in [SORIUS,ALLANA,PERRIN,GUPU,ORPHAN,WINDY,MYSTERIOUS,PIPER,SLEIN,KEIN,KRISTINA,DAURIN]:
   QUEST.addTalkId(npcId)
 
-for mobId in [LETO_LEADER,LETO_ASSASSIN,LETO_SNIPER,LETO_LORD,TATOMA]:
-  QUEST.addKillId(mobId)
+for mobId in DROPLIST.keys():
+  QUEST.addKillId(mobId)