Register for your free account! | Forgot your password?

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

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

Advertisement



request status windows packet (1040)

Discussion on request status windows packet (1040) within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Sep 2007
Posts: 188
Received Thanks: 8
request status windows packet (1040)

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
PHP Code:
Buffer = new byte[128];
            
WriteUInt16((ushort)(Buffer.Length 8), 0Buffer);
            
WriteUInt16(10402Buffer);
            
WriteUInt32(client.Entity.UID4Buffer);
            
WriteUInt32(client.Entity.MaxHitpoints8Buffer);
            
WriteUInt32(client.Entity.MaxMana12Buffer);
            
WriteUInt32(client.Entity.ClientStats.StatisticsGetMaxAttack16Buffer);
            
WriteUInt32(client.Entity.ClientStats.StatisticsGetMinAttack20Buffer);
            
WriteUInt32(client.Entity.ClientStats.Defense24Buffer);
            
WriteUInt32(client.Entity.ClientStats.MagicAttack28Buffer);
            
WriteUInt32(client.Entity.ClientStats.MagicDefense32Buffer);
            
WriteUInt32(client.Entity.Dodge36Buffer);
            
WriteUInt32(client.Entity.Agility40Buffer);
            
WriteUInt32(044Buffer);/*Accuracy*/
            
WriteUInt32((uint)(client.Entity.Gems[1]), 48Buffer);
            
WriteUInt32((uint)(client.Entity.Gems[0]), 52Buffer);
            
WriteUInt32((uint)client.Entity.MagicDefencePercent56Buffer);
            
WriteUInt32((uint)client.Entity.Gems[7], 60Buffer);
            
WriteUInt32((uint)(client.Entity.ClientStats.Bless), 64Buffer);
            
WriteUInt32((uint)(client.Entity.Statistics.CriticalStrike), 68Buffer);
            
WriteUInt32((uint)(client.Entity.Statistics.SkillCStrike), 72Buffer);
            
WriteUInt32((uint)(client.Entity.Statistics.Immunity), 74Buffer);
            
WriteUInt32((uint)(client.Entity.Statistics.Immunity), 76Buffer);
            
WriteUInt32((uint)(client.Entity.Statistics.Penetration), 80Buffer);
            
WriteUInt32((uint)(client.Entity.Statistics.Block), 84Buffer);
            
WriteUInt32((uint)(client.Entity.Statistics.Breaktrough), 88Buffer);
            
WriteUInt32((uint)(client.Entity.Statistics.Counteraction), 92Buffer);
            
WriteUInt32((uint)(client.Entity.Statistics.Detoxication), 96Buffer);
            
WriteUInt32((uint)(client.Entity.getFan(false)), 100Buffer);
            
WriteUInt32((uint)(client.Entity.getFan(true)), 104Buffer);
            
WriteUInt32((uint)(client.Entity.getTower(false)), 108Buffer);
            
WriteUInt32((uint)(client.Entity.getTower(true)), 112Buffer);
            
WriteUInt32((uint)(client.Entity.Statistics.MetalResistance), 116Buffer);
            
WriteUInt32((uint)(client.Entity.Statistics.WoodResistance), 120Buffer);
            
WriteUInt32((uint)(client.Entity.Statistics.WaterResistance), 124Buffer);
            
WriteUInt32((uint)(client.Entity.Statistics.FireResistance), 128Buffer);
            
WriteUInt32((uint)(client.Entity.Statistics.EarthResistance), 132Buffer);
            return 
Buffer
koko425 is offline  
Old 05/20/2011, 03:27   #2
 
elite*gold: 0
Join Date: Jan 2011
Posts: 470
Received Thanks: 97
It has nothing to do with that packet. Your stats are probably wrong.
Spirited42 is offline  
Old 05/20/2011, 03:51   #3
 
elite*gold: 0
Join Date: Sep 2007
Posts: 188
Received Thanks: 8
Quote:
Originally Posted by Spirited View Post
It has nothing to do with that packet. Your stats are probably wrong.
hay fang could say whats right to do
koko425 is offline  
Old 05/20/2011, 04:18   #4
 
elite*gold: 0
Join Date: Jan 2011
Posts: 470
Received Thanks: 97
Quote:
Originally Posted by koko425 View Post
hay fang could say whats right to do
I just told you. the packet is probably fine- your statistics are probably wrong. Fix the statistics.
Spirited42 is offline  
Old 05/20/2011, 05:14   #5
 
{ Angelius }'s Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 992
Received Thanks: 1,110
Quote:
Originally Posted by koko425 View Post
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
PHP Code:
Buffer = new byte[128];
            
