root/trunk/AE-go_GameServer/src/com/aionemu/gameserver/controllers/PlayerController.java

9901006
295
	}
295
	}
296
296
297
	@Override
297
	@Override
298
	public boolean teleportTo(final int worldId, final float x,
298
	public boolean teleportTo(final int worldId, final int instanceId, final float x,
299
		final float y, final float z, final byte heading, final int delay)
299
		final float y, final float z, final byte heading, final int delay)
300
	{
300
	{
301
		final Player player = getOwner();
301
		final Player player = getOwner();
...
...
316
                }
316
                }
317
                World world = player.getActiveRegion().getWorld();
317
                World world = player.getActiveRegion().getWorld();
318
				world.despawn(player);
318
				world.despawn(player);
319
				world.setPosition(player, worldId, x, y, z, heading);
319
				world.setPosition(player, worldId, instanceId,  x, y, z, heading);
320
				player.setProtectionActive(true);
320
				player.setProtectionActive(true);
321
				PacketSendUtility.sendPacket(player, new SM_CHANNEL_INFO(player.getPosition()));	
321
				PacketSendUtility.sendPacket(player, new SM_CHANNEL_INFO(player.getPosition()));	
322
				PacketSendUtility.sendPacket(player, new SM_PLAYER_SPAWN(player));		
322
				PacketSendUtility.sendPacket(player, new SM_PLAYER_SPAWN(player));