Register for your free account! | Forgot your password?

You last visited: Today at 05:45

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

Advertisement



[Question]Jump

Discussion on [Question]Jump within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2009
Posts: 262
Received Thanks: 161
[Question]Jump

Who can tell me why the players jump so fast?
in 5165 :|

My jump.cs
Code:
               public static bool CanSee(int SeeX, int SeeY, int MyX, int MyY)
        {
            return (Math.Max(Math.Abs(SeeX - MyX), Math.Abs(SeeY - MyY)) <= 17);
        }

        public static void Handle(Main.GameClient GC, byte[] Data)
        {

            ushort Previos_X = BitConverter.ToUInt16(Data, 20);
            ushort Previos_y = BitConverter.ToUInt16(Data, 22);
            ushort new_X = (ushort)(BitConverter.ToUInt32(Data, 8) & 0xFFFF);
            ushort new_Y = (ushort)(BitConverter.ToUInt32(Data, 10) & 0xFFFF);//(ushort)(BitConverter.ToUInt32(Data, 8) >> 16);

          
           // Console.WriteLine("X {0} and Y{1}", new_X, new_Y);
           COPacket Jump = Packets.GeneralData(GC.MyChar.EntityID, new_X, new_Y, Previos_X, Previos_y, 0, 137);
            foreach (DictionaryEntry DE in Game.World.H_Chars)
            {
                Game.Character C = (Game.Character)DE.Value;
                {
                    if (GC.MyChar.Loc.Map == C.Loc.Map)
                    {
                        if (CanSee(GC.MyChar.Loc.X, GC.MyChar.Loc.Y, C.Loc.X, C.Loc.Y))
                            C.MyClient.SendPacket(Jump);
                       // C.MyClient.SendPacket(Packets.GeneralData(GC.MyChar.EntityID, new_X, new_Y, Previos_X, Previos_y, 0, 137));
                    }
                }
            }
           
            GC.MyChar.lastJumpDistance = GetDistance(new_X, new_Y, GC.MyChar.Loc.X, GC.MyChar.Loc.Y);
            GC.MyChar.lastJumpTime = DateTime.Now;
            GC.MyChar.Mining = false;
            GC.MyChar.AtkMem.Attacking = false;
            GC.MyChar.InvencibleTime = DateTime.Now;
            GC.MyChar.secondeimunity = 0;
            GC.MyChar.Action = (byte)Game.ConquerAction.Jump;
            GC.MyChar.Loc.PreviousX = Previos_X;
            GC.MyChar.Loc.PreviousY = Previos_y;
            GC.MyChar.Loc.X = new_X;
            GC.MyChar.Loc.Y = new_Y;
            Game.World.Spawns(GC.MyChar, true);
Send Packet whit:
Code:
public unsafe void SendPacket(COPacket Packet)
       {
           if (Soc.Connected)
           {
               byte[] P = Packet.Get;
               fixed (byte* p = P)
               {
                   string TQServer = "TQServer";
                   for (int i = 0; i < 8; i++)
                       *(p + i + P.Length - 8) = Convert.ToByte(TQServer[i]);

               }
               PacketGroup.Add(P);
               Monitor.Enter(this);
               try
               {
                   ArrayList Packets = new ArrayList();
                   for (int i = 0; i < PacketGroup.Count; i++)
                       Packets.Add(PacketGroup[i]);
                   int TotalLength = 0;
                   foreach (byte[] Pa in Packets)
                       if (Pa != null)
                           if (Pa.Length > 0)
                               TotalLength += Pa.Length;
                   byte[] Data = new byte[TotalLength];
                   int Pos = 0;
                   lock (Packets)
                   {
                       foreach (byte[] Pa in Packets)
                       {
                           if (Pa != null)
                           {
                               if (Pa.Length > 0)
                               {
                                   Buffer.BlockCopy(Pa, 0, Data, Pos, Pa.Length);
                                   Pos += Pa.Length;
                               }
                           }
                       }
                       try
                       {
                           Crypto.Encrypt(Data);
                           Soc.Send(Data, Data.Length, SocketFlags.None);
                       }
                       catch { }
                   }
                   Packets = null;
                   PacketGroup = new ArrayList();
               }
               catch (Exception c) { PacketGroup = new ArrayList(); Program.WriteLine(c.ToString()); }
               //Crypto.Encrypt(P);
               Monitor.Exit(this);

               //Soc.Send(P);

           }
           else
               Disconnect();
       }
teroareboss1 is offline  
Old 07/28/2010, 16:09   #2
 
elite*gold: 0
Join Date: Feb 2009
Posts: 1,765
Received Thanks: 382
The jump is normal lol.
If you want it slower, change to old jump.
Fish* is offline  
Old 07/28/2010, 21:13   #3
 
elite*gold: 0
Join Date: Sep 2008
Posts: 494
Received Thanks: 120
there can be few reasons like bots/cheats or they have 50 ping
Adziunia is offline  
Old 07/28/2010, 22:05   #4
 
elite*gold: 0
Join Date: Feb 2009
Posts: 262
Received Thanks: 161
Quote:
Originally Posted by Adziunia View Post
there can be few reasons like bots/cheats or they have 50 ping
Quote:
Originally Posted by grillmad View Post
The jump is normal lol.
If you want it slower, change to old jump.
This is not the problem,send the packet with 200miliseconds leater
if you jump again the character goes fast,like jumping with speed
teroareboss1 is offline  
Thanks
2 Users
Reply

« [Help] | item type »

Similar Threads Similar Threads
[Question]CoEmuv2 jump
08/26/2009 - CO2 Private Server - 7 Replies
How can I change the jump style of a duel weilder trojan to the OLD jump style?
[question]No jump gate in my serveur
05/01/2009 - CO2 Private Server - 1 Replies
I asked how I can do to not jump gate(gw) in my server? Thank you!:o (my client is 5017)
[Exploit] Jump through the ground and move whereever you want then jump back
06/28/2008 - General Gaming Releases - 7 Replies
Hai, in my effort to try and contribute to this amazing place =) This can work like a teleport in getting you almost any place you want to go. It requires no addons/bots/programs, its built in nicly in age of conan Here is how you do it : Simply type : /minion_falling_down Voila you fall through and can move wherever you want to go
Any jump gate, jump wall tool for 5028
06/23/2008 - Conquer Online 2 - 0 Replies
I've searched the whole site looking for a tool for the above mentioned. Anyone know any tools still work for 5028 patch with the above mentioned feature?
can you jump? (just a yes, no, how? question)
08/29/2007 - Eudemons Online - 3 Replies
can you jump?:confused: how?:confused:



All times are GMT +1. The time now is 05:49.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.