L2JMobius
Free Users => Bug Reports => Topic started by: Strelook66 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.
-
Can you check SQL minion data?
-
I did, its there. Both in the npc SQL and the minions sql.
-
If they are there MinionList should respawn them.
Maybe in the future I will check it, but I have not time for it atm.
-
Can someone try this?
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;
-
Its not working. Minions still wont respawn.
-
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.
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;
-
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.
-
Those are other minions than the ones I added on script.