Fix Steed Walk Bug !!!

07/01/2010 15:21 262315610#1
This is my first release!!

Use conquer-sx's 5165 source..

He isn't had fix all bug ... let me fix some bug

first thanx for conquer-sx

1.go Game/Character.cs
Find:
Code:
public void Walk(byte Dir)
Behind this method end of } Add a method of RideWalk And Save:
Code:
        public void RideWalk(byte Dir)
        {
            PreviousX = X;
            PreviousY = Y;

            if (Dir == 0)
                Y += 2;
            if (Dir == 2)
                X -= 2;
            if (Dir == 4)
                Y -= 2;
            if (Dir == 6)
                X += 2;
            if (Dir == 1)
            {
                X -= 2;
                Y += 2;
            }
            if (Dir == 3)
            {
                X -= 2;
                Y -= 2;
            }
            if (Dir == 5)
            {
                X += 2;
                Y -= 2;
            }
            if (Dir == 7)
            {
                X += 2;
                Y += 2;
            }
        }
2. go PacketHandling/walk.cs
Find:
Code:
GC.MyChar.Loc.Walk((byte)(Data[4] % 8));
Replace:
Code:
            
if (!GC.MyChar.StatEff.Contains(StatusEffectEn.Ride))
            {
                GC.MyChar.Loc.Walk((byte)(Data[4] % 8));
            }
            else
            {
                GC.MyChar.Loc.RideWalk((byte)(Data[4] % 8));
            }
3.Compile and run project!!! The end, if you can't see my mind , sorry my bad english!!! Because i'm a chinese!!
07/01/2010 16:33 -impulse-#2
It's not the right fix, though it's almost.
07/01/2010 17:22 .Kob#3
Quote:
Originally Posted by -impulse- View Post
It's not the right fix, though it's almost.
Whats wrong with that?
07/01/2010 18:44 Sp!!ke#4
agree with impulse that not work
07/01/2010 19:07 -impulse-#5
Quote:
Originally Posted by cakobu View Post
Whats wrong with that?
Each horse walk is typically x * 2coordsmove + 1 move

with this thing you'll end up being on another spot also, just with one coord only though
07/01/2010 21:03 262315610#6
Quote:
Originally Posted by -impulse- View Post
Each horse walk is typically x * 2coordsmove + 1 move

with this thing you'll end up being on another spot also, just with one coord only though

it work so right!!!
07/01/2010 21:42 _DreadNought_#7
impulse idfk but cant u just do then
Code:
steed.x * 2 + 1;
edit so like ?
Code:
public void RideWalk(byte Dir)
        {
            PreviousX = X;
            PreviousY = Y;

            if (Dir == 0)
                Y += 2;
            if (Dir == 2)
                X / 2 - 1'
            if (Dir == 4)
                Y -= 2;
            if (Dir == 6)
                X * 2 + 1;
            if (Dir == 1)
            {
                X / 2 - 1;
                Y += 2;
            }
            if (Dir == 3)
            {
                X / 2 - 1;
                Y -= 2;
            }
            if (Dir == 5)
            {
                X * 2 + 2;
                Y -= 2;
            }
            if (Dir == 7)
            {
                X * 2 + 1;
                Y + 2;
            }
        }
just a guess ?
07/01/2010 21:55 -impulse-#8
Quote:
Originally Posted by Eliminationn View Post
impulse idfk but cant u just do then
Code:
steed.x * 2 + 1;
edit so like ?
Code:
public void RideWalk(byte Dir)
        {
            PreviousX = X;
            PreviousY = Y;

            if (Dir == 0)
                Y += 2;
            if (Dir == 2)
                X / 2 - 1'
            if (Dir == 4)
                Y -= 2;
            if (Dir == 6)
                X * 2 + 1;
            if (Dir == 1)
            {
                X / 2 - 1;
                Y += 2;
            }
            if (Dir == 3)
            {
                X / 2 - 1;
                Y -= 2;
            }
            if (Dir == 5)
            {
                X * 2 + 2;
                Y -= 2;
            }
            if (Dir == 7)
            {
                X * 2 + 1;
                Y + 2;
            }
        }
just a guess ?
No...
Client specify when to do twice the move and do it once.
No need for that.
07/02/2010 00:54 12tails#9
also... the horse walk is byte 9....

walking you have 3 bytes now....

0, 1 and 9 (for steeds)
07/02/2010 02:11 -impulse-#10
Quote:
Originally Posted by 12tails View Post
also... the horse walk is byte 9....

walking you have 3 bytes now....

0, 1 and 9 (for steeds)
Indeed.
07/04/2010 11:37 nestreys#11
Code:
if (!GC.MyChar.StatEff.Contains([COLOR="Red"]StatusEffectEn[/COLOR].Ride))
            {
                GC.MyChar.Loc.Walk((byte)(Data[4] % 8));
            }
            else
            {
                GC.MyChar.Loc.[COLOR="Red"]RideWalk[/COLOR]((byte)(Data[4] % 8));
            }

error on red..
07/04/2010 12:36 262315610#12
Quote:
Originally Posted by nestreys View Post
Code:
if (!GC.MyChar.StatEff.Contains([COLOR="Red"]StatusEffectEn[/COLOR].Ride))
            {
                GC.MyChar.Loc.Walk((byte)(Data[4] % 8));
            }
            else
            {
                GC.MyChar.Loc.[COLOR="Red"]RideWalk[/COLOR]((byte)(Data[4] % 8));
            }

error on red..
are your source is conquer-sx's??
07/04/2010 15:45 nestreys#13
yes... the SQL one.. im getting that error..
07/04/2010 19:25 Sp!!ke#14
that is not a fix for steed walk you need to fix add coord for walk steed I'm not sure you understand me but good luck ...
07/05/2010 03:15 262315610#15
Quote:
Originally Posted by Tweety.4Girls View Post
that is not a fix for steed walk you need to fix add coord for walk steed I'm not sure you understand me but good luck ...

yea...understand!

any where i'm use the method so right!!

have no coord error ....have not any error!!!