Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server > CO2 PServer Guides & Releases
You last visited: Today at 08:13

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

Advertisement



[Release] Status Details [Packet 1040]

Discussion on [Release] Status Details [Packet 1040] within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,282
Received Thanks: 4,191
[Release] Status Details [Packet 1040]

This has probably been released, but here's the full packet (the way I do packets)- that way you can use it as a packet AND as character data.

Code:
namespace Kibou.Connections.Packets
{
    using System.Runtime.InteropServices;
    using System.Runtime.Serialization.Formatters.Binary;

    [StructLayout(LayoutKind.Sequential)]
    public struct StatusDetails
    {
        private ushort _length;
        private ushort _id;
        public uint Identity;
        public uint Hitpoints;
        public uint Mana;
        public uint MaxAttack;
        public uint MinAttack;
        public uint Defense;
        public uint MagicAtk;
        public uint MagicDef;
        public uint Dodge;
        public uint Agility;
        public uint Accuracy;
        public uint AtkPct;
        public uint MagicAtkPct;
        public uint MagicDefPct;
        public uint Damage;
        public uint Blessed;
        public uint CriticalStrike;
        public uint SkillCriticalStrikePct;
        public uint Immunity;
        public uint Penetration;
        public uint Block;
        public uint Breakthrough;
        public uint Counteraction;
        public uint Detoxication;
        public uint FinalAddAtk;
        public uint FinalAddMagicAtk;
        public uint FinalMinusDmg;
        public uint FinalMinusMagicDmg;
        public uint MetalResist;
        public uint WoodResist;
        public uint WaterResist;
        public uint FireResist;
        public uint EarthResist;

        public unsafe byte[] ToArray()
        {
            byte[] buffer = new byte[144];
            fixed (byte* ptr = buffer)
            {
                *(StatusDetails*)ptr = this;
                *((ushort*)(ptr)) = 136;
                *((ushort*)(ptr + 2)) = 1040;
            }
            return buffer;
        }
    }
}
Ask me how to implement any of this.
I dare you. ._. *shot gun ready*

Sincerely,
Fang

PS: None of this will work in any source known to this community
unless you code it for your own source.
Spirited is offline  
Thanks
1 User
Old 08/10/2011, 07:55   #2
 
elite*gold: 0
Join Date: Feb 2007
Posts: 240
Received Thanks: 22
bleez man where i put this!
agathom is offline  
Old 08/10/2011, 07:56   #3
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,282
Received Thanks: 4,191
Quote:
Originally Posted by agathom View Post
bleez man where i put this!
Up your ***.
Spirited is offline  
Thanks
2 Users
Old 08/10/2011, 08:13   #4
 
elite*gold: 0
Join Date: May 2006
Posts: 297
Received Thanks: 58
Quote:
Originally Posted by agathom View Post
bleez man where i put this!
Dear ***!

Code:
namespace [COLOR="Red"]Kibou.Connections.Packets[/COLOR]
pintser is offline  
Old 08/10/2011, 08:14   #5
 
elite*gold: 0
Join Date: Feb 2007
Posts: 240
Received Thanks: 22
IKR?
agathom is offline  
Old 08/10/2011, 08:18   #6
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,282
Received Thanks: 4,191
I'm going to get so much joy out of this thread.
trololololololol
Spirited is offline  
Old 08/10/2011, 18:07   #7
 
elite*gold: 0
Join Date: Mar 2011
Posts: 68
Received Thanks: 1
Thx for this release it will be helpful when i continue learning C# :P
wild_ShAdOw is offline  
Old 08/10/2011, 18:12   #8
 
Sp!!ke's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 380
Received Thanks: 58
nice that packet been released but you release it now full ! so..thank you
Sp!!ke is offline  
Reply


Similar Threads Similar Threads
request status windows packet (1040)
05/20/2011 - CO2 Private Server - 12 Replies
i need status windows packet right offsets coz i wana add refinery item i have this but its not for working for other refinery and dragonsoul item Buffer = new byte; WriteUInt16((ushort)(Buffer.Length - 8), 0, Buffer); WriteUInt16(1040, 2, Buffer); WriteUInt32(client.Entity.UID, 4, Buffer); WriteUInt32(client.Entity.MaxHitpoints, 8, Buffer); WriteUInt32(client.Entity.MaxMana, 12, Buffer);



All times are GMT +1. The time now is 08:14.


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.