Register for your free account! | Forgot your password?

You last visited: Today at 16:44

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Fix Steed Walk Bug !!!

Discussion on Fix Steed Walk Bug !!! within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2010
Posts: 90
Received Thanks: 17
Fix Steed Walk Bug !!!

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!!
262315610 is offline  
Old 07/01/2010, 16:33   #2
 
elite*gold: 0
Join Date: Oct 2009
Posts: 768
Received Thanks: 550
It's not the right fix, though it's almost.
-impulse- is offline  
Old 07/01/2010, 17:22   #3
 
elite*gold: 0
Join Date: Sep 2008
Posts: 178
Received Thanks: 62
Quote:
Originally Posted by -impulse- View Post
It's not the right fix, though it's almost.
Whats wrong with that?
.Kob is offline  
Old 07/01/2010, 18:44   #4
 
Sp!!ke's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 380
Received Thanks: 58
agree with impulse that not work
Sp!!ke is offline  
Old 07/01/2010, 19:07   #5
 
elite*gold: 0
Join Date: Oct 2009
Posts: 768
Received Thanks: 550
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
-impulse- is offline  
Thanks
1 User
Old 07/01/2010, 21:03   #6
 
elite*gold: 0
Join Date: Feb 2010
Posts: 90
Received Thanks: 17
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!!!
262315610 is offline  
Old 07/01/2010, 21:42   #7
 
_DreadNought_'s Avatar
 
elite*gold: 28
Join Date: Jun 2010
Posts: 2,226
Received Thanks: 868
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 ?
_DreadNought_ is offline  
Old 07/01/2010, 21:55   #8
 
elite*gold: 0
Join Date: Oct 2009
Posts: 768
Received Thanks: 550
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.
-impulse- is offline  
Old 07/02/2010, 00:54   #9
 
12tails's Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 782
Received Thanks: 458
also... the horse walk is byte 9....

walking you have 3 bytes now....

0, 1 and 9 (for steeds)
12tails is offline  
Old 07/02/2010, 02:11   #10
 
elite*gold: 0
Join Date: Oct 2009
Posts: 768
Received Thanks: 550
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.
-impulse- is offline  
Old 07/04/2010, 11:37   #11
 
elite*gold: 0
Join Date: Nov 2007
Posts: 128
Received Thanks: 80
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..
nestreys is offline  
Old 07/04/2010, 12:36   #12
 
elite*gold: 0
Join Date: Feb 2010
Posts: 90
Received Thanks: 17
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??
262315610 is offline  
Old 07/04/2010, 15:45   #13
 
elite*gold: 0
Join Date: Nov 2007
Posts: 128
Received Thanks: 80
yes... the SQL one.. im getting that error..
nestreys is offline  
Old 07/04/2010, 19:25   #14
 
Sp!!ke's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 380
Received Thanks: 58
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 ...
Sp!!ke is offline  
Old 07/05/2010, 03:15   #15
 
elite*gold: 0
Join Date: Feb 2010
Posts: 90
Received Thanks: 17
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!!!
262315610 is offline  
Reply


Similar Threads Similar Threads
Celestial Steed - Key
08/23/2010 - World of Warcraft - 2 Replies
Hey Leute, könnte mir freundlicherweise jemand einen bereits eingelösten Key von diesem Mount zur verfügung stellen? Gerne auch über PN. Danke euch
[Help] Steed Plus NPC
07/06/2010 - CO2 Private Server - 2 Replies
#region Steed Plus Officer NPC case 9881: { if (option == 0) { GC.AddSend(Packets.NPCSay("I can put a plus on your steed for a saddle. Do you want it?")); GC.AddSend(Packets.NPCLink("Yes. Please.", 12)); GC.AddSend(Packets.NPCLink("No....
Zebra Steed
03/13/2010 - Conquer Online 2 - 1 Replies
http://img237.imageshack.us/img237/1372/47eh9.gif Hello Can I ask for question http://img237.imageshack.us/img237/1372/47eh9.gif How Can i Make { Zebra Steed }
steed
09/03/2009 - CO2 Private Server - 1 Replies
hpw o can add a steed in coemu
Steed +
08/01/2009 - Conquer Online 2 - 4 Replies
i Need To + My Horse :o So,



All times are GMT +1. The time now is 16:44.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.