@LabelIndex 68787
@StringIndex 10896
class 0 antaras_clear_npc : default_npc {
parameter:
	int	suicide1_x = 0;
	int	suicide2_x = 0;
	int	suicide3_x = 0;
	int	suicide4_x = 0;
	int	suicide5_x = 0;
	int	suicide6_x = 0;
	int	suicide1_y = 0;
	int	suicide2_y = 0;
	int	suicide3_y = 0;
	int	suicide4_y = 0;
	int	suicide5_y = 0;
	int	suicide6_y = 0;
	int	zerging_spawn_x = 0;
	int	zerging_spawn_y = 0;
	int	dice = 0;

handler:
	EventHandler CREATED() {
		myself.i_ai0 = 0;
		myself.i_ai1 = 0;
		myself.i_ai2 = 0;
		myself.i_ai3 = 0;
		myself.c_ai0 = gg::GetNullCreature();
	}

	EventHandler SCRIPT_EVENT(script_event_arg1,script_event_arg2,script_event_arg3,c0) {
		if( script_event_arg1 == 12000 ) {
			myself.i_ai0 = 0;
			myself::CreateOnePrivateEx(1029077,"antaras_clear_npc_summon",0,0,gg::FloatToInt(myself.sm.x),gg::FloatToInt(myself.sm.y),gg::FloatToInt(myself.sm.z),0,0,0,0);
		} else if( script_event_arg1 == 12016 ) {
			if( script_event_arg2 == dice ) {
				myself::CreateOnePrivateEx(1029070,"antaras_zergling",0,0,zerging_spawn_x,zerging_spawn_y,-7735,0,suicide1_x,suicide1_y,0);
				myself::CreateOnePrivateEx(1029071,"antaras_zergling",0,0,zerging_spawn_x,zerging_spawn_y,-7735,0,suicide2_x,suicide2_y,0);
				myself::CreateOnePrivateEx(1029072,"antaras_zergling",0,0,zerging_spawn_x,zerging_spawn_y,-7735,0,suicide3_x,suicide3_y,0);
				myself::CreateOnePrivateEx(1029073,"antaras_zergling",0,0,zerging_spawn_x,zerging_spawn_y,-7735,0,suicide4_x,suicide4_y,0);
				myself::CreateOnePrivateEx(1029074,"antaras_zergling",0,0,zerging_spawn_x,zerging_spawn_y,-7735,0,suicide5_x,suicide5_y,0);
				myself::CreateOnePrivateEx(1029075,"antaras_zergling",0,0,zerging_spawn_x,zerging_spawn_y,-7735,0,suicide6_x,suicide6_y,0);
				myself::CreateOnePrivateEx(1029076,"antaras_zergling",0,0,177648,114816,-7735,0,suicide1_x,suicide1_y,0);
			}
			myself::AddTimerEx(1001,3000);
		} else if( script_event_arg1 == 12002 ) {
			myself.c_ai0 = gg::GetCreatureFromIndex(script_event_arg2);
			if( myself.c_ai0 == myself.sm ) {
				myself::BroadcastScriptEventEx(12010,myself.i_ai2,0,8000);
				myself::BroadcastScriptEventEx(12003,0,0,2400);
			}
			if( myself.i_ai3 >= 1 ) {
				myself::CreateOnePrivateEx(1029076,"antaras_zergling",0,0,177648,114816,-7735,0,suicide1_x,suicide1_y,0);
			}
		} else if( script_event_arg1 == 12020 ) {
			myself.c_ai0 = gg::GetCreatureFromIndex(script_event_arg2);
			if( myself.c_ai0 == myself.sm ) {
				myself::BroadcastScriptEventEx(12010,myself.i_ai2,0,8000);
			}
		} else if( script_event_arg1 == 12003 && myself.c_ai0 != myself.sm ) {
			myself::CreateOnePrivateEx(1029070,"antaras_zergling",0,0,zerging_spawn_x,zerging_spawn_y,-7735,0,suicide1_x,suicide1_y,0);
			myself::CreateOnePrivateEx(1029071,"antaras_zergling",0,0,zerging_spawn_x,zerging_spawn_y,-7735,0,suicide2_x,suicide2_y,0);
			myself::CreateOnePrivateEx(1029072,"antaras_zergling",0,0,zerging_spawn_x,zerging_spawn_y,-7735,0,suicide3_x,suicide3_y,0);
			myself::CreateOnePrivateEx(1029073,"antaras_zergling",0,0,zerging_spawn_x,zerging_spawn_y,-7735,0,suicide4_x,suicide4_y,0);
			myself::CreateOnePrivateEx(1029074,"antaras_zergling",0,0,zerging_spawn_x,zerging_spawn_y,-7735,0,suicide5_x,suicide5_y,0);
			myself::CreateOnePrivateEx(1029075,"antaras_zergling",0,0,zerging_spawn_x,zerging_spawn_y,-7735,0,suicide6_x,suicide6_y,0);
		} else if( script_event_arg1 == 12004 ) {
			myself::CreateOnePrivateEx(1029077,"antaras_clear_npc_summon2",0,0,gg::FloatToInt(myself.sm.x),gg::FloatToInt(myself.sm.y),gg::FloatToInt(myself.sm.z),0,0,0,0);
		} else if( script_event_arg1 == 12006 ) {
			myself.i_ai3 = script_event_arg2;
			myself::BroadcastScriptEventEx(12001,script_event_arg2,gg::GetIndexFromCreature(myself.sm),8000);
		} else if( script_event_arg1 == 12007 ) {
			myself::BroadcastScriptEventEx(12005,script_event_arg2,script_event_arg3,8000);
		} else if( script_event_arg1 == 12009 ) {
			myself.i_ai2 = script_event_arg2;
		} else if( script_event_arg1 == 12017 ) {
			myself.i_ai3 = script_event_arg2;
			myself::BroadcastScriptEventEx(12019,script_event_arg2,gg::GetIndexFromCreature(myself.sm),8000);
		}
	}

	EventHandler TIMER_FIRED_EX(timer_id) {
		if( timer_id == 1001 ) {
			myself.i_ai0 = 0;
			myself::CreateOnePrivateEx(1029077,"antaras_clear_npc_summon_dice",0,0,gg::FloatToInt(myself.sm.x),gg::FloatToInt(myself.sm.y),gg::FloatToInt(myself.sm.z),0,0,0,0);
		}
	}

	EventHandler ATTACKED(attacker,damage) {
	}

	EventHandler SEE_CREATURE(creature,i1,i2,c2) {
	}

}
