Register for your free account! | Forgot your password?

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

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

Advertisement



[Qoustion]Attack Packet!

Discussion on [Qoustion]Attack Packet! within the CO2 Private Server forum part of the Conquer Online 2 category.

Closed Thread
 
Old   #1
 
Mr_PoP's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 759
Received Thanks: 285
[Qoustion]Attack Packet!

am wondering what the subtype "Kill" is used for , because i though when I send it to the client the client will request GeneralType/Command-> Death . but that is not happening here , i cant see why should i send subtype "Kill" to the Client.... or am doing it wrong?
Mr_PoP is offline  
Old 10/06/2011, 00:44   #2
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
It displays the death effect (flying backwards on monsters or players like falling over)

If not they just stand there and then turn into ghost.
pro4never is offline  
Thanks
2 Users
Old 10/06/2011, 02:07   #3
 
Mr_PoP's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 759
Received Thanks: 285
Quote:
Originally Posted by pro4never View Post
It displays the death effect (flying backwards on monsters or players like falling over)

If not they just stand there and then turn into ghost.
when the Client request the Death subtype?
Mr_PoP is offline  
Old 10/06/2011, 11:51   #4
 
© Haydz's Avatar
 
elite*gold: 20
Join Date: Jan 2008
Posts: 1,042
Received Thanks: 252
[First Post In Ages. . . ]

Pretty sure it displays the death message too.. "%s was killed by %s!".
© Haydz is offline  
Old 10/06/2011, 21:07   #5
 
Mr_PoP's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 759
Received Thanks: 285
Quote:
Originally Posted by © Haydz View Post
[First Post In Ages. . . ]

Pretty sure it displays the death message too.. "%s was killed by %s!".
don't think so since the Server is sending a Chat packet of %s was killed by %s!

Code:
Server-(TO)->AttackProxy ID: 3111666 PacketType: Chat Length:79 
4F 00 EC 03 00 00 FF 00 D5 07 00 00 13 06 00 00 00 00 00 00 00 00 00 00 04 06 53 59 53 54 45 4D 08 41 4C 4C 55 53 45 52 53 00 21 41 74 74 61 63 6B 50 72 6F 78 79 20 77 61 73 20 6B 69 6C 6C 65 64 20 62 79 20 47 75 61 72 64 31 21 00 00 00 
O.?..?.?............SYSTEMALLUSERS.!AttackProxy was killed by Guard1!...
Mr_PoP is offline  
Old 10/07/2011, 00:42   #6
 
.Kinshi's Avatar
 
elite*gold: 0
Join Date: Dec 2010
Posts: 341
Received Thanks: 255
Quote:
Originally Posted by © Haydz View Post
[First Post In Ages. . . ]

Pretty sure it displays the death message too.. "%s was killed by %s!".
Nice to see you again

Quote:
Originally Posted by Mr_PoP View Post
don't think so since the Server is sending a Chat packet of %s was killed by %s!

Code:
Server-(TO)->AttackProxy ID: 3111666 PacketType: Chat Length:79 
4F 00 EC 03 00 00 FF 00 D5 07 00 00 13 06 00 00 00 00 00 00 00 00 00 00 04 06 53 59 53 54 45 4D 08 41 4C 4C 55 53 45 52 53 00 21 41 74 74 61 63 6B 50 72 6F 78 79 20 77 61 73 20 6B 69 6C 6C 65 64 20 62 79 20 47 75 61 72 64 31 21 00 00 00 
O.?..?.?............SYSTEMALLUSERS.!AttackProxy was killed by Guard1!...
Sending the Attack Packet with the Kill subtype does send the "%s was killed by %s!".
.Kinshi is offline  
Old 10/07/2011, 00:59   #7
 
pwerty's Avatar
 
elite*gold: 0
Join Date: Jul 2010
Posts: 55
Received Thanks: 11
Are you guys talking about binary?
Like ppl said before, Kill is send for death effect and soul thingy to add up KO circle!

Im sure that you build your own msg for who kills who (in self programmed servers)
pwerty is offline  
Old 10/07/2011, 02:26   #8
 
Mr_PoP's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 759
Received Thanks: 285
Quote:
Originally Posted by .Kinshi View Post
Sending the Attack Packet with the Kill subtype does send the "%s was killed by %s!".
then why the server is sending the chat packet with "%s was killed by %s!"

Quote:
Originally Posted by pwerty View Post
Are you guys talking about binary?
Like ppl said before, Kill is send for death effect and soul thingy to add up KO circle!

Im sure that you build your own msg for who kills who (in self programmed servers)
nah we are not talking about the binary , i wanna just know when the client is requesting GeneralData->subtype death?
Mr_PoP is offline  
Old 10/07/2011, 04:58   #9
 
.Kinshi's Avatar
 
