Register for your free account! | Forgot your password?

You last visited: Today at 16:45

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

 

[Lelees!]Steeds Walk

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Aug 2010
Posts: 971
Received Thanks: 1,047
[Lelees!]Steeds Walk

@any mod if this can be closed (or maybe removed) than do it please (i have no intention to replay to this thread any more)

the whole thing goes to the walk handler

you might need to add a check for the available X/y before each -/+ but i dident bother :S

for the HellMouth users this is gonna be easy to convert ,

Credits goes to me for this ,
Code:
byte Speed = Data[12];
Byte Dir = Data[4][COLOR="Red"] % 8[/COLOR];//For Blind ppl that couldent figure it out yet  
#region SteedsWalk Coords
        if (Client.ActiveStats.ContainsKey(Enum.Effect.Riding))
        {
            byte SteedWalk2 = (byte)(Data[4] % 3);
            byte SteedWalk1 = (byte)(Data[4] % 2);
            switch (SteedWalk1)
            {
                case 0:
                    {
                        #region SteedWal1 0
                        switch (Dir)
                        {
                            case 2:
                                {
                                    if (Speed == 0)
                                    {
                                        Client.X -= 1;
                                    }
                                    else if (Speed == 9 && SteedWalk2 == 2)
                                    {
                                        Client.X -= 2;
                                    }
                                    else
                                    {
                                        Client.X -= 2;
                                        Client.Y -= 1;
                                    }
                                    break;
                                }
                            case 6:
                                {
                                    if (Speed == 0)
                                    {
                                        Client.X += 1;
                                    }
                                    else if (Speed == 9 && SteedWalk2 == 0)
                                    {
                                        Client.X += 2;
                                    }

                                    else
                                    {
                                        Client.X += 2;
                                        Client.Y += 1;
                                    }
                                    break;
                                }
                            case 0:
                                {
                                    if (Speed == 0)
                                    {
                                        Client.Y += 1;
                                    }
                                    else if (Speed == 9 && SteedWalk2 == 0)
                                    {
                                        Client.Y += 2;
                                    }
                                    else
                                    {
                                        Client.X -= 1;
                                        Client.Y += 2;
                                    }
                                    break;
                                }
                            case 4:
                                {
                                    if (Speed == 0)
                                    {
                                        Client.Y -= 1;
                                    }
                                    else if (Speed == 9 && SteedWalk2 == 1)
                                    {
                                        Client.Y -= 2;
                                    }
                                    else
                                    {
                                        Client.X += 1;
                                        Client.Y -= 2;
                                    }
                                    break;
                                }
                        }
                        break;
                        #endregion
                    }
                case 1:
                    {
                        #region SteedWal1
                        switch (Dir)
                        {
                            case 3:
                                {
                                    if (Speed == 0)
                                    {
                                        Client.X -= 1;
                                        Client.Y -= 1;
                                    }
                                    else if (Speed == 9 && SteedWalk2 == 0)
                                    {
                                        Client.X -= 2;
                                        Client.Y -= 2;
                                    }

                                    else
                                    {
                                        Client.X -= 1;
                                        Client.Y -= 2;
                                    }
                                    break;
                                }
                            case 7:
                                {
                                    if (Speed == 0 && SteedWalk2 < 3)
                                    {
                                        Client.X += 1;
                                        Client.Y += 1;
                                    }
                                    else if (Speed == 9 && SteedWalk2 == 1)
                                    {
                                        Client.X += 2;
                                        Client.Y += 2;
                                    }

                                    else
                                    {
                                        Client.X += 1;
                                        Client.Y += 2;
                                    }
                                    break;
                                }
                            case 5:
                                {
                                    if (Speed == 0)
                                    {
                                        Client.X += 1;
                                        Client.Y -= 1;
                                    }
                                    else if (Speed == 9 && SteedWalk2 == 2)
                                    {
                                        Client.X += 2;
                                        Client.Y -= 2;
                                    }
                                    else
                                    {
                                        Client.X += 2;
                                        Client.Y -= 1;
                                    }
                                    break;
                                }
                            case 1:
                                {
                                    if (Speed == 0 && SteedWalk2 < 3)
                                    {
                                        Client.X -= 1;
                                        Client.Y += 1;
                                    }
                                    else if (Speed == 9 && SteedWalk2 == 1)
                                    {
                                        Client.X -= 2;
                                        Client.Y += 2;
                                    }
                                    else
                                    {
                                        Client.X -= 2;
                                        Client.Y += 1;
                                    }
                                    break;
                                }
                        }
                        break;
                        #endregion
                    }
            }
        }
        #endregion
       else {Process the normal walk here  }
Ps. the Direction must be sent just like what it is to the client while riding the horse (Data[4]) not Data[4] % 8

and that should give you the exact X/y + in Game Player Location,

enjoy .

Note . this is meant to work on the last patches not sure about the lower patches



for the its not working ppl !!



{ Angelius } is offline  
Thanks
6 Users
Old   #2
 
elite*gold: 0
Join Date: Apr 2011
Posts: 8
Received Thanks: 0
good work


Takashipvp is offline  
Old   #3
 
