示例#1
0
        public static void WalkToOwner(RoomUser Pet)
        {
            GameClient FollowingOwner = null;

            FollowingOwner = Plus.GetGame().GetClientManager().GetClientByUserId(Pet.BotData.OwnerId);

            if (FollowingOwner == null)
            {
                Console.WriteLine("Owner was null");
                return;
            }

            if (FollowingOwner.GetHabbo().GetRoomUser() == null)
            {
                Console.WriteLine("Owner roomuser was null");
                return;
            }

            if (FollowingOwner.GetHabbo().GetRoomUser().RoomId != Pet.RoomId)
            {
                Console.WriteLine("Owner is not in the room");
                return;
            }

            Pet.Chat(null, "Just a second master, I'm coming!", true, 0, 0);
            Pet.Move(FollowingOwner.GetHabbo().GetRoomUser().GoalX, FollowingOwner.GetHabbo().GetRoomUser().GoalY, FollowingOwner.GetHabbo().GetRoomUser().FollowingOwner.RotBody);
        }