elite*gold: 0
Join Date: Dec 2010
Posts: 341
Received Thanks: 255
Quote:
Originally Posted by Mr_PoP View Post
then why the server is sending the chat packet with "%s was killed by %s!"
No idea lol

Quote:
Originally Posted by Mr_PoP View Post
nah we are not talking about the binary , i wanna just know when the client is requesting GeneralData->subtype death?
The client never requests it.
When a player or mob dies, you send it.
.Kinshi is offline  
Old 10/07/2011, 07:07   #10
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
Quote:
Originally Posted by Mr_PoP View Post
then why the server is sending the chat packet with "%s was killed by %s!"



nah we are not talking about the binary , i wanna just know when the client is requesting GeneralData->subtype death?

Question 1: you ****** something up. The server sends KILL subtype of attack packet and NEVER sends that string for it to display (my source never sends the message yet it displays perfectly. If you're sending the packet then that's YOUR fault)


Option 2: It requests the subtype death to transform itself into a ghost. This happens because there is an animation delay between death and the actual addition of ghost mesh (so it can complete before just changing lookface).

If you send the death stateffs properly when an entity is killed then they should be unable to move. This means they will not appear as a walking 'naked' person before the client requests the death subtype at the proper time to transform the character into a ghost (IE: already fallen to the ground, post animation).
pro4never is offline  
Old 10/07/2011, 07:49   #11
 
Mr_PoP's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 759
Received Thanks: 285
Quote:
Originally Posted by pro4never View Post
Question 1: you ****** something up. The server sends KILL subtype of attack packet and NEVER sends that string for it to display (my source never sends the message yet it displays perfectly. If you're sending the packet then that's YOUR fault)
lol! it's from my Proxy , i sniffed TQ's packets and their server is sending that chat packet, am not sending anything am just asking how it works, like when the Target HP hit's 0 what do you send exactly in order!?
Mr_PoP is offline  
Old 10/07/2011, 08:10   #12
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
In attack handling (however you wish to define that)

if(dmg < target.Health)
//deal damage, send normal attack packet of correct type (magic, bow, melee) with correct info and perform actions such as updating client hp
else
//change attack type to kill and send packet, perform client death actions which includes setting death/ghost status effects which stops movement and stops them from using skill.


Note: above all this (at the start of handling damage) I check to see that the target is alive. This is both a sanity check and also a handling to avoid issues with skills such as triple strike which hit the same target more than once and could (depending on how you coded your system) drop items/give exp 3 times for killing it.

if(!target.Alive)
return;//or continue obv if you are using some sort of foreach loop to go through the targets of a multi target spell. Generally they are separate methods though.
pro4never is offline  
Thanks
1 User
Old 10/07/2011, 08:29   #13
 
Mr_PoP's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 759
Received Thanks: 285
Quote:
Originally Posted by pro4never View Post
In attack handling (however you wish to define that)

if(dmg < target.Health)
//deal damage, send normal attack packet of correct type (magic, bow, melee) with correct info and perform actions such as updating client hp
else
//change attack type to kill and send packet, perform client death actions which includes setting death/ghost status effects which stops movement and stops them from using skill.


Note: above all this (at the start of handling damage) I check to see that the target is alive. This is both a sanity check and also a handling to avoid issues with skills such as triple strike which hit the same target more than once and could (depending on how you coded your system) drop items/give exp 3 times for killing it.

if(!target.Alive)
return;//or continue obv if you are using some sort of foreach loop to go through the targets of a multi target spell. Generally they are separate methods though.
am doing exactly what you just told me :P , thnx you can close it
Mr_PoP is offline  
Closed Thread


Similar Threads Similar Threads
[Qoustion]Invisibility,Stigma etc
09/20/2011 - CO2 Private Server - 4 Replies
so my question is "does Invisibility,Stigma etc" has different effects depends on it's level or how it's working?
attack packet analysieren
12/21/2009 - General Coding - 22 Replies
hab da mal eine frage : wie ist ein attack packet standardmässig aufgebaut da ich mir nichts darunter vorstellen kann :(
Attack / Skill Packet
08/08/2009 - Ragnarok Online - 1 Replies
I wanna know how I can get the attack skill packet of a Skill. Can anyone post a tut or brief explanation Arigato.
packet attack hack finnaly done:D
03/09/2009 - Archlord - 25 Replies
finnaly its done, after a long time work and changes the packet hack for multiattack hacking is done, no cooldown on the skils, and casting 3 spells at oness commands /attackone /attackof /packets report any bugs here or normal qeustions
Magic attack packet
08/02/2008 - Conquer Online 2 - 2 Replies
Ok so me and my bro have been programming a private server for some time now and we've hit a rather anoying problem... so if anyone knows what the info in the magic attack packet that the client sends to the server means please share the info... =/ we just cant seem to work it out.



All times are GMT +2. The time now is 23:48.


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.