- edited description
Instances AI Failure on Player logout and login again!
For example: IceQueensCastleUltimateBattle
Player enter the instance, logout and login again. After that, ALL AI would not work on him.
This time no animations no on screen messages.
Which also means they can easily defeat Ultimate Freya with no AI no skills and no minions help!!!
Comments (8)
-
reporter -
reporter Every instance has this issue. You should add them again:
world.playersInside.add(player); world.addAllowed(player.getObjectId());
-
reporter - edited description
-
reporter No one even care about this huge bug?
I try to add again playersInside but it cause normal player watch animation 2-3 times and lag if they died out and enter instance again.
-
This should solve the problem:
public void onEnterInstance(L2PcInstance player, InstanceWorld world, boolean firstEntrance) { final IQCNBWorld curworld = (IQCNBWorld) world; if (firstEntrance) { curworld.isHardMode = curworld.getTemplateId() == TEMPLATE_ID_ULTIMATE; if (!player.isInParty()) { managePlayerEnter(player, curworld); } else if (player.getParty().isInCommandChannel()) { for (L2PcInstance players : player.getParty().getCommandChannel().getMembers()) { managePlayerEnter(players, curworld); } } else { for (L2PcInstance players : player.getParty().getMembers()) { managePlayerEnter(players, curworld); } } } else { Iterator<L2PcInstance> insideIterator = curworld.playersInside.iterator(); while (insideIterator.hasNext()) { L2PcInstance insidePlayer = insideIterator.next(); if ((insidePlayer.getObjectId() == player.getObjectId()) && (insidePlayer != player)) { insideIterator.remove(); curworld.playersInside.add(player); break; } } teleportPlayer(player, world.isStatus(4) ? BATTLE_PORT : ENTER_LOC[getRandom(ENTER_LOC.length)], world.getInstanceId()); } }
-
Hello @ShinichiYao we don’t have a file called IceQueensCastleUltimateBattle.
For IceQueensCastle you can test https://gist.github.com/Zoey76/f2c173b2f63f66fda76a52e3c1486deb
The code to solve this should work in that other instance, let us know if it works well.
-
-
reporter - changed status to resolved
- Log in to comment