class 1 raid_boss_for_teleport_dungeon : raid_boss_type1
{
handler:
	EventHandler CREATED(maker0)
	{
		myself::AddTimerEx(2003,( ( 60 * 1000 ) * 3 ));
		maker0 = myself::GetMyMaker();
		gg::SendMakerScriptEvent(maker0,2,0,0);
		myself.i_ai0 = myself::GetCurrentTick();
		super;
	}

	EventHandler ATTACKED(attacker)
	{
		myself.i_ai0 = myself::GetCurrentTick();
		super;
	}

	EventHandler TIMER_FIRED_EX(timer_id,maker0)
	{
		if( timer_id == 2003 )
		{
			maker0 = myself::GetMyMaker();
			if( ( myself::GetCurrentTick() - myself.i_ai0 ) > ( 60 * 4 ) )
			{
				gg::SendMakerScriptEvent(maker0,3,0,0);
			}
			else
			{
				gg::SendMakerScriptEvent(maker0,2,0,0);
			}
			myself::AddTimerEx(2003,60000);
		}
		super;
	}

	EventHandler MY_DYING(maker0)
	{
		maker0 = myself::GetMyMaker();
		gg::SendMakerScriptEvent(maker0,3,0,0);
	}

}
