L2JMobius

C6 Q421_LittleWingsBigAdventure

Strelook66 · 9 · 5595

Offline Strelook66

  • Knight
  • ***
    • Posts: 82
Hi,

Regarding this quest, as far as I remember the minions of the Fairy trees should respawn after a while. This does not happen. If someone kills the minions, they wont respawn until the next restart.
The quest works, just that the minions wont respawn anymore after they are killed.






Online Mobius

  • Distinguished King
  • *****
    • Posts: 16010

Offline Strelook66

  • Knight
  • ***
    • Posts: 82

I did, its there. Both in the npc SQL and the minions sql.


Online Mobius

  • Distinguished King
  • *****
    • Posts: 16010
If they are there MinionList should respawn them.
Maybe in the future I will check it, but I have not time for it atm.


Online Mobius

  • Distinguished King
  • *****
    • Posts: 16010
Can someone try this?
Code: [Select]
Index: dist/game/data/scripts/quests/Q421_LittleWingsBigAdventure/Q421_LittleWingsBigAdventure.java
===================================================================
--- dist/game/data/scripts/quests/Q421_LittleWingsBigAdventure/Q421_LittleWingsBigAdventure.java (revision 7463)
+++ dist/game/data/scripts/quests/Q421_LittleWingsBigAdventure/Q421_LittleWingsBigAdventure.java (working copy)
@@ -16,6 +16,7 @@
  */
 package quests.Q421_LittleWingsBigAdventure;
 
+import org.l2jmobius.Config;
 import org.l2jmobius.commons.util.Rnd;
 import org.l2jmobius.gameserver.ai.CtrlIntention;
 import org.l2jmobius.gameserver.datatables.SkillTable;
@@ -118,6 +119,23 @@
  st.giveItems(FAIRY_LEAF, 4);
  }
  }
+ else if (event.startsWith("respawn_ghost_"))
+ {
+ if (npc.isDead())
+ {
+ if (npc.isInsideRadius(player, Config.ALT_PARTY_RANGE, false, false))
+ {
+ final Attackable newNpc = (Attackable) addSpawn(27189, npc.getX(), npc.getY(), npc.getZ(), Rnd.get(65536), true, 300000);
+ newNpc.setRunning();
+ newNpc.addDamageHate(player, 0, 999);
+ newNpc.getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, player);
+ }
+ }
+ else
+ {
+ startQuestTimer("respawn_ghost_" + npc.getNpcId(), 60000, npc, player);
+ }
+ }
 
  return htmltext;
  }
@@ -323,6 +341,8 @@
  newNpc.setRunning();
  newNpc.addDamageHate(originalKiller, 0, 999);
  newNpc.getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, originalKiller);
+
+ startQuestTimer("respawn_ghost_" + newNpc.getNpcId(), 600000, newNpc, killer);
  }
 
  return null;


Offline Strelook66

  • Knight
  • ***
    • Posts: 82

Online Mobius

  • Distinguished King
  • *****
    • Posts: 16010
You wait 10 minutes?
Does it need to be less than 10 minutes?
Change 600000 to 10000 and 60000 to 1000 for test.

New patch btw.
Code: [Select]
Index: dist/game/data/scripts/quests/Q421_LittleWingsBigAdventure/Q421_LittleWingsBigAdventure.java
===================================================================
--- dist/game/data/scripts/quests/Q421_LittleWingsBigAdventure/Q421_LittleWingsBigAdventure.java (revision 7463)
+++ dist/game/data/scripts/quests/Q421_LittleWingsBigAdventure/Q421_LittleWingsBigAdventure.java (working copy)
@@ -16,6 +16,7 @@
  */
 package quests.Q421_LittleWingsBigAdventure;
 
+import org.l2jmobius.Config;
 import org.l2jmobius.commons.util.Rnd;
 import org.l2jmobius.gameserver.ai.CtrlIntention;
 import org.l2jmobius.gameserver.datatables.SkillTable;
@@ -118,6 +119,24 @@
  st.giveItems(FAIRY_LEAF, 4);
  }
  }
+ else if (event.startsWith("respawn_ghost_"))
+ {
+ if (npc.isDead())
+ {
+ if (npc.isInsideRadius(player, Config.ALT_PARTY_RANGE, false, false))
+ {
+ final Attackable newNpc = (Attackable) addSpawn(27189, npc.getX(), npc.getY(), npc.getZ(), Rnd.get(65536), true, 300000);
+ newNpc.setRunning();
+ newNpc.addDamageHate(player, 0, 999);
+ newNpc.getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, player);
+ startQuestTimer("respawn_ghost_" + newNpc.getNpcId(), 600000, newNpc, player);
+ }
+ }
+ else
+ {
+ startQuestTimer("respawn_ghost_" + npc.getNpcId(), 60000, npc, player);
+ }
+ }
 
  return htmltext;
  }
@@ -323,6 +342,7 @@
  newNpc.setRunning();
  newNpc.addDamageHate(originalKiller, 0, 999);
  newNpc.getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, originalKiller);
+ startQuestTimer("respawn_ghost_" + newNpc.getNpcId(), 600000, newNpc, killer);
  }
 
  return null;


Offline Strelook66

  • Knight
  • ***
    • Posts: 82
I tried will even less, minions didnt spawn back.
As I remember, the minions spawned back after ~1 minute, while your hatchling was still attacking the tree. As I mentioned earlier, you can still finish the quest and upgrade to strider. This does not affect it.


Online Mobius

  • Distinguished King
  • *****
    • Posts: 16010
Those are other minions than the ones I added on script.