@LabelIndex 48565
@StringIndex 0
class 0 raid_boss_for_teleport_dungeon : raid_boss_type1 {
parameter:
	int	CreviceOfDiminsion = 0;

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) {
		if( myself::InMyTerritory(myself.sm) == 0 ) {
			myself::InstantRandomTeleportInMyTerritory();
			return;
		}
		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 * 3 ) ) {
				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);
	}

}
