@LabelIndex 105947
@StringIndex 0
class 0 ai_key_for_raid : warrior_use_skill {
parameter:
	string	a_raid_doorname1 = "cyratal_cave_a_f";
	string	a_raid_doorname2 = "cyratal_cave_a_g";
	string	maker_name1 = "innadril22_2422_017m2";
	string	maker_name2 = "innadril22_2422_018m2";
	string	maker_name3 = "innadril22_2422_019m2";

handler:
	EventHandler CREATED(i0,maker0) {
		myself.i_ai0 = 0;
		super;
	}

	EventHandler SCRIPT_EVENT(script_event_arg1,script_event_arg2,c0) {
		if( script_event_arg1 == 12551 ) {
			myself.i_ai0 = 1;
		}
		super;
	}

	EventHandler MY_DYING() {
		if( myself.i_ai0 == 1 ) {
			gg::Castle_GateOpenCloseEx(a_raid_doorname1,0,myself::InstantZone_GetId());
			gg::Castle_GateOpenCloseEx(a_raid_doorname2,0,myself::InstantZone_GetId());
		}
		super;
	}

}
