@LabelIndex 426133
@StringIndex 0
class 1 maker_destruct_ret_protecter : default_maker {
parameter:
	string	enter_maker_name = "destruct_ret_ptc_enter_maker_name";
	string	invasion_maker_name = "destruct_ret_ptc_invasion_maker_name";
	string	manager_maker_name = "rumwarsha04_1225_002m1";

handler:
	EventHandler ON_START() {
		myself.i_ai4 = 2;
		super;
	}

	EventHandler ON_SCRIPT_EVENT(script_event_arg1,script_event_arg2,script_event_arg3,def0,i0,maker0) {
		if( script_event_arg1 == 1224012 ) {
			maker0 = gg::GetNpcMaker(myself.name);
			if( gg::IsNull(maker0) == 0 ) {
				gg::SendMakerScriptEvent(maker0,1001,0,0);
				myself.i_ai4 = 2;
			}
		} else if( script_event_arg1 == 1224013 ) {
			maker0 = gg::GetNpcMaker(myself.name);
			if( gg::IsNull(maker0) == 0 ) {
				gg::SendMakerScriptEvent(maker0,1000,0,0);
			}
		} else if( script_event_arg1 == 1224014 ) {
			maker0 = gg::GetNpcMaker(myself.name);
			if( gg::IsNull(maker0) == 0 ) {
				gg::SendMakerScriptEvent(maker0,1000,0,0);
			}
		}
		super;
	}

	EventHandler ON_NPC_DELETED(died) {
		if( died == 1 ) {
			myself.i_ai4 = ( myself.i_ai4 - 1 );
		}
	}

	EventHandler ON_ALL_NPC_DELETED(maker0) {
		if( myself.i_ai4 > 0 ) {
		} else {
			maker0 = gg::GetNpcMaker(enter_maker_name);
			if( gg::IsNull(maker0) == 0 ) {
				gg::SendMakerScriptEvent(maker0,1224014,0,0);
			}
		}
	}

}