elite*gold: 0
Join Date: Jan 2011
Posts: 470
Received Thanks: 96
Geezus... this is REALLY unorganized and inefficient...
I thought you said you were smarter than me.
Spirited42 is offline  
Old   #4
 
elite*gold: 0
Join Date: Mar 2011
Posts: 165
Received Thanks: 17
You're the man!


iStefan is offline  
Old   #5
 
elite*gold: 0
Join Date: Aug 2010
Posts: 971
Received Thanks: 1,047
Quote:
Originally Posted by Spirited View Post
Geezus... this is REALLY unorganized and inefficient...
***** you are so full off ****,

what did expect code it/organize it/give you the high quality code/add to your source and say there you go BOSS Spirited its ready to be used!!


WTF Please do what you have been trying to do for the lat 50 million years and you couldent (Shut Up for once !!)
{ Angelius } is offline  
Old   #6
 
elite*gold: 0
Join Date: Nov 2010
Posts: 371
Received Thanks: 115
Nice work!!
JobvdH is offline  
Old   #7
 
elite*gold: 0
Join Date: Nov 2010
Posts: 237
Received Thanks: 99
Quote:
Originally Posted by { Angelius } View Post
***** you are so full off ****,

what did expect code it/organize it/give you the high quality code/add to your source and say there you go BOSS Spirited its ready to be used!!


WTF Please do what you have been trying to do for the lat 50 million years and you couldent (Shut Up for once !!)
I agree to fang.
|NeoX is offline  
Thanks
1 User
Old   #8
 
elite*gold: 0
Join Date: Mar 2011
Posts: 165
Received Thanks: 17
Quote:
Originally Posted by |NeoX View Post
I agree to fang.
I Don't. I never seen Angelius saying that he's smarter than Gareth.
iStefan is offline  
Thanks
1 User
Old   #9
 
elite*gold: 0
Join Date: Jun 2010
Posts: 2,183
Received Thanks: 843
Quote:
Originally Posted by { Angelius } View Post
***** you are so full off ****,

what did expect code it/organize it/give you the high quality code/add to your source and say there you go BOSS Spirited its ready to be used!!


WTF Please do what you have been trying to do for the lat 50 million years and you couldent (Shut Up for once !!)
On fangs side here, I'll be honest and say im not too sure why Fang brought it to this thread but whats been done is done.

After looking at the snippet of code you posted, Yea im sure you coded your own source but im also pretty certain then its not efficient or organized.
Maybe later ill clean the code up and release it back in the thread, maybe.
_DreadNought_ is offline  
Old   #10
 
elite*gold: 0
Join Date: Aug 2010
Posts: 971
Received Thanks: 1,047
@ the Clean/efficient lovers

it is just like what it is take it or leave it lol
its just (I Dont Care enough to clean **** for yo or to release my used code)

so yeah clean it your self you got how **** works now use your magical fingers :S


Quote:
Originally Posted by iStefan View Post
I Don't. I never seen Angelius saying that he's smarter than Gareth.
something is wrong with him lol, so i thought about ignoring it :P
{ Angelius } is offline  
Old   #11
 
elite*gold: 0
Join Date: Jun 2010
Posts: 2,183
Received Thanks: 843
So your saying in your source this code is clean?
_DreadNought_ is offline  
Old   #12
 
elite*gold: 0
Join Date: Aug 2010
Posts: 971
Received Thanks: 1,047
Quote:
Originally Posted by _DreadNought_ View Post
So your saying in your source this code is clean?
why do you have a buyer ?
{ Angelius } is offline  
Old   #13
 
elite*gold: 0
Join Date: Jun 2010
Posts: 2,183
Received Thanks: 843
**** no.

Simple question tho, Is it?
_DreadNought_ is offline  
Old   #14
 
elite*gold: 0
Join Date: Aug 2010
Posts: 971
Received Thanks: 1,047
Quote:
Originally Posted by _DreadNought_ View Post
**** no.

Simple question tho, Is it?
well than why the (***** ***** ****) **** i hate those stars ha ha :P

let ME ask you this did you test the code or even check if it was at least a working code ?
{ Angelius } is offline  
Old   #15
 
elite*gold: 0
Join Date: Jun 2010
Posts: 2,183
Received Thanks: 843
Looks like it'll work without errors. Not tested at all.


**** this. Forget I said anything.


_DreadNought_ is offline  
Reply



« Previous Thread | Next Thread »

Similar Threads
Should i release the steeds walk
yes or no ? Side Note: Steeds Walk
31 Replies - CO2 PServer - Discussions / Questions
Steeds
Is there anyway to make it un-able for player to attack on a steed. for ex. when a player does any skill/attack it auto matically un-mounts? if...
1 Replies - CO2 PServer - Discussions / Questions
Hmm... About Steeds?
Why always when i Ride Steed and when i try to unmount it i cant ??? why? And PLEASE dont post stupid answers or questions :rtfm::rtfm::rtfm::rtfm:
13 Replies - CO2 PServer - Discussions / Questions
Any News About Steeds?
=O LOL Any New Bout Implanting the Steeds?
20 Replies - CO2 PServer - Discussions / Questions
steeds
hello all.... guys please those who know's the combination kindly post it with basic how on it... others have posted i find it hard to understand.......
0 Replies - Say Hello



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


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2017 elitepvpers All Rights Reserved.