Little fix for 221_TestimonyOfProsperity

    Share
    avatar
    Karakan

    Posts : 403
    Join date : 2013-10-04

    Little fix for 221_TestimonyOfProsperity

    Post  Karakan on 11th July 2017, 14:37

    Fixed quest item "get" sound in 221_TestimonyOfProsperity



    Code:

    Index: __init__.py
    ===================================================================
    --- __init__.py   (revision 588)
    +++ __init__.py   (working copy)
    @@ -385,25 +385,25 @@
          if st.getInt("cond") and st.getQuestItemsCount(RING_OF_TESTIMONY1_ID) == 1  :
          if st.getQuestItemsCount(MANDRAGORA_PETAL_ID)<20 and st.getRandom(100)<30 :
            st.giveItems(MANDRAGORA_PETAL_ID,1)
    -      st.playSound("ItemSound.quest_middle")
    +      st.playSound("ItemSound.quest_itemget")
        elif npcId == 154 :
          st.set("id","0")
          if st.getInt("cond") and st.getQuestItemsCount(RING_OF_TESTIMONY1_ID) == 1  :
          if st.getQuestItemsCount(MANDRAGORA_PETAL_ID)<20 and st.getRandom(100)<60 :
            st.giveItems(MANDRAGORA_PETAL_ID,1)
    -      st.playSound("ItemSound.quest_middle")
    +      st.playSound("ItemSound.quest_itemget")
        elif npcId == 155 :
          st.set("id","0")
          if st.getInt("cond") and st.getQuestItemsCount(RING_OF_TESTIMONY1_ID) == 1  :
          if st.getQuestItemsCount(MANDRAGORA_PETAL_ID)<20 and st.getRandom(100)<80 :
            st.giveItems(MANDRAGORA_PETAL_ID,1)
    -      st.playSound("ItemSound.quest_middle")
    +      st.playSound("ItemSound.quest_itemget")
        elif npcId == 156 :
          st.set("id","0")
          if st.getInt("cond") and st.getQuestItemsCount(RING_OF_TESTIMONY1_ID) == 1  :
          if st.getQuestItemsCount(MANDRAGORA_PETAL_ID)<20 :
            st.giveItems(MANDRAGORA_PETAL_ID,1)
    -      st.playSound("ItemSound.quest_middle")
    +      st.playSound("ItemSound.quest_itemget")
        elif npcId == 228 :
          st.set("id","0")
          if st.getInt("cond") and st.getQuestItemsCount(RING_OF_TESTIMONY1_ID) == 1 and st.getQuestItemsCount(CRIMSON_MOSS_ID)<10 :
    @@ -417,38 +417,38 @@
          st.set("id","0")
          if st.getInt("cond") and st.getQuestItemsCount(RING_OF_TESTIMONY2_ID) == 1 and st.getQuestItemsCount(STAKATO_SHELL_ID) <20  :
          if st.getRandom(100)<20 :
    -      st.giveItems(STAKATO_SHELL_ID,1)
    -      st.playSound("ItemSound.quest_middle")
    +      st.giveItems(STAKATO_SHELL_ID,2)
    +      st.playSound("ItemSound.quest_itemget")
        elif npcId == 230 :
          st.set("id","0")
          if st.getInt("cond") and st.getQuestItemsCount(RING_OF_TESTIMONY2_ID) == 1 and st.getQuestItemsCount(STAKATO_SHELL_ID) <20  :
          if st.getRandom(100)<30 :
    -      st.giveItems(STAKATO_SHELL_ID,1)
    -      st.playSound("ItemSound.quest_middle")
    +      st.giveItems(STAKATO_SHELL_ID,2)
    +      st.playSound("ItemSound.quest_itemget")
        elif npcId == 232 :
          st.set("id","0")
          if st.getInt("cond") and st.getQuestItemsCount(RING_OF_TESTIMONY2_ID) == 1 and st.getQuestItemsCount(STAKATO_SHELL_ID) <20  :
          if st.getRandom(100)<50 :
    -      st.giveItems(STAKATO_SHELL_ID,1)
    -      st.playSound("ItemSound.quest_middle")
    +      st.giveItems(STAKATO_SHELL_ID,2)
    +      st.playSound("ItemSound.quest_itemget")
        elif npcId == 234 :
          st.set("id","0")
          if st.getInt("cond") and st.getQuestItemsCount(RING_OF_TESTIMONY2_ID) == 1 and st.getQuestItemsCount(STAKATO_SHELL_ID) <20 :
          if st.getRandom(100)<60 :
    -      st.giveItems(STAKATO_SHELL_ID,1)
    -      st.playSound("ItemSound.quest_middle")
    +      st.giveItems(STAKATO_SHELL_ID,2)
    +      st.playSound("ItemSound.quest_itemget")
        elif npcId == 231 :
          st.set("id","0")
          if st.getInt("cond") and st.getQuestItemsCount(RING_OF_TESTIMONY2_ID) == 1 and st.getQuestItemsCount(INPICIO_SAC_ID) <20  :
          if st.getRandom(100)<50 :
    -      st.giveItems(INPICIO_SAC_ID,1)
    -      st.playSound("ItemSound.quest_middle")
    +      st.giveItems(INPICIO_SAC_ID,2)
    +      st.playSound("ItemSound.quest_itemget")
        elif npcId == 233 :
          st.set("id","0")
          if st.getInt("cond") and st.getQuestItemsCount(RING_OF_TESTIMONY2_ID) == 1 and st.getQuestItemsCount(SPIDER_THORN_ID) <20  :
          if st.getRandom(100)<50 :
    -      st.giveItems(SPIDER_THORN_ID,1)
    -      st.playSound("ItemSound.quest_middle")
    +      st.giveItems(SPIDER_THORN_ID,2)
    +      st.playSound("ItemSound.quest_itemget")
        return
     
     QUEST      = Quest(221,"221_TestimonyOfProsperity","Testimony Of Prosperity")


      Current date/time is 28th July 2017, 21:54