@LabelIndex 103534
@StringIndex 12093
class 0 ai_amazkari_prisoner : warrior_basic {
parameter:
	int	FieldCycle = 1;
	int	FieldCycle_Condition = 0;
	int	FieldCycle_Quantity = -15;
	int	Threshold_Level_Min = 10;
	int	Threshold_Level_Max = 100;

handler:
	EventHandler CREATED() {
		myself::AddTimerEx(78002,( ( ( gg::Rand(3) + 1 ) * 30 ) * 1000 ));
		super;
	}

	EventHandler SCRIPT_EVENT(script_event_arg1,script_event_arg2,c0) {
		if( script_event_arg1 == 78010001 ) {
			myself.c_ai0 = gg::GetCreatureFromIndex(script_event_arg2);
			myself::AddTimerEx(78001,( 26 * 1000 ));
		} else if( script_event_arg1 == 78010028 && gg::Rand(10) == 1 ) {
			myself::Say(gg::MakeFString(1800126,"","","","",""));
			gg::SetNpcParam(myself.sm,9,( myself.sm.hp - ( myself.sm.hp / 5 ) ));
		} else if( script_event_arg1 == 78010029 ) {
			if( gg::Rand(1000) > 300 ) {
				myself::Say(gg::MakeFString(1000503,"","","","","") + "!");
			}
			gg::AddPoint_FieldCycle(FieldCycle,30,1,myself.sm);
			myself::Despawn();
		}
		super;
	}

	EventHandler TIMER_FIRED_EX(timer_id,c0) {
		if( timer_id == 78001 ) {
			c0 = myself.c_ai0;
			if( myself::IsNullCreature(c0) == 0 ) {
				myself::InstantTeleport(myself.sm,gg::FloatToInt(c0.x),gg::FloatToInt(c0.y),gg::FloatToInt(c0.z));
			}
		} else if( timer_id == 78002 ) {
			if( gg::Rand(100) > 20 ) {
				myself::Say(gg::MakeFString(1000138,"","","","","") + "!");
			} else if( gg::Rand(100) > 40 ) {
				myself::Say(gg::MakeFString(1010451,"","","","",""));
			}
			myself::AddTimerEx(78002,( ( ( gg::Rand(8) + 1 ) * 30 ) * 1000 ));
		}
		super;
	}

}
