@LabelIndex 421098
@StringIndex 63734
class 1 alarm_device1_maker : default_maker {
handler:
	EventHandler ON_START(i0,def0,maker0) {
		myself.i_ai0 = 1;
		myself::AddTimerEx(2000,3000);
	}

	EventHandler ON_TIMER(timer_id,i0,i1,maker0,def0) {
		if( timer_id == 2000 ) {
			def0 = myself::GetSpawnDefine(0);
			if( gg::IsNull(def0) == 0 ) {
				def0::SendScriptEvent(10025,1,0);
			}
		}
	}

	EventHandler ON_SCRIPT_EVENT(script_event_arg1,script_event_arg2,script_event_arg3,def0,i0,i1) {
		switch(script_event_arg1) {
			case 10008: {
				myself.i_ai0 = ( myself.i_ai0 + 1 );
				def0 = myself::GetSpawnDefine(0);
				if( gg::IsNull(def0) == 0 ) {
					def0::SendScriptEvent(10025,myself.i_ai0,0);
				}
				break;
			}
			case 1001: {
				myself.i_ai0 = 1;
				myself::AddTimerEx(2000,3000);
				break;
			}
		}
		super;
	}

	EventHandler ON_NPC_DELETED(deleted_def,i0,i1,maker0,def0,reply) {
		if( reply == 0 ) {
			gg::SendMakerScriptEvent(myself,10008,0,0);
			maker0 = gg::GetNpcMaker("godard32_2515_19m1");
			if( gg::IsNull(maker0) == 0 ) {
				gg::SendMakerScriptEvent(maker0,10008,0,0);
			}
			maker0 = gg::GetNpcMaker("godard32_2515_20m1");
			if( gg::IsNull(maker0) == 0 ) {
				gg::SendMakerScriptEvent(maker0,10008,0,0);
			}
			maker0 = gg::GetNpcMaker("godard32_2515_21m1");
			if( gg::IsNull(maker0) == 0 ) {
				gg::SendMakerScriptEvent(maker0,10008,0,0);
			}
			myself.i_ai0 = 0;
		}
	}

}
