@LabelIndex 426154
@StringIndex 0
class 1 maker_destruct_ret_npc : default_maker {
parameter:

handler:
	EventHandler ON_SCRIPT_EVENT(script_event_arg1,script_event_arg2,script_event_arg3,def0,i0,maker0) {
		super;
		if( script_event_arg1 == 1224012 ) {
			maker0 = gg::GetNpcMaker(myself.name);
			if( gg::IsNull(maker0) == 0 ) {
				gg::SendMakerScriptEvent(maker0,1001,0,0);
			}
		} else if( script_event_arg1 == 1224013 || script_event_arg1 == 1224014 ) {
			if( myself.i_ai0 == 0 ) {
				myself.i_ai0 = 1;
				for(i0 = 0; i0 < myself.def_count; i0++) {
					def0 = myself::GetSpawnDefine(i0);
					if( gg::IsNull(def0) == 0 ) {
						def0::SendScriptEvent(script_event_arg1,0,0);
					}
				}
				myself::AddTimerEx(5618,3000);
			}
		}
	}

	EventHandler ON_TIMER(timer_id,maker0) {
		if( timer_id == 5618 ) {
			myself.i_ai0 = 0;
			maker0 = gg::GetNpcMaker(myself.name);
			if( gg::IsNull(maker0) == 0 ) {
				gg::SendMakerScriptEvent(maker0,1000,0,0);
			}
		}
	}

	EventHandler ON_NPC_DELETED() {
	}

}
