|
You last visited: Today at 07:27
Advertisement
KO Kill Counter Issue
Discussion on KO Kill Counter Issue within the CO2 Private Server forum part of the Conquer Online 2 category.
01/29/2016, 22:33
|
#1
|
elite*gold: 0
Join Date: Feb 2014
Posts: 397
Received Thanks: 205
|
KO Kill Counter Issue
Hey all,
So I've been working on this issue for a few days now and I've had other eyes look into my code and we see nothing wrong. Hoping I can find someone that sees what we're not seeing. This is for 5017.
I am using the 5-17 structure from: 
MY KO Counter doesn't increase at all, whether I'm in XP Mode or not. It stays at zero.
I used this test packet to see if I can get the number to update, here is the packet.
Then I send the packet once the kill has been completed.
Code:
AttackerClient.Send(TestItemInfo.TestKillInfo(AttackerClient.Entity.UID, Death.X, Death.Y,Death.OpponentUID, 1));
The kill counter still remains 0. Is there anything I'm missing?
|
|
|
01/29/2016, 23:05
|
#2
|
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,381
|
Quote:
Originally Posted by InsomniacPro
Hey all,
So I've been working on this issue for a few days now and I've had other eyes look into my code and we see nothing wrong. Hoping I can find someone that sees what we're not seeing. This is for 5017.
I am using the 5-17 structure from: 
MY KO Counter doesn't increase at all, whether I'm in XP Mode or not. It stays at zero.
I used this test packet to see if I can get the number to update, here is the packet.
Then I send the packet once the kill has been completed.
Code:
AttackerClient.Send(TestItemInfo.TestKillInfo(AttackerClient.Entity.UID, Death.X, Death.Y,Death.OpponentUID, 1));
The kill counter still remains 0. Is there anything I'm missing?
|
When sending interacttype.kill the first 2 bytes of the effect value (where dmg normally goes) are the death type (value of 2) and second 2 bytes are the KO count.
Here's the shit example from redux
target.Kill(2 | ((Player)owner).KOCount << 16, owner.UID);
That will populate the ko count over their head. The actual bottom right counter is simply by sending proper death packets (target x killed by attacker y)
PS: for monsters I do not use a X/Y value... for players I do. Not sure if that's me being wrong or you but hope it helps.
|
|
|
01/29/2016, 23:30
|
#3
|
elite*gold: 130
Join Date: Oct 2007
Posts: 1,655
Received Thanks: 706
|
Quote:
Originally Posted by pro4never
PS: for players I do not use a X/Y value... for players I do.
|
ehh??
|
|
|
01/29/2016, 23:40
|
#4
|
elite*gold: 0
Join Date: Feb 2014
Posts: 397
Received Thanks: 205
|
Quote:
Originally Posted by pro4never
When sending interacttype.kill the first 2 bytes of the effect value (where dmg normally goes) are the death type (value of 2) and second 2 bytes are the KO count.
Here's the **** example from redux
target.Kill(2 | ((Player)owner).KOCount, owner.UID);
That will populate the ko count over their head. The actual bottom right counter is simply by sending proper death packets (target x killed by attacker y)
PS: for players I do not use a X/Y value... for players I do. Not sure if that's me being wrong or you but hope it helps.
|
I've gotten the kill counter over the head correct, its the one in the corner that's not working. Thats even if the client is not in xp mode.
|
|
|
01/29/2016, 23:59
|
#5
|
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,381
|
Quote:
Originally Posted by turk55
ehh??
|
Edited. Monsters I send 0,0 players I send coords
Quote:
Originally Posted by InsomniacPro
I've gotten the kill counter over the head correct, its the one in the corner that's not working. Thats even if the client is not in xp mode.
|
Try with 0,0 x/y for monster deaths and make sure it's sending proper killer/killed.
Code:
var packet = new InteractPacket
{
UID = _attacker,
Target = _target,
X = _x,
Y = _y,
Action = _action,
Value = _value,
Timestamp = (uint)Common.Clock
};
Code:
var packet = new InteractPacket();
packet.Timestamp = *((uint*)(ptr + 4));
packet.UID = *((uint*)(ptr + 8));
packet.Target = *((uint*)(ptr + 12));
packet.X = *((ushort*)(ptr + 16));
packet.Y = *((ushort*)(ptr + 18));
packet.Action = *((InteractAction*)(ptr + 20));
packet.Value = *((uint*)(ptr + 24));
packet.KOCount = *((uint*)(ptr + 28));
Note: KOCount here is ONLY used for resetting jar quests, it's not used for actual KO counter from what I've seen.
Note x2: in this example value should be 2 | KoCount if in XP skill and action should be 14
|
|
|
01/30/2016, 01:01
|
#6
|
elite*gold: 0
Join Date: Feb 2014
Posts: 397
Received Thanks: 205
|
Quote:
Originally Posted by pro4never
Edited. Monsters I send 0,0 players I send coords
Try with 0,0 x/y for monster deaths and make sure it's sending proper killer/killed.
Code:
var packet = new InteractPacket
{
UID = _attacker,
Target = _target,
X = _x,
Y = _y,
Action = _action,
Value = _value,
Timestamp = (uint)Common.Clock
};
Code:
var packet = new InteractPacket();
packet.Timestamp = *((uint*)(ptr + 4));
packet.UID = *((uint*)(ptr + 8));
packet.Target = *((uint*)(ptr + 12));
packet.X = *((ushort*)(ptr + 16));
packet.Y = *((ushort*)(ptr + 18));
packet.Action = *((InteractAction*)(ptr + 20));
packet.Value = *((uint*)(ptr + 24));
packet.KOCount = *((uint*)(ptr + 28));
Note: KOCount here is ONLY used for resetting jar quests, it's not used for actual KO counter from what I've seen.
Note x2: in this example value should be 2 | KoCount if in XP skill and action should be 14
|
My packet structure is the same, besides counting the packet.KOCount, just zero filled on the last 4 bytes.
Code:
AttackerClient.Send(TestItemInfo.TestKillInfo(AttackerClient.Entity.UID, Death.OpponentUID, (uint)2 | AttackerClient.CurrentKOs));
byte[] Buf = new byte[32];
WriteUInt16(32, 0, Buf);
WriteUInt16(1022 , 2, Buf);
WriteUInt32((uint)Environment.TickCount, 4, Buf);
WriteUInt32(Sender, 8, Buf);
WriteUInt32(Attacked, 12, Buf);
WriteUInt16(0, 16, Buf);//x
WriteUInt16(0, 18, Buf);//y
WriteUInt32((uint)AttackID.Death, 20, Buf);//0x0E:14
WriteUInt32(Parameter, 24, Buf);
return Buf;
|
|
|
01/30/2016, 03:06
|
#7
|
elite*gold: 12
Join Date: Jul 2011
Posts: 8,283
Received Thanks: 4,192
|
I had no idea that was a thing.
The more you know, I suppose.
|
|
|
02/01/2016, 16:56
|
#8
|
elite*gold: 0
Join Date: Jan 2008
Posts: 1,445
Received Thanks: 1,176
|
Your packet seems correct (I've validated the offsets) :
Code:
public MsgInteract(Entity aSender, Entity aTarget, UInt32 aData, Action aAction)
: base(32)
{
Timestamp = Environment.TickCount;
Sender = aSender.UniqId;
if (aTarget != null)
{
Target = aTarget.UniqId;
PosX = aTarget.X;
PosY = aTarget.Y;
}
_Action = aAction;
Data = aData;
}
For the calculation, here's what I did for COPS v6 long time ago and it works :
Code:
if (Attacker.HasStatus(Status.SuperAtk) || Attacker.HasStatus(Status.SuperSpeed))
World.BroadcastMapMsg(Attacker, new MsgInteract(Attacker, Target, 0xFFFF * (Attacker.CurKO + 1), MsgInteract.Action.Kill), true);
else
World.BroadcastMapMsg(Attacker, new MsgInteract(Attacker, Target, 1, MsgInteract.Action.Kill), true);
|
|
|
02/01/2016, 17:28
|
#9
|
elite*gold: 0
Join Date: Aug 2010
Posts: 992
Received Thanks: 1,110
|
(0xFFFF * Attacker.KOCounter + 1) is what I have too except that I have -1 for the target ID.
|
|
|
 |
Similar Threads
|
Kill Counter?
01/26/2013 - Metin2 Private Server - 2 Replies
Ehm ja ich suche nach einer richtigen Kill Counter Quest mit InGame anzeige wie z.B bei Zephion,Exodius usw.
Habe leider keinen Thread dazu gefunden
|
Kill Counter
12/31/2011 - Shaiya Hacks, Bots, Cheats & Exploits - 4 Replies
Hallo liebe Community,
passend zu Weihnachten präsentiere ich euch die erste Version von LeeRoy's Kill Counter!
Wolltet ihr schon immer wissen wie viele unzählige Gegner ihr an diesem Tag getötet habt bzw wie viel Erfahrung ihr pro Minute?
Oder vielleicht wie viele Exp ihr pro Minute erfarmt dann ist das mit meinem Kill Counter kein problem mehr =).
Ihr benötigt das .NetFramework4 welches ihr bei Microsoft runterladen könnt solltet ihr es nicht bereits haben.
Zur Bedinung:
Öffnet das...
|
counter kill
05/02/2011 - CO2 Private Server - 1 Replies
what is counter kill skill id
|
counter kill
08/04/2008 - Conquer Online 2 - 2 Replies
i have 2 archer lvl 130 non RB
1 show counter kill and 2nd don't show can i make any edit to show counter kill in all windows
can any one help me
|
pathing issue - kill with no risk
07/14/2008 - LotRO Exploits, Hacks, Tools & Macros - 2 Replies
This is for all the hunters out there. Head to the Spie of Kheledul, just north of Duillond. The coords are 21.35.92.
At the castle area, you can shoot across the rivers at mobs, and they are unable to cross the river to attack you back! They will eventually find a way around, but you have plenty of time to take them down with no risk!
|
All times are GMT +1. The time now is 07:27.
|
|