Jump to content

Question

Posted (edited)

Hi,

I have issue in the quest -Audience with the Land Dragon.

It seems that I cannot find one little spawn isseu with Abyssal Jewel guardian amount. Quest it self  works fine to the end, exept the amount of those guardians in all Jewel cases.. in stead of 5-6-7 it spawns like 20!

How and where to reduce the amount of guardian spawn?

I browsed through quest .py, but my eye did not catch any line responsible for spawn amount.

The script under its def onAttack has its spawn commands:

 def onAttack (self, npc, player, damage, isPet):
   st = player.getQuestState(qn)
   if st :
     npcId = npc.getNpcId()
     maxHp = npc.getMaxHp()
     nowHp = npc.getCurrentHp()
     cond = st.getInt("cond")
     if npcId == ABYSS_JEWEL1 :
         if cond == 2 and st.getInt("moke")<>1:
             if nowHp < maxHp*0.8 and st.getInt("aspawned")<>1 :
                 for i in range(0,70,7):
                    st.addSpawn(GUARDIAN1,-81260,75639+i,-3300,180000)
                    st.addSpawn(GUARDIAN1,-81240,75639+i,-3300,180000)
                 st.set("aspawned","1")
                 self.startQuestTimer("Jewel1_Timer1",900000,npc,None)
             elif nowHp < maxHp*0.4 and st.getQuestItemsCount(FIRST_FRAGMENT_OF_ABYSS_JEWEL)==0 :
                 st.giveItems(FIRST_FRAGMENT_OF_ABYSS_JEWEL,1)
                 st.playSound("ItemSound.quest_itemget")
                 self.startQuestTimer("Jewel1_Timer2",240000,npc,None)
         if nowHp < maxHp*0.1 :
             npc.reduceCurrentHp(9999999,npc)
             self.cancelQuestTimer("Jewel1_Timer1",npc,None)
             self.cancelQuestTimer("Jewel1_Timer2",npc,None)
    if npcId == ABYSS_JEWEL2 :

Could not locate anywhere else anything/db/java side.. It should be stated in .py anyway right? May b I'm missing to see which digits are the ones...

Edited by zilbe333

3 answers to this question

Recommended Posts

  • 0
Posted

 

                 for i in range(0,70,7):
                    st.addSpawn(GUARDIAN1,-81260,75639+i,-3300,180000)
                    st.addSpawn(GUARDIAN1,-81240,75639+i,-3300,180000)
  • 0
Posted (edited)

It adds 7 to "i" and spawns 2 GUARDIAN1 on every iteration. All this up to 70.

Edited by Tessa

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...