class 1 ai_boss06_cube : instant_teleporter
{
handler:
	EventHandler CREATED()
	{
		myself::AddTimerEx(2001,900000);
	}

	EventHandler TELEPORT_REQUESTED(talker,i0,i1,i2,i3)
	{
		i0 = gg::Rand(3);
		if( i0 == 0 )
		{
			i1 = ( 108784 + gg::Rand(100) );
			i2 = ( 16000 + gg::Rand(100) );
			i3 = -4928;
		}
		else if( i0 == 1 )
		{
			i1 = ( 113824 + gg::Rand(100) );
			i2 = ( 10448 + gg::Rand(100) );
			i3 = -5164;
		}
		else
		{
			i1 = ( 115488 + gg::Rand(100) );
			i2 = ( 22096 + gg::Rand(100) );
			i3 = -5168;
		}
		myself::InstantTeleport(talker,i1,i2,i3);
	}

	EventHandler TIMER_FIRED_EX(timer_id)
	{
		if( timer_id == 2001 )
		{
			myself::Despawn();
		}
	}

}
