A Project for Chronicle 4 based on L2JServer.


    Little fix for 221_TestimonyOfProsperity

    Share
    avatar
    Karakan

    Posts : 421
    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 :

    avatar
    DnR
    Admin
    Admin

    Posts : 1023
    Join date : 2012-12-03

    Re: Little fix for 221_TestimonyOfProsperity

    Post  DnR on 24th August 2017, 00:12

    Correction added to trunk.

      Current date/time is 24th September 2017, 11:26