|
You last visited: Today at 16:29
Advertisement
Current Packets from spelluse
Discussion on Current Packets from spelluse within the CO2 Private Server forum part of the Conquer Online 2 category.
05/21/2013, 23:30
|
#1
|
elite*gold: 0
Join Date: Jul 2007
Posts: 137
Received Thanks: 4
|
Current Packets from spelluse
I wish someone send me the current packets SpellUse.
i have this packets:
Code:
public byte[] ToArray()
{
byte[] buffer = new byte[60 + Targets.Count * 32];
Writer.WriteUInt16((ushort)(buffer.Length - 8), 0, buffer);
Writer.WriteUInt16(1105, 2, buffer);
Writer.WriteUInt32(Attacker, 4, buffer);
Writer.WriteUInt16(X, 8, buffer);
Writer.WriteUInt16(Y, 10, buffer);
Writer.WriteUInt16(SpellID, 12, buffer);
Writer.WriteUInt16(SpellLevel, 14, buffer);
Writer.WriteUInt32((uint)Targets.Count, 17, buffer);
ushort offset = 20;
uint uid = 0;
foreach (KeyValuePair<uint, DamageClass> target in Targets.Base)
{
if (constC)
{
if (uid == 0)
uid = target.Key;
Writer.WriteUInt32(uid, offset, buffer);
}
else
Writer.WriteUInt32(target.Key, offset, buffer);
offset += 4;
Writer.WriteUInt32(target.Value.Damage, offset, buffer); offset += 4;
Writer.WriteBoolean(target.Value.Hit, offset, buffer); offset += 4;
Writer.WriteByte((Byte)Effect1, offset, buffer); offset += 1;
Writer.WriteByte((Byte)Effect2, offset, buffer); offset += 1;
offset += 18;
}
return buffer;
}
I think, that is responsible for not sending some effects to the screen. As an example, the effect of Intensify whit the blue bar... Correct me if I'm wrong ...
|
|
|
05/22/2013, 10:05
|
#2
|
elite*gold: 0
Join Date: Dec 2012
Posts: 1,761
Received Thanks: 950
|
Does your skills work at all, I mean it shows damage? Then it's not. I am not sure what you mean by effect (I assume it's not skill animation in this case.)
Perhaps statuseffect? Then it's most likely spawnpacket and/or updatepacket.
|
|
|
05/22/2013, 11:40
|
#3
|
elite*gold: 0
Join Date: Feb 2009
Posts: 262
Received Thanks: 161
|
Intensify was changed.
use this:
packet.WriteTQKey();
packet.WriteUint(0, 4);
packet.WriteUshort(client.Player.MyLocation.X, 16);
packet.WriteUshort(client.Player.MyLocation.Y, 18);
packet.WriteUint(my_spell.ID, 24);
packet.WriteUshort(my_spell.Level, 26);
client.Enqueue(packet.ToArray());
packet = packet receive(1022)
|
|
|
05/23/2013, 03:08
|
#4
|
elite*gold: 0
Join Date: Jul 2007
Posts: 137
Received Thanks: 4
|
Quote:
Originally Posted by teroareboss1
Intensify was changed.
use this:
packet.WriteTQKey();
packet.WriteUint(0, 4);
packet.WriteUshort(client.Player.MyLocation.X, 16);
packet.WriteUshort(client.Player.MyLocation.Y, 18);
packet.WriteUint(my_spell.ID, 24);
packet.WriteUshort(my_spell.Level, 26);
client.Enqueue(packet.ToArray());
packet = packet receive(1022)
|
wow, got it! it works fine for me now ^^
Code:
Writer.WriteUInt16(0, 4, attack.ToArray());
Writer.WriteUInt16(attack.X, 16, attack.ToArray());
Writer.WriteUInt16(attack.Y, 18, attack.ToArray());
Writer.WriteUInt16(spell.ID, 24, attack.ToArray());
Writer.WriteByte(spell.Level, 26, attack.ToArray());
Topic can be close now
|
|
|
06/08/2013, 15:09
|
#5
|
elite*gold: 83
Join Date: May 2011
Posts: 11,029
Received Thanks: 6,036
|
#closed
|
|
|
 |
Similar Threads
|
[Release] +5500 Packets structure , client/packets constants
10/07/2012 - CO2 PServer Guides & Releases - 10 Replies
edit : if u know nothing about packets go to this post first
explaining what is packets , and explaining a packet with details and everything
http://www.elitepvpers.com/forum/co2-pserver-disc ussions-questions/2162344-packets-packets-packets. html#post19074533
i start making my very own packet structure to use them on my new proxy but i thought of ripping them from the source
so yeah the following packets is ripped of trinity base source
right now im just providing the packets structure...
|
[REQUEST] packets send list , or anyway to sniff send packets
08/10/2012 - Kal Online - 16 Replies
hey everyone , as mentioned , i wanna know if anyone got a complete send packets lists or anyway i can sniff send packets , thanks in advance
|
[Packets] Wie änder ich flyff packets?
07/16/2011 - Flyff Private Server - 19 Replies
HeyHo,
Ich würde sehr gerne wissen wie man die Flyff Packets ändert...
ich denke mal Zahlen ändern werden nicht ausreichen oder?
|
looking for a current proxy for sending packets
01/22/2009 - CO2 Programming - 2 Replies
is there any program to recive packets in game and send then dycrpted of course, any recomadations of apps to do this type of job? what is every one using now a days?
|
is SV 1.17 still current ?
11/01/2007 - Conquer Online 2 - 6 Replies
Simple Question, is SV 1.17 still current ? I quit CO nearly 2 months ago, checking up on things again...
Another question also, does it work on Vista? changed my PC :p
|
All times are GMT +1. The time now is 16:30.
|
|