WriteUInt16((ushort)(Buffer.Length 8), 0Buffer);
            
WriteUInt16(10402Buffer);
            
WriteUInt32(client.Entity.UID4Buffer);
            
WriteUInt32(client.Entity.MaxHitpoints8Buffer);
            
WriteUInt32(client.Entity.MaxMana12Buffer);
            
WriteUInt32(client.Entity.ClientStats.StatisticsGetMaxAttack16Buffer);
            
WriteUInt32(client.Entity.ClientStats.StatisticsGetMinAttack20Buffer);
            
WriteUInt32(client.Entity.ClientStats.Defense24Buffer);
            
WriteUInt32(client.Entity.ClientStats.MagicAttack28Buffer);
            
WriteUInt32(client.Entity.ClientStats.MagicDefense32Buffer);
            
WriteUInt32(client.Entity.Dodge36Buffer);
            
WriteUInt32(client.Entity.Agility40Buffer);
            
WriteUInt32(044Buffer);/*Accuracy*/
            
WriteUInt32((uint)(client.Entity.Gems[1]), 48Buffer);
            
WriteUInt32((uint)(client.Entity.Gems[0]), 52Buffer);
            
WriteUInt32((uint)client.Entity.MagicDefencePercent56Buffer);
            
WriteUInt32((uint)client.Entity.Gems[7], 60Buffer);
            
WriteUInt32((uint)(client.Entity.ClientStats.Bless), 64Buffer);
            
WriteUInt32((uint)(client.Entity.Statistics.CriticalStrike), 68Buffer);
            
WriteUInt32((uint)(client.Entity.Statistics.SkillCStrike), 72Buffer);
            
//72 is a ushort not uint
            
WriteUInt32((uint)(client.Entity.Statistics.Immunity), 74Buffer);
            
//74 is a ushort not uint
            
WriteUInt32((uint)(client.Entity.Statistics.Immunity), 76Buffer);
            
WriteUInt32((uint)(client.Entity.Statistics.Penetration), 80Buffer);
            
WriteUInt32((uint)(client.Entity.Statistics.Block), 84Buffer);
            
WriteUInt32((uint)(client.Entity.Statistics.Breaktrough), 88Buffer);
            
WriteUInt32((uint)(client.Entity.Statistics.Counteraction), 92Buffer);
            
WriteUInt32((uint)(client.Entity.Statistics.Detoxication), 96Buffer);
            
WriteUInt32((uint)(client.Entity.getFan(false)), 100Buffer);
            
WriteUInt32((uint)(client.Entity.getFan(true)), 104Buffer);
            
WriteUInt32((uint)(client.Entity.getTower(false)), 108Buffer);
            
WriteUInt32((uint)(client.Entity.getTower(true)), 112Buffer);
            
WriteUInt32((uint)(client.Entity.Statistics.MetalResistance), 116Buffer);
            
WriteUInt32((uint)(client.Entity.Statistics.WoodResistance), 120Buffer);
            
WriteUInt32((uint)(client.Entity.Statistics.WaterResistance), 124Buffer);
            
WriteUInt32((uint)(client.Entity.Statistics.FireResistance), 128Buffer);
            
WriteUInt32((uint)(client.Entity.Statistics.EarthResistance), 132Buffer);
            return 
Buffer

i think the offset went off a little bit thats all (72/74 is treated like ushorts but writing as a uint )
@fang(spirited)
{ Angelius } is offline  
Old 05/20/2011, 05:15   #6
 
elite*gold: 0
Join Date: Sep 2007
Posts: 188
Received Thanks: 8
Quote:
Originally Posted by Spirited View Post
I just told you. the packet is probably fine- your statistics are probably wrong. Fix the statistics.
i used talis12 source so where i start to fx
koko425 is offline  
Old 05/20/2011, 05:21   #7
 
{ Angelius }'s Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 992
Received Thanks: 1,110
Quote:
Originally Posted by koko425 View Post
i used talis12 source so where i start to fx
lol i think i just told you where to start :P

oh and one more thing changing the Buffer = new byte[128]; to 136 or 144 well make a difference

Good Luck ,
{ Angelius } is offline  
Old 05/20/2011, 05:55   #8
 
elite*gold: 0
Join Date: Sep 2007
Posts: 188
Received Thanks: 8
Quote:
Originally Posted by { Angelius } View Post
lol i think i just told you where to start :P

oh and one more thing changing the Buffer = new byte[128]; to 136 or 144 well make a difference

Good Luck ,
i am allready used your advise but i get same wrong
PHP Code:
            Buffer = new byte[144];
            
