class 1 alchemists_chest : (null)
{
handler:
	EventHandler CREATED()
	{
		if( myself.boss.alive )
		{
			myself::AddFollowDesire(myself.boss,5);
		}
		else
		{
			myself::Despawn();
			return;
		}
	}

	EventHandler NO_DESIRE()
	{
		if( myself.boss.alive )
		{
			myself::AddFollowDesire(myself.boss,5);
		}
		else
		{
			myself::Despawn();
			return;
		}
	}

	EventHandler ATTACKED(attacker,skill_name_id,i0,gg)
	{
		if( ( skill_name_id / 256 ) == 2322 )
		{
			i0 = gg::Rand(100);
			if( i0 < 45 )
			{
				myself::GiveItem1(attacker,9168,1);
				myself::SoundEffect(attacker,"ItemSound.quest_itemget");
			}
			i0 = gg::Rand(100);
			if( i0 < 45 )
			{
				myself::GiveItem1(attacker,9170,1);
				myself::SoundEffect(attacker,"ItemSound.quest_itemget");
			}
			i0 = gg::Rand(100);
			if( i0 < 5 )
			{
				myself::GiveItem1(attacker,9169,1);
				myself::SoundEffect(attacker,"ItemSound.quest_itemget");
			}
			i0 = gg::Rand(100);
			if( i0 <= 1 )
			{
				myself::GiveItem1(attacker,9162,1);
				myself::SoundEffect(attacker,"ItemSound.quest_itemget");
			}
			i0 = gg::Rand(100);
			if( i0 <= 1 )
			{
				myself::GiveItem1(attacker,9163,1);
				myself::SoundEffect(attacker,"ItemSound.quest_itemget");
			}
			i0 = gg::Rand(100);
			if( i0 <= 1 )
			{
				myself::GiveItem1(attacker,9164,1);
				myself::SoundEffect(attacker,"ItemSound.quest_itemget");
			}
			i0 = gg::Rand(100);
			if( i0 <= 1 )
			{
				myself::GiveItem1(attacker,9165,1);
				myself::SoundEffect(attacker,"ItemSound.quest_itemget");
			}
			i0 = gg::Rand(100);
			if( i0 <= 1 )
			{
				myself::GiveItem1(attacker,9166,1);
				myself::SoundEffect(attacker,"ItemSound.quest_itemget");
			}
			i0 = gg::Rand(100);
			if( i0 <= 1 )
			{
				myself::GiveItem1(attacker,9167,1);
				myself::SoundEffect(attacker,"ItemSound.quest_itemget");
			}
			myself::Suicide();
		}
		else
		{
			myself::AddUseSkillDesire(attacker,1155841,0,1,1000000);
			myself::Say("Uhaha !! Go into the woods my dear friend! ");
		}
	}

}
