@LabelIndex 30396
@StringIndex 0
class 0 pet_around_pet_manager : default_npc {
parameter:
	string	fnHi = "chi.htm";
	int	MoveAroundSocial = 0;
	int	MoveAroundSocial1 = 0;

handler:
	EventHandler CREATED() {
		myself::AddPetDefaultDesire_Follow(30.000000);
		myself::AddTimerEx(5001,3000);
		myself.i_ai2 = gg::FloatToInt(myself.start_x);
		myself.i_ai3 = gg::FloatToInt(myself.start_y);
		myself.i_ai4 = gg::FloatToInt(myself.boss.z);
	}

	EventHandler TIMER_FIRED_EX(timer_id,i0,i1) {
		if( timer_id == 5001 ) {
			if( myself::IsMyBossAlive() == 0 ) {
				myself::AddMoveToDesire(myself.i_ai2,myself.i_ai3,myself.i_ai4,30);
				myself::AddTimerEx(5001,5000);
			}
		}
	}

	EventHandler MOVE_TO_FINISHED() {
		myself.i_ai2 = ( ( gg::FloatToInt(myself.boss.x) - 50 ) + gg::Rand(100) );
		myself.i_ai3 = ( ( gg::FloatToInt(myself.boss.y) - 50 ) + gg::Rand(100) );
	}

}
