L2JMobius
Public Development => Bug Reports => Topic started by: L2jnoobas on August 18, 2025, 02:28:46 PM
-
when inside imperial tomb session when time runs out and you see the lees than 1 minute on the session box that counts time you never get teleported out no matter how much time passes
is there a way ti fix it ??
Ps: when you go to retake the quest by entering the session the dialog starts but you press accept and nothing happens you can take the quest only the forst time you do it and it is over you cant take it 2nd time the next day
-
[member=79]override[/member]
public void onInstanceDestroy(Instance instance)
{
// Remove all players after instance is destroyed
for (Player player : instance.getPlayers())
{
if (player != null && player.isOnline())
{
player.setInstanceId(0);
if (isPlayerStuckInInstance(player))
{
player.teleToLocation(-107288, 253270, -3326, 0); // Talking Island - Change your TP here if you wish
player.sendMessage("Instance finished. You are been teleport outside.");
}
}
}
}
Put this method before @override
public void onKill(Npc npc, Player killer, boolean isSummon) , try it , should work...