Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2
You last visited: Today at 17:08

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

Advertisement



Redux 5017 CharacterInformation pack

Discussion on Redux 5017 CharacterInformation pack within the Conquer Online 2 forum part of the MMORPGs category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jun 2015
Posts: 9
Received Thanks: 0
Redux 5017 CharacterInformation pack

I tried to use client 5018 as base , every thing works well
else Name , it's doesn't show with any of ****

It's my code

Code:
public static implicit operator byte[](HeroInformationPacket packet)
        {
            var buffer = new byte[70 + packet.Strings.Length];
            fixed (byte* ptr = buffer)
            {
                PacketBuilder.AppendHeader(ptr, buffer.Length, Constants.MSG_HERO_INFORMATION);
                *((ushort*)(ptr + 2)) = 0x3EE;
                *((uint*)(ptr + 4)) = packet.Id;
                *((uint*)(ptr + 8)) = packet.Lookface;
                *((ushort*)(ptr + 12)) = packet.Hair;
                *((uint*)(ptr + 14)) = packet.Money;
                *((uint*)(ptr + 18)) = packet.CP;
                *((ulong*)(ptr + 22)) = packet.Experience;
                //30-46 unknown                

                //46 ushort a0 40
                //48 ushort dd 00

                *((ushort*)(ptr + 46)) = packet.Strength;
                *((ushort*)(ptr + 48)) = packet.Agility;
                *((ushort*)(ptr + 50)) = packet.Vitality;
                *((ushort*)(ptr + 52)) = packet.Spirit;
                *((ushort*)(ptr + 54)) = packet.Stats;
                *((ushort*)(ptr + 56)) = packet.Life;
                *((ushort*)(ptr + 58)) = packet.Mana;
                *((short*)(ptr + 60)) = packet.PKPoints;
                //*((byte*)(ptr + 62)) = packet.Level;
                //*((byte*)(ptr + 53)) = packet.Class;
                //*((byte*)(ptr + 65)) = packet.Reborn;
                *((byte*)(ptr + 68)) = packet.ShowName;
                ptr[62] = packet.Level;
                ptr[63] = packet.Class;
                ptr[65] = packet.Reborn;
                //ptr[68] = packet.ShowName;
                PacketBuilder.AppendNetStringPacker(ptr + 69, packet.Strings);
            }
            return buffer;
        }
- Creative is offline  
Old 01/27/2019, 09:07   #2
 
12k's Avatar
 
elite*gold: 0
Join Date: Jul 2011
Posts: 218
Received Thanks: 33
Quote:
PWR.Fill((byte)1, 66);
PWR.Fill((byte)2, 67);
PWR.Fill((byte)Hero.CharName.Length, 68);
PWR.Fill(Hero.CharName, 69);
PWR.Fill((byte)Hero.Spouse.Length, 69 + Hero.CharName.Length);
PWR.Fill(Hero.Spouse, 70 + Hero.CharName.Length);
Here you go
12k is offline  
Thanks
1 User
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 +1. The time now is 17:09.


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.