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

	EventHandler TALKED(talker)
	{
		myself::ShowPage(talker,"spirit_gate002.htm");
	}

	EventHandler TELEPORT_REQUESTED(talker,i0,i1,i2,i3)
	{
		if( myself.sm.param1 == 0 )
		{
			myself::InstantTeleport(talker,( 182960 + gg::Rand(50) ),( -11904 + gg::Rand(50) ),-4897);
		}
		else
		{
			myself::InstantTeleport(talker,( 182960 + gg::Rand(50) ),( -11904 + gg::Rand(50) ),-4897);
		}
	}

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

}
