376_GiantsExploration1

    Share
    avatar
    Karakan

    Posts : 406
    Join date : 2013-10-04

    376_GiantsExploration1

    Post  Karakan on 27th September 2014, 16:42

    It seems that the 2nd part of this quest cant be started.
    The Mysterious Book never gets dropped.

    No error msgs in the logs.



    Code:
     def onKill (self,npc,player,isPet) :
      # a Mysterious Book may drop to any party member that still hasn't gotten it
      partyMember = self.getRandomPartyMember(player,"awaitBook","1")
      if partyMember :
          st = partyMember.getQuestState("376_GiantsExploration1")
          if st :
            drop = st.getRandom(100)
            if drop < DROP_RATE_2  and not st.getQuestItemsCount(MST_BK):
                st.giveItems(MST_BK,1)
                st.unset("awaitBook")
                st.playSound("ItemSound.quest_middle")
      # In addition, drops go to one party member among those who are either in
      # STARTING or in STARTED state
      partyMember1 = self.getRandomPartyMemberState(player, STARTING)
      partyMember2 = self.getRandomPartyMemberState(player, STARTED)
      partyMember = partyMember1  # initialize
      # if there exists no party members for either state, do nothing
      if not partyMember1 and not partyMember2 : return
      # if there exists only party members for STARTED, use the one we got from STARTED
      elif not partyMember1 :
          partyMember =  partyMember2
      # if there exists only party members for STARTING, use the one we got from STARTING
      elif not partyMember2 :
          partyMember =  partyMember1
      # if there exist party members from both states, choose one randomly
      else :
          if partyMember.getQuestState("376_GiantsExploration1").getRandom(2) :
              partyMember = partyMember2
      st = partyMember.getQuestState("376_GiantsExploration1")
      numItems, chance = divmod(DROP_RATE,MAX)
      if st.getRandom(MAX) < chance :
          numItems = numItems + 1
      if int(numItems) != 0 :
          st.giveItems(ANC_SCROLL,int(numItems))
          st.playSound("ItemSound.quest_itemget")
      return 

    DnR
    Admin
    Admin

    Posts : 985
    Join date : 2012-12-03

    Re: 376_GiantsExploration1

    Post  DnR on 28th September 2014, 15:07

    I see. I'm gonna fix this.
    Thanks a lot for reporting.

      Current date/time is 18th August 2017, 04:13