L2JMobius

The Kamael How to use DayNightSpawn.java

Liviades · 3 · 2410

Offline Liviades

  • Heir
  • **
    • Posts: 30
Want to fix the daynightspawn of Devil Isle but I cannot understand how its working.

I think I must add on a group on (In this case) Devil Isle spawn the mobs I want to make appear with group Name= nightTime for night and group Name= daytime for day. But its not working.

How it works? I must add on daynightspawn.java the mobs that going to be affected by the java file first?
And its Right the group name = nighttime/daytime or its ItsNight?

Thx!



Online Mobius

  • Distinguished King
  • *****
    • Posts: 16085
Check ForestOfTheDead.xml as an example.

<spawn name="ForestOfTheDead" ai="DayNightSpawns">

<group>
</group>

<group name="dayTime" spawnByDefault="false">
</group>

<group name="nightTime" spawnByDefault="false">
</group>


Offline Liviades

  • Heir
  • **
    • Posts: 30
I think on that but im working on classic kamael, so the file wasn´t there  :(

But now i understand with your answer. I was lacking to add ai="DayNightSpawn". Going to test it and post the diff patch when Its done. (Going to fix the HP MP Attack def of Devil Isle mobs too, they have like 14k Pattack LOL)

Thx!