WriteUInt16((ushort)(Buffer.Length 8), 0Buffer);
            
WriteUInt16(10402Buffer);
            
WriteUInt32(client.Entity.UID4Buffer);
            
WriteUInt32(client.Entity.MaxHitpoints8Buffer);
            
WriteUInt32(client.Entity.MaxMana12Buffer);
            
WriteUInt32(client.Entity.ClientStats.StatisticsGetMaxAttack16Buffer);
            
WriteUInt32(client.Entity.ClientStats.StatisticsGetMinAttack20Buffer);
            
WriteUInt32(client.Entity.ClientStats.Defense24Buffer);
            
WriteUInt32(client.Entity.ClientStats.MagicAttack28Buffer);
            
WriteUInt32(client.Entity.ClientStats.MagicDefense32Buffer);
            
WriteUInt32(client.Entity.Dodge36Buffer);
            
WriteUInt32(client.Entity.Agility40Buffer);
            
WriteUInt32(044Buffer);/*Accuracy*/
            
WriteUInt32((uint)(client.Entity.Gems[1]), 48Buffer);
            
WriteUInt32((uint)(client.Entity.Gems[0]), 52Buffer);
            
WriteUInt32((uint)client.Entity.MagicDefencePercent56Buffer);
            
WriteUInt32((uint)client.Entity.Gems[7], 60Buffer);
            
WriteUInt32((uint)(client.Entity.ClientStats.Bless), 64Buffer);
            
WriteUInt32((uint)(client.Entity.Statistics.CriticalStrike), 68Buffer);
            
WriteUInt32((ushort)(client.Entity.Statistics.SkillCStrike), 72Buffer);
            
//72 is a ushort not uint
            
WriteUInt32((ushort)(client.Entity.Statistics.Immunity), 74Buffer);
            
//74 is a ushort not uint
            
WriteUInt32((uint)(client.Entity.Statistics.Penetration), 80Buffer);
            
WriteUInt32((uint)(client.Entity.Statistics.Block), 84Buffer);
            
WriteUInt32((uint)(client.Entity.Statistics.Breaktrough), 88Buffer);
            
WriteUInt32((uint)(client.Entity.Statistics.Counteraction), 92Buffer);
            
WriteUInt32((uint)(client.Entity.Statistics.Detoxication), 96Buffer);
            
WriteUInt32((uint)(client.Entity.getFan(false)), 100Buffer);
            
WriteUInt32((uint)(client.Entity.getFan(true)), 104Buffer);
            
WriteUInt32((uint)(client.Entity.getTower(false)), 108Buffer);
            
WriteUInt32((uint)(client.Entity.getTower(true)), 112Buffer);
            
WriteUInt32((uint)(client.Entity.Statistics.MetalResistance), 116Buffer);
            
WriteUInt32((uint)(client.Entity.Statistics.WoodResistance), 120Buffer);
            
WriteUInt32((uint)(client.Entity.Statistics.WaterResistance), 124Buffer);
            
WriteUInt32((uint)(client.Entity.Statistics.FireResistance), 128Buffer);
            
WriteUInt32((uint)(client.Entity.Statistics.EarthResistance), 132Buffer);
            return 
Buffer;  
        } 

see not show woodreist and other refinery
koko425 is offline  
Old 05/20/2011, 06:22   #9
 
{ Angelius }'s Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 992
Received Thanks: 1,110
lol no you dident :P
PHP Code:
WriteUInt32((ushort)(client.Entity.Statistics.Immunity), 74Buffer);
//should be 
WriteUInt16((ushort)(client.Entity.Statistics.Immunity), 74Buffer); 
its not just the (ushort) its depending on your packet builder (WriteUInt16) = 2 bytes (WriteUInt32) = 4 bytes

there

fake numbers but that should do it
{ Angelius } is offline  
Old 05/20/2011, 06:50   #10
 
elite*gold: 0
Join Date: Sep 2007
Posts: 188
Received Thanks: 8
Quote:
Originally Posted by { Angelius } View Post
lol no you dident :P
PHP Code:
WriteUInt32((ushort)(client.Entity.Statistics.Immunity), 74Buffer);
//should be 
WriteUInt16((ushort)(client.Entity.Statistics.Immunity), 74Buffer); 
its not just the (ushort) its depending on your packet builder (WriteUInt16) = 2 bytes (WriteUInt32) = 4 bytes

there

fake numbers but that should do it
i have been trying 3 h infake numbers but didnt show like yourth
do you mind share it?
koko425 is offline  
Old 05/20/2011, 07:01   #11
 
