ジョシュア千九百八十五

ServUO Version
Publish Unknown
Ultima Expansion
None
Hello. I was wondering why my server is so choppy when I use boots of swiftness or speedboost on a player account but works fine on a staff account without any issues? Is there just too much code for the system to process in the playermobiles file or is their some lines that I can remove to resolve this issue? Thanks
 
I never attempted to remove this as I never intended players to go this quickly but I feel like its something about anti-speedhack
 
The ones I use are called "Speedboots". to get them to work I did the following.
In playermobile.cs
C#:
        public override int ComputeMovementSpeed(Direction dir, bool checkTurning)
        {
            if (checkTurning && (dir & Direction.Mask) != (Direction & Direction.Mask))
            {
                return RunMount; // We are NOT actually moving (just a direction change)
            }

            bool running = ((dir & Direction.Running) != 0);

            bool onHorse = Mount != null || Flying;
//modified for speedboots
            Item sB = FindItemOnLayer( Layer.Shoes );
            bool wearingSpeedboots = sB is Speedboots;

            AnimalFormContext animalContext = AnimalForm.GetContext(this);

            if (onHorse || (animalContext != null && animalContext.SpeedBoost) || wearingSpeedboots || !Alive)
//end modified for speedboots
            {
                return (running ? RunMount : WalkMount);
            }

            return (running ? RunFoot : WalkFoot);
        }
 
The ones I use are called "Speedboots". to get them to work I did the following.
In playermobile.cs
C#:
        public override int ComputeMovementSpeed(Direction dir, bool checkTurning)
        {
            if (checkTurning && (dir & Direction.Mask) != (Direction & Direction.Mask))
            {
                return RunMount; // We are NOT actually moving (just a direction change)
            }

            bool running = ((dir & Direction.Running) != 0);

            bool onHorse = Mount != null || Flying;
//modified for speedboots
            Item sB = FindItemOnLayer( Layer.Shoes );
            bool wearingSpeedboots = sB is Speedboots;

            AnimalFormContext animalContext = AnimalForm.GetContext(this);

            if (onHorse || (animalContext != null && animalContext.SpeedBoost) || wearingSpeedboots || !Alive)
//end modified for speedboots
            {
                return (running ? RunMount : WalkMount);
            }

            return (running ? RunFoot : WalkFoot);
        }

Ok I found the line I'm suppose to plug it in at but I'm getting an error on 1 line
Lool It was a typo. Thank you kind sir
I got it to compile
IT WORKS!!
would be nice if they would add this code into a text file along with the boots in the library because without this edit in the playermobile file, those boots are basically rendered useless.
 
Last edited by a moderator:
Back