class 1 guardian_of_tree : party_private_ex
{
handler:
	EventHandler TIMER_FIRED_EX(timer_id)
	{
		myself::SetCurrentQuestID(421);
		if( timer_id == 42101 )
		{
			myself::Despawn();
		}
		super;
	}

	EventHandler CREATED(c0,i0,i1)
	{
		myself::SetCurrentQuestID(421);
		i0 = myself.sm.param2;
		i1 = myself.sm.param3;
		if( i0 > 0 )
		{
			c0 = myself::GetCreatureFromIndex(i0);
			myself::AddTimerEx(42101,( 1000 * 300 ));
			if( c0 )
			{
				if( i1 == -1 )
				{
					myself::AddUseSkillDesire(c0,1086209,0,0,1000000);
				}
				myself::AddAttackDesire(c0,1,2000);
			}
		}
		else
		{
			i0 = gg::Rand(3);
			if( i0 == 0 )
			{
				myself::Say(myself::MakeFString(42118,"","","","",""));
			}
			else if( i0 == 1 )
			{
				myself::Say(myself::MakeFString(42119,"","","","",""));
			}
			else
			{
				myself::Say(myself::MakeFString(42120,"","","","",""));
			}
		}
		super;
	}

}