{ Angelius }'s Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 992
Received Thanks: 1,110
Quote:
Originally Posted by koko425 View Post
i have been trying 3 h infake numbers but didnt show like yourth
do you mind share it?
once and for all , next time you gotta figure it out by yourself
Quote:
WriteUInt16(144 - 8, 0, Pack);
WriteUInt16(1040, 2, Pack);
WriteUInt32(0, 4, Pack);//UID
WriteUInt32(0, 8, Pack);//MaxHp
WriteUInt32(0, 12, Pack);//MaxMana
WriteUInt32(0, 20, Pack);//MinAtk
WriteUInt32(0, 16, Pack);/MaxAtk
WriteUInt32(0, 24, Pack);// Defense
WriteUInt32(0, 28, Pack);// Magic Attack
WriteUInt32(0, 32, Pack);//Magic Deffense
WriteUInt32(0, 36, Pack);//Dodge
WriteUInt32(0, 40, Pack);//ExtraAgility/whatever
WriteUInt32(0, 44, Pack);// accuracy
WriteUInt32(0, 48, Pack);// SDG extra attack %
WriteUInt32(0, 52, Pack);//MagicAttack %
WriteUInt32(0, 56, Pack);Magic Defense %
WriteUInt32(0, 60, Pack);//Damage
WriteUInt32(0, 64, Pack);// Bless
WriteUInt32(0, 68, Pack);// CriticalStrike
WriteUInt32(0, 72, Pack);// SkillCStrike
WriteUInt32(0, 76, Pack);// Immunity
WriteUInt32(0, 80, Pack);// Immunity
WriteUInt32(0, 84, Pack);// Penetration
WriteUInt32(0, 88, Pack);// Block
WriteUInt32(0 , 92, Pack);// 0
WriteUInt32(0 , 96, Pack);// 0
WriteUInt32(0, 100, Pack);// Final Attack
WriteUInt32(0, 104, Pack);// Final Magic Attack
WriteUInt32(0, 108, Pack);// Final Damage
WriteUInt32(0, 112, Pack);// Final MagicDamage
WriteUInt32(15, 116, Pack);
WriteUInt32(15, 120, Pack);
WriteUInt32(15, 124, Pack);
WriteUInt32(15, 128, Pack);
WriteUInt32(15, 132, Pack);

NOW you can use the fake numbers lol
{ Angelius } is offline  
Thanks
2 Users
Old 05/20/2011, 07:16   #12
 
elite*gold: 0
Join Date: Jan 2011
Posts: 470
Received Thanks: 97
Quote:
Originally Posted by { Angelius } View Post
once and for all , next time you gotta figure it out by yourself



NOW you can use the fake numbers lol
Lol, that's what I do when I guess for packets.
And I'm on weed? ._. I don't code for that patch. It must of changed
since I coded it for 5187.
Spirited42 is offline  
Old 05/20/2011, 07:17   #13
 
elite*gold: 0
Join Date: Sep 2007
Posts: 188
Received Thanks: 8
Quote:
Originally Posted by { Angelius } View Post
once and for all , next time you gotta figure it out by yourself



NOW you can use the fake numbers lol
thanks dude
koko425 is offline  
Reply


Similar Threads Similar Threads
[Request] Packet Structure for CharData Packet
05/16/2011 - Silkroad Online - 4 Replies
can someone tell me which structure the CharData packet has? i would really appreciate this, since im still noob in such things. its just too high for me/ too much information for my head. :handsdown: S->C(3013)...
[Packet Log Request] Length and ID of a Packet
03/04/2011 - CO2 Private Server - 5 Replies
Hey everyone, This is a really small request. Basically, all I need is the Length and ID of a packet... unfortunately, I can't sniff for packets because the tool I was using stopped working. If anyone can create a character and follow the quest until you get to KungfuBoy, can you tell me the packet id and length of this effect: http://i1212.photobucket.com/albums/cc447/Spirite dFang/effect.png I would be very grateful. Right now I'm using SobNPCs. Thanks.
Windows Packet Blocker?!
01/05/2007 - General Coding - 3 Replies
Hi!! Ich hatte eine verrückte idee: Könnte es nicht nützlich sein einen Windows Packet Blocker zu programmieren, der bestimmte Packets der Winsocket herausfiltert und diese garnicht erst "durchlässt"? So könnte man (je nach spiel) verhindern, dass man getötet wird. Ich weiß leider nicht ob das möglich ist, auf jedenfall währe es eine klasse herausforderung an den coder und eine große bereicherung der Community!!! Bitte um Statements, und darum dass sich vllt mal jemand daran versucht :) ...



All times are GMT +1. The time now is 18:33.


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.