Register for your free account! | Forgot your password?

You last visited: Today at 21:50

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

Advertisement



5180 Offsets

Discussion on 5180 Offsets within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
.Beatz's Avatar
 
elite*gold: 0
Join Date: May 2006
Posts: 1,190
Received Thanks: 516
5180 Offsets

Hey guys just wondering if anyone has the correct SpawnEntity offsets for 5180 source?

I have been working on them and cant seem to get the colour offsets right :/

I have used a few 5180 sources that I found as a reference but Exodus Binaries is very poorly layed out and quite hard to figure out what is what in that source lmao

Anyone that can PM me or post them here is a lifesaver and about another 5 hours of me scratching my head solved haha

Thanks in advance
.Beatz is offline  
Old 02/15/2011, 15:14   #2
 
Iron~Man's Avatar
 
elite*gold: 0
Join Date: Dec 2010
Posts: 162
Received Thanks: 31
I've got entityspawn for Characters for 5180, Talk to me on msn
Iron~Man is offline  
Old 02/15/2011, 16:15   #3
 
.Beatz's Avatar
 
elite*gold: 0
Join Date: May 2006
Posts: 1,190
Received Thanks: 516
Quote:
Originally Posted by Iron~Man View Post
I've got entityspawn for Characters for 5180, Talk to me on msn
Ummm what's your msn??
.Beatz is offline  
Old 02/15/2011, 16:24   #4
 
Iron~Man's Avatar
 
elite*gold: 0
Join Date: Dec 2010
Posts: 162
Received Thanks: 31
You already have me..
Iron~Man is offline  
Old 02/15/2011, 19:58   #5
 
elite*gold: 0
Join Date: Oct 2009
Posts: 768
Received Thanks: 550
PHP Code:
        public void ClearItemview(uint Position)
        {
            switch ((
ushort)Position)
            {
                case 
Network.GamePackets.ConquerItem.Head:
                    
Network.Writer.WriteUInt32(030Owner.Entity.SpawnPacket);
                    
Network.Writer.WriteUInt16(0103Owner.Entity.SpawnPacket);
                    break;
                case 
Network.GamePackets.ConquerItem.Garment:
                    
Network.Writer.WriteUInt32(034Owner.Entity.SpawnPacket);
                    break;
                case 
Network.GamePackets.ConquerItem.Armor:
                    
Network.Writer.WriteUInt32(038Owner.Entity.SpawnPacket);
                    
Network.Writer.WriteUInt16(099Owner.Entity.SpawnPacket);
                    break;
                case 
Network.GamePackets.ConquerItem.RightWeapon:
                    
Network.Writer.WriteUInt32(046Owner.Entity.SpawnPacket);
                    break;
                case 
Network.GamePackets.ConquerItem.LeftWeapon:
                    
Network.Writer.WriteUInt32(042Owner.Entity.SpawnPacket);
                    
Network.Writer.WriteUInt16(0101Owner.Entity.SpawnPacket);
                    break;
                case 
Network.GamePackets.ConquerItem.Steed:
                    
Network.Writer.WriteUInt32(050Owner.Entity.SpawnPacket);
                    
Network.Writer.WriteUInt16(0109Owner.Entity.SpawnPacket);
                    
Network.Writer.WriteUInt32(0115Owner.Entity.SpawnPacket);
                    break;
            }
        }
        public 
void UpdateItemview(Interfaces.IConquerItem item)
        {
            switch ((
ushort)item.Position)
            {
                case 
Network.GamePackets.ConquerItem.Head:
                    
Network.Writer.WriteUInt32(item.ID30Owner.Entity.SpawnPacket);
                    
Network.Writer.WriteUInt16((byte)item.Color103Owner.Entity.SpawnPacket);
                    break;
                case 
Network.GamePackets.ConquerItem.Garment:
                    
Network.Writer.WriteUInt32(item.ID34Owner.Entity.SpawnPacket);
                    break;
                case 
Network.GamePackets.ConquerItem.Armor:
                    
Network.Writer.WriteUInt32(item.ID38Owner.Entity.SpawnPacket);
                    
Network.Writer.WriteUInt16((byte)item.Color99Owner.Entity.SpawnPacket);
                    break;
                case 
Network.GamePackets.ConquerItem.RightWeapon:
                    
Network.Writer.WriteUInt32(item.ID46Owner.Entity.SpawnPacket);
                    break;
                case 
Network.GamePackets.ConquerItem.LeftWeapon:
                    
Network.Writer.WriteUInt32(item.ID42Owner.Entity.SpawnPacket);
                    
Network.Writer.WriteUInt16((byte)item.Color101Owner.Entity.SpawnPacket);
                    break;
                case 
Network.GamePackets.ConquerItem.Steed:
                    
Network.Writer.WriteUInt32(item.ID50Owner.Entity.SpawnPacket);
                    
Network.Writer.WriteUInt16((byte)item.Plus109Owner.Entity.SpawnPacket);
                    
Network.Writer.WriteUInt32(item.SocketProgress115Owner.Entity.SpawnPacket);
                    break;
            }
        } 
-impulse- is offline  
Thanks
4 Users
Old 02/15/2011, 21:54   #6
 
Iron~Man's Avatar
 
elite*gold: 0
Join Date: Dec 2010
Posts: 162
Received Thanks: 31
Quote:
Originally Posted by -impulse- View Post
PHP Code:
        public void ClearItemview(uint Position)
        {
            switch ((
ushort)Position)
            {
                case 
Network.GamePackets.ConquerItem.Head:
                    
Network.Writer.WriteUInt32(030Owner.Entity.SpawnPacket);
                    
Network.Writer.WriteUInt16(0103Owner.Entity.SpawnPacket);
                    break;
                case 
Network.GamePackets.ConquerItem.Garment:
                    
Network.Writer.WriteUInt32(034Owner.Entity.SpawnPacket);
                    break;
                case 
Network.GamePackets.ConquerItem.Armor:
                    
Network.Writer.WriteUInt32(038Owner.Entity.SpawnPacket);
                    
Network.Writer.WriteUInt16(099Owner.Entity.SpawnPacket);
                    break;
                case 
Network.GamePackets.ConquerItem.RightWeapon:
                    
Network.Writer.WriteUInt32(046Owner.Entity.SpawnPacket);
                    break;
                case 
Network.GamePackets.ConquerItem.LeftWeapon:
                    
Network.Writer.WriteUInt32(042Owner.Entity.SpawnPacket);
                    
Network.Writer.WriteUInt16(0101Owner.Entity.SpawnPacket);
                    break;
                case 
Network.GamePackets.ConquerItem.Steed:
                    
Network.Writer.WriteUInt32(050Owner.Entity.SpawnPacket);
                    
Network.Writer.WriteUInt16(0109Owner.Entity.SpawnPacket);
                    
Network.Writer.WriteUInt32(0115Owner.Entity.SpawnPacket);
                    break;
            }
        }
        public 
void UpdateItemview(Interfaces.IConquerItem item)
        {
            switch ((
ushort)item.Position)
            {
                case 
Network.GamePackets.ConquerItem.Head:
                    
Network.Writer.WriteUInt32(item.ID30Owner.Entity.SpawnPacket);
                    
Network.Writer.WriteUInt16((byte)item.Color103Owner.Entity.SpawnPacket);
                    break;
                case 
Network.GamePackets.ConquerItem.Garment:
                    
Network.Writer.WriteUInt32(item.ID34Owner.Entity.SpawnPacket);
                    break;
                case 
Network.GamePackets.ConquerItem.Armor:
                    
Network.Writer.WriteUInt32(item.ID38Owner.Entity.SpawnPacket);
                    
Network.Writer.WriteUInt16((byte)item.Color99Owner.Entity.SpawnPacket);
                    break;
                case 
Network.GamePackets.ConquerItem.RightWeapon:
                    
Network.Writer.WriteUInt32(item.ID46Owner.Entity.SpawnPacket);
                    break;
                case 
Network.GamePackets.ConquerItem.LeftWeapon:
                    
Network.Writer.WriteUInt32(item.ID42Owner.Entity.SpawnPacket);
                    
Network.Writer.WriteUInt16((byte)item.Color101Owner.Entity.SpawnPacket);
                    break;
                case 
Network.GamePackets.ConquerItem.Steed:
                    
Network.Writer.WriteUInt32(item.ID50Owner.Entity.SpawnPacket);
                    
Network.Writer.WriteUInt16((byte)item.Plus109Owner.Entity.SpawnPacket);
                    
Network.Writer.WriteUInt32(item.SocketProgress115Owner.Entity.SpawnPacket);
                    break;
            }
        } 
I <3 Your Packet Builder.
Iron~Man is offline  
Old 02/16/2011, 00:16   #7
 
QuickCo's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 139
Received Thanks: 45
Quote:
Originally Posted by Iron~Man View Post
I <3 Your Packet Builder.
You mean Hybrids packet builder?
QuickCo is offline  
Old 02/16/2011, 08:05   #8
 
elite*gold: 0
Join Date: Oct 2009
Posts: 768
Received Thanks: 550
Quote:
Originally Posted by QuickCo View Post
You mean Hybrids packet builder?
Indeed.
-impulse- is offline  
Old 02/16/2011, 08:53   #9
 
elite*gold: 0
Join Date: Jan 2011
Posts: 470
Received Thanks: 97
Quote:
Originally Posted by -impulse- View Post
Indeed.
It's so much more organized than CoEmu and NewestCOServer's packet builder. What's not to love about it. lol

Btw,
Code:
client = _client;
Buffer = new byte[84];
WriteUInt16((ushort)(Buffer.Length - 8), 0, Buffer);
WriteUInt16(1009, 2, Buffer);
WriteUInt32(46, 12, Buffer);
WriteUInt32(id, (28 + (Position * 4)), Buffer);
client.Send(Buffer);
and calling "new ItemView(Owner, (byte)Position, 0);" and "new ItemView(Owner, Position, item.UID);"
might be a better way of doing that.
Spirited42 is offline  
Thanks
1 User
Old 02/16/2011, 15:11   #10
 
