Register for your free account! | Forgot your password?

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

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

Advertisement



KO Count on player spawn

Discussion on KO Count on player spawn within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
donn's Avatar
 
elite*gold: 0
Join Date: Jan 2007
Posts: 485
Received Thanks: 272
KO Count on player spawn

Ok, so KO count shows correctly if another player kills a mob while it's in your view, but on spawn, the KO count is initially showed as zero.

Does entity spawn packet presents some way so I can set the KO count to be displayed? Or what's the usual way to do this.
donn is offline  
Old 11/07/2014, 11:22   #2
 
turk55's Avatar
 
elite*gold: 130
Join Date: Oct 2007
Posts: 1,655
Received Thanks: 706
As far as I know it is part of the kill packet. If you are using the projectx source, the data value is hardcoded 0 or should be. Simply change that value to kill count and it should work.
turk55 is offline  
Old 11/07/2014, 11:57   #3
 
donn's Avatar
 
elite*gold: 0
Join Date: Jan 2007
Posts: 485
Received Thanks: 272
I changed that. And, as I said, it works if the other kills while you're seeing it. But, when the other enters your screen, initial KO count above his head is 0. Only after killing another mob that one is updated (naturally, since a new kill packet is send).

I just wonder how to see the KO count above the other player head with the current value right from spawn. Maybe sending a fake kill packet?
donn is offline  
Old 11/07/2014, 12:07   #4
 
turk55's Avatar
 
elite*gold: 130
Join Date: Oct 2007
Posts: 1,655
Received Thanks: 706
It should just work by sending the kill packet. Can you show me what you have?

This is what I have:

turk55 is offline  
Old 11/07/2014, 12:33   #5
 
elite*gold: 0
Join Date: Feb 2006
Posts: 726
Received Thanks: 271
Check Redux, there is a working KO count in there.
Aceking is offline  
Old 11/07/2014, 14:17   #6
 
donn's Avatar
 
elite*gold: 0
Join Date: Jan 2007
Posts: 485
Received Thanks: 272
I have something similar;

In GameClient.cs

In Combat.cs

I've changed
Code:
(attacker as Entities.GameClient).Send(killpacket);
to
Code:
(attacker as Entities.GameClient).SendToScreen(killpacket,true);
so the others can see your KO count, when you're killing a mob.

Aceking, I'll check Redux, thanks. Or I'll see what I can do in spawn packet, to send a fake interact packet with the KO count from there, if the spawned client is OnXP.
donn is offline  
Old 11/07/2014, 16:55   #7
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
Quote:
Originally Posted by donn View Post
I have something similar;

In GameClient.cs

In Combat.cs

I've changed
Code:
(attacker as Entities.GameClient).Send(killpacket);
to
Code:
(attacker as Entities.GameClient).SendToScreen(killpacket,true);
so the others can see your KO count, when you're killing a mob.

Aceking, I'll check Redux, thanks. Or I'll see what I can do in spawn packet, to send a fake interact packet with the KO count from there, if the spawned client is OnXP.
That's what happens on official conquer. If you first go on screen of someone with a KO count it shows as 0 till they kill something IIRC.

The client only knows your KO count when you actually kill a monster and the kill packet is sent (to screen)
pro4never is offline  
Old 11/07/2014, 17:48   #8
 
donn's Avatar
 
elite*gold: 0
Join Date: Jan 2007
Posts: 485
Received Thanks: 272
Looks like I tend to think further then TQ does then.
donn is offline  
Reply


Similar Threads Similar Threads
[Mini-Release] Player Count & Guild Identifier
10/13/2014 - Flyff PServer Guides & Releases - 22 Replies
Channel Player Count Look for this void CWndSelectServer::OnInitialUpdate() do this one: if( g_dpCertified.m_aServerset.dwParent == pServerDesc->dwID ) { lCount = g_dpCertified.m_aServerset.lCount; lMax = g_dpCertified.m_aServerset.lMax;
Getting player count out of gamelist
02/09/2013 - Diablo 2 Programming - 0 Replies
hi all, is there any possibility to get the players count out of the gamelist (before joining random game)? http://i.epvpimg.com/Fc6Wg.jpg thx for your help :)
[Question] About Ctf / Ba player count
12/31/2012 - SRO Private Server - 4 Replies
How to make it from 8 vs 8 to another number , eg :3 vs 3 , does anybody know .
Single spawn / group spawn player problem
11/05/2012 - SRO Coding Corner - 15 Replies
Hey guys, I try to parse the player spawn packets so i can get the playerames / guildnames and items. Now im almost got all the information more sometimes my parser fails when ppl teleported. Is there something that i missed after a player teleported ? My parse code: public static void ParseChar(PacketReader packet, uint model) { - Pastebin.com
how to change max player count in sea emu?
05/21/2010 - SRO Private Server - 4 Replies
^



All times are GMT +1. The time now is 19:01.


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.