Author Topic: Interlude Q421_LittleWingsBigAdventure  (Read 121 times)

Offline Strelook66

  • Heir
  • **
  • Posts: 26
Q421_LittleWingsBigAdventure
« on: July 27, 2020, 10:10:08 PM »
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

  • Administrator
  • Distinguished King
  • *****
  • Posts: 7479
Re: Q421_LittleWingsBigAdventure
« Reply #1 on: July 27, 2020, 10:28:09 PM »
Can you check SQL minion data?

Offline Strelook66

  • Heir
  • **
  • Posts: 26
Re: Q421_LittleWingsBigAdventure
« Reply #2 on: July 28, 2020, 06:13:17 PM »

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

Online Mobius

  • Administrator
  • Distinguished King
  • *****
  • Posts: 7479
Re: Q421_LittleWingsBigAdventure
« Reply #3 on: July 28, 2020, 09:50:22 PM »
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

  • Administrator
  • Distinguished King
  • *****
  • Posts: 7479
Re: Q421_LittleWingsBigAdventure
« Reply #4 on: August 02, 2020, 12:53:58 PM »
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

  • Heir
  • **
  • Posts: 26
Re: Q421_LittleWingsBigAdventure
« Reply #5 on: August 02, 2020, 02:41:07 PM »
Its not working. Minions still wont respawn.

Online Mobius

  • Administrator
  • Distinguished King
  • *****
  • Posts: 7479
Re: Q421_LittleWingsBigAdventure
« Reply #6 on: August 02, 2020, 02:54:12 PM »
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

  • Heir
  • **
  • Posts: 26
Re: Q421_LittleWingsBigAdventure
« Reply #7 on: August 02, 2020, 03:56:24 PM »
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

  • Administrator
  • Distinguished King
  • *****
  • Posts: 7479
Re: Q421_LittleWingsBigAdventure
« Reply #8 on: August 03, 2020, 08:18:29 AM »
Those are other minions than the ones I added on script.