Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 05:32

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

Advertisement



SpawnEntityPacket Redux

Discussion on SpawnEntityPacket Redux within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
H3R0-'s Avatar
 
elite*gold: 0
Join Date: Feb 2018
Posts: 32
Received Thanks: 0
SpawnEntityPacket Redux

Firstly , my plan to run redux source on 5018 client version
all of packets works well but monsters names dosn't shown yet.

Code:
public static implicit operator byte[](SpawnEntityPacket packet)
        {
            byte[] data = new byte[100 + packet.Names.Length];//100
            fixed (byte* ptr = data)
            {
                PacketBuilder.AppendHeader(ptr, data.Length, 1014);
                *((uint*)(ptr + 4)) = packet.UID;
                *((uint*)(ptr + 8)) = packet.Lookface;
                *((ClientEffect*)(ptr + 12)) = packet.StatusEffects;
                *((uint*)(ptr + 20)) = packet.GuildID;
                *((byte*)(ptr + 23)) = packet.GuildRank;
                *((uint*) (ptr + 24)) = packet.GarmentType;
                *((uint*)(ptr + 28)) = packet.HelmetType;
                *((uint*)(ptr + 32)) = packet.ArmorType;
                *((uint*)(ptr + 36)) = packet.WeaponRType;
                *((uint*)(ptr + 40)) = packet.WeaponLType;

                //48 uint realted to hp?

                *((ushort*)(ptr + 48)) = (ushort)packet.Life;
                *((ushort*)(ptr + 50)) = packet.Level;
                
                *((ushort*)(ptr + 52)) = packet.PositionX;
                *((ushort*)(ptr + 54)) = packet.PositionY;
                *((ushort*)(ptr + 56)) = packet.Hair;
                *(ptr + 58) = packet.Direction;
                *(ptr + 59) = (byte)packet.Action;
                *(ptr + 60) = packet.RebornCount;
                *((ushort*)(ptr + 62)) = packet.Level;
                *((byte*)(ptr + 84)) = packet.HelmetColor;
                *((byte*)(ptr + 86)) = packet.ArmorColor;
                *((byte*)(ptr + 68)) = packet.Nobility;
                *((uint*)(ptr + 76)) = packet.NobilityRank;
                PacketBuilder.AppendNetStringPacker(ptr + 90, packet.Names);
            }
            return data;
        }
I don't know that the right Offset for it ..
H3R0- is offline  
Old 04/02/2018, 15:09   #2
 
elite*gold: 0
Join Date: Feb 2009
Posts: 259
Received Thanks: 159
PacketBuilder.AppendNetStringPacker(ptr + 80, packet.Names); on 5017..
teroareboss1 is offline  
Old 04/02/2018, 19:04   #3
 
H3R0-'s Avatar
 
elite*gold: 0
Join Date: Feb 2018
Posts: 32
Received Thanks: 0
Quote:
Originally Posted by teroareboss1 View Post
PacketBuilder.AppendNetStringPacker(ptr + 80, packet.Names); on 5017..
I've tried it and Name dosn't shown
H3R0- is offline  
Reply


Similar Threads Similar Threads
[Learning Redux] Video Guides To Using Redux
03/22/2024 - CO2 PServer Guides & Releases - 43 Replies
So I know jumping into a new source can be scary and it's not something everyone wants to do, especially if they have a lot of content running already under something else (looking at you NCOS based servers!). These videos are designed to help people get their feet wet with Redux by providing accurate and easy to follow information on how to accomplish common tasks. DOWNLOAD REDUX/FAQ:...
[Selling] Saints Row 4, Metro Redux, Metro Last Light Redux Keys
12/14/2014 - Steam Trading - 1 Replies
---
[Buying] Metro 2033 Redux, Metro LL Redux, Fallout NV, Fallout 3, S.T.A.L.K.E.R: SoC
12/07/2014 - elite*gold Trading - 4 Replies
Suche diese Spiele für e*g (Steam).



All times are GMT +2. The time now is 05:32.


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.