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...
For many reasons:
1) modernizing code base, increase maintainability and reduce effort for development of new feature: split code into business layers, for example data from datapack, npc/item templates, world objects; remove circular dependencies between layers; create API-like objects; remove duplicated code (copy-pasts); using external libraries to replace some part of the code
2) using modern tools like ORMs (EF core) with ability to use different DBMS (I already switched from MySQL to PostgreSQL) ; generators for in-game interfaces (L2 html's)
I'm thinking also about using Akka (agent) library in the future for world objects and their interaction.
3) optimizations: for example reducing memory usage and memory allocations with C# structs
Question
zilbe333
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:
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 zilbe333Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.