.Beatz's Avatar
 
elite*gold: 0
Join Date: May 2006
Posts: 1,190
Received Thanks: 516
Mmmkay thanks for the help guys got my characters spawning now

No GM or PM shows up nor does the chars name on a different client screen... but I can work on that ahaa

+k to people that helped
.Beatz is offline  
Old 02/16/2011, 16:12   #11
 
Arco.'s Avatar
 
elite*gold: 0
Join Date: Feb 2011
Posts: 335
Received Thanks: 170
Quote:
Originally Posted by Spirited View Post
It's so much more organized than CoEmu and NewestCOServer's packet builder. What's not to love about it. lol

Btw,
Code:
client = _client;
Buffer = new byte[84];
WriteUInt16((ushort)(Buffer.Length - 8), 0, Buffer);
WriteUInt16(1009, 2, Buffer);
WriteUInt32(46, 12, Buffer);
WriteUInt32(id, (28 + (Position * 4)), Buffer);
client.Send(Buffer);
and calling "new ItemView(Owner, (byte)Position, 0);" and "new ItemView(Owner, Position, item.UID);"
might be a better way of doing that.
And make more unnecassary work for the GC?
Arco. is offline  
Old 02/16/2011, 17:09   #12
 
.Beatz's Avatar
 
elite*gold: 0
Join Date: May 2006
Posts: 1,190
Received Thanks: 516
Right, I am having quite a few problems and wanna see if anyone can see whats wrong in this code. I can view my own name in my client but I cant view other peoples names :/ and vice versa.

Also GM and PM are not showing up... I am not too fussed about that atm though

Spawn entity void

Spawn Viewed


Hero Information.cs

I have only just started learning about packets and offsets so even if you point me in the right direction would be alot of help.

anymore info you need just ask

Thanks in advance
.Beatz is offline  
Old 02/16/2011, 17:09   #13
 
.Beatz's Avatar
 
elite*gold: 0
Join Date: May 2006
Posts: 1,190
Received Thanks: 516
Right, I am having quite a few problems and wanna see if anyone can see whats wrong in this code. I can view my own name in my client but I cant view other peoples names :/ and vice versa.

Also GM and PM are not showing up... I am not too fussed about that atm though

Spawn entity void

Spawn Viewed


Hero Information.cs

I have only just started learning about packets and offsets so even if you point me in the right direction would be alot of help.

anymore info you need just ask

Thanks in advance
.Beatz is offline  
Old 02/16/2011, 17:11   #14
 
elite*gold: 0
Join Date: Jan 2011
Posts: 470
Received Thanks: 97
Quote:
Originally Posted by Yup Arco View Post
And make more unnecassary work for the GC?
You're not a real coder Arco. Unless it comes out of a real coder, I don't think that the small difference really matters. This way it doesn't have to try to get the equipment of the character. It's given it instead one equip at a time.

Quote:
Originally Posted by .Beatz View Post
Right, I am having quite a few problems and wanna see if anyone can see whats wrong in this code. I can view my own name in my client but I cant view other peoples names :/ and vice versa.

Also GM and PM are not showing up... I am not too fussed about that atm though

Spawn entity void

Spawn Viewed


Hero Information.cs

I have only just started learning about packets and offsets so even if you point me in the right direction would be alot of help.

anymore info you need just ask

Thanks in advance
Character Spawn packet.
Length is 160 + Name.Length
Spawn[155] = 1;
Spawn[156] = (byte)_Name.Length;
WriteString(_Name, 157, Spawn);
Spirited42 is offline  
Old 02/16/2011, 17:20   #15
 
Arco.'s Avatar
 
elite*gold: 0
Join Date: Feb 2011
Posts: 335
Received Thanks: 170
Quote:
Originally Posted by Spirited View Post
You're not a real coder Arco.
Oh shut the hell up, I'm just repeating the information I got from Hybrid. QQ
Arco. is offline  
Reply


Similar Threads Similar Threads
[Arena] 5180 Help!
01/23/2011 - CO2 Private Server - 7 Replies
Hello e*PvPers. I'm trying to learn how the packets are going, But I've got a trouble. Once i try to send the arena packet , the client crashes :/ I've made the packet from 12tails' Packet Structure. Please check if it's right. and forward me on the right way. There's the packet. public static COPacket ArenaInfo(Game.Character C) { byte Packet = new byte; COPacket P = new COPacket(Packet);//0 P.WriteInt16(2209);//2 ...
[5180] Packets
12/30/2010 - CO2 Private Server - 6 Replies
Hello Everybody,, I need little help Can Somebody tell me which packets I gotta update at 5180 My Current Source version was 5165 , Now It's 5180.. Which Packets Are Different Between 5165 - 5180? I appreciate your help Thanks. Best Regards, TheKnight
Hey patch 5180
11/05/2009 - Conquer Online 2 - 6 Replies
Takes out all of the files for multi client and replaces it. So you can only have 2 clients. Anyone working on making another multi client again?



All times are GMT +2. The time now is 21:50.


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