@LabelIndex 420839
@StringIndex 0
class 1 royal_rush_maker : default_maker {
handler:
	EventHandler ON_START(i0,def0) {
		myself::AddTimerEx(3000,1000);
	}

	EventHandler ON_NPC_CREATED(created_def,created_npc,maker0,i0) {
		i0 = gg::GetDateTime(0,4);
		if( i0 > 49 && i0 < 60 ) {
			created_npc::Despawn();
		}
	}

	EventHandler ON_NPC_DELETED(deleted_def,i0,i1,maker0,reply) {
		i0 = gg::GetDateTime(0,4);
		if( deleted_def.respawn_time == 0 || ( i0 > 49 && i0 < 59 ) ) {
		} else {
			super;
		}
	}

	EventHandler ON_TIMER(timer_id,i0,i1) {
		if( timer_id == 3000 ) {
			i0 = gg::GetDateTime(0,4);
			i1 = gg::GetDateTime(0,5);
			if( i0 == 54 && i1 == 0 ) {
				gg::SendMakerScriptEvent(myself,1000,0,0);
			}
			if( i0 == 54 && i1 == 1 ) {
				if( myself.npc_count > 0 ) {
					gg::SendMakerScriptEvent(myself,1000,0,0);
				}
			}
			if( i0 == 54 && i1 == 2 ) {
				if( myself.npc_count > 0 ) {
					gg::SendMakerScriptEvent(myself,1000,0,0);
				}
			}
			myself::AddTimerEx(3000,1000);
		}
	}

}
