@LabelIndex 101585
@StringIndex 0
class 0 npc_pylon : default_npc {
parameter:
	int	beam_of_fix = 359989249;
	int	FieldCycle = 1;
	int	FieldCycle_Condition = 0;
	int	FieldCycle_Quantity = 7;
	int	Threshold_Level_Min = 6;
	int	Threshold_Level_Max = 6;
	int	Threshold_Point_Min = 1400000;
	int	Threshold_Point_Max = 1490000;
	string	Privates = "";

handler:
	EventHandler CREATED() {
		myself::CreatePrivates(Privates);
	}

	EventHandler SCRIPT_EVENT(script_event_arg1,script_event_arg2,script_event_arg3,c0) {
		if( script_event_arg1 == 2245587 ) {
			c0 = gg::GetCreatureFromIndex(script_event_arg2);
			if( myself::IsNullCreature(c0) == 0 ) {
				myself::AddUseSkillDesire(c0,beam_of_fix,1,0,1000000);
			}
		}
	}

	EventHandler MY_DYING(i0,i1,c0) {
		if( FieldCycle != -1 && FieldCycle_Condition == 0 ) {
			i0 = gg::GetStep_FieldCycle(FieldCycle);
			i1 = gg::GetPoint_FieldCycle(FieldCycle);
			c0 = myself::GetLastAttacker();
			if( Threshold_Level_Min >= i0 && Threshold_Level_Max <= i0 ) {
				if( Threshold_Point_Min <= i1 && Threshold_Point_Max >= i1 ) {
					if( myself::IsNullCreature(c0) == 0 ) {
						gg::AddPoint_FieldCycle(FieldCycle,FieldCycle_Quantity,1,c0);
					} else {
						gg::AddPoint_FieldCycle(FieldCycle,FieldCycle_Quantity,1,myself.sm);
					}
				}
			} else {
			}
		}
	}

}
