class 1 summon_criminal : petfix
{
handler:
	EventHandler CREATED(i0)
	{
		myself::Summon_SetOption(3,0);
		myself::AddPetDefaultDesire_Follow(20.000000);
		i0 = gg::Rand(100);
		if( i0 < 50 )
		{
			myself::Say(myself::MakeFString(42231,_blank,_blank,_blank,_blank,_blank));
		}
		else
		{
			myself::Say(myself::MakeFString(42232,_blank,_blank,_blank,_blank,_blank));
		}
		myself::AddTimerEx(2001,60000);
		super;
	}

	EventHandler ATTACKED(attacker,damage,i0)
	{
		if( gg::Rand(100) < 30 )
		{
			i0 = gg::Rand(100);
			if( i0 < 35 )
			{
				myself::Say(myself::MakeFString(42233,_blank,_blank,_blank,_blank,_blank));
			}
			else if( i0 < 70 )
			{
				myself::Say(myself::MakeFString(42234,_blank,_blank,_blank,_blank,_blank));
			}
			else
			{
				myself::Say(myself::MakeFString(42235,_blank,_blank,_blank,_blank,_blank));
			}
		}
	}

	EventHandler MY_DYING(i0)
	{
		i0 = gg::Rand(100);
		if( i0 < 35 )
		{
			myself::Say(myself::MakeFString(42236,_blank,_blank,_blank,_blank,_blank));
		}
		else if( i0 < 70 )
		{
			myself::Say(myself::MakeFString(42237,_blank,_blank,_blank,_blank,_blank));
		}
		else
		{
			myself::Say(myself::MakeFString(42238,_blank,_blank,_blank,_blank,_blank));
		}
	}

	EventHandler NO_DESIRE()
	{
		myself::AddPetDefaultDesire_Follow(20.000000);
	}

	EventHandler MENU_SELECTED(ask,reply,i0)
	{
		if( gg::Rand(100) < 10 )
		{
			i0 = gg::Rand(100);
			if( i0 < 25 )
			{
				myself::Say(myself::MakeFString(42239,_blank,_blank,_blank,_blank,_blank));
			}
			else if( i0 < 50 )
			{
				myself::Say(myself::MakeFString(42240,_blank,_blank,_blank,_blank,_blank));
			}
			else if( i0 < 75 )
			{
				myself::Say(myself::MakeFString(42241,_blank,_blank,_blank,_blank,_blank));
			}
			else
			{
				myself::Say(myself::MakeFString(42242,_blank,_blank,_blank,_blank,_blank));
			}
		}
	}

	EventHandler TIMER_FIRED_EX(timer_id,i0)
	{
		if( timer_id == 2001 )
		{
			if( gg::Rand(100) < 30 )
			{
				i0 = gg::Rand(100);
				if( i0 < 20 )
				{
					myself::Say(myself::MakeFString(42243,_blank,_blank,_blank,_blank,_blank));
				}
				else if( i0 < 40 )
				{
					myself::Say(myself::MakeFString(42244,_blank,_blank,_blank,_blank,_blank));
				}
				else if( i0 < 60 )
				{
					myself::Say(myself::MakeFString(42245,_blank,_blank,_blank,_blank,_blank));
				}
				else if( i0 < 80 )
				{
					myself::Say(myself::MakeFString(42246,_blank,_blank,_blank,_blank,_blank));
				}
				else
				{
					myself::Say(myself::MakeFString(42247,_blank,_blank,_blank,_blank,_blank));
				}
			}
		}
		myself::AddTimerEx(timer_id,60000);
	}

}
