ok this is how im sending the attack packet .
Players.Supply(Packets.AT( Attacker.ID, Mob.ID, Mob.Loc.X, Mob.Loc.Y, Damage, AttackType));
and this is the attack packet .
the attack packet works fine all attack types works great . cept when it comes to the bow attack which is 28 . whenever i send the attack packet with the damage the damage amount comes up 2 time and i can see 2 different numbers above the target .
lets say i changed the damage to be something like
i tried to change the attack type to be a normal melee attack > 2 < but that dident help cus that way i cant see the arrows targeting the target any more .Plus if i changed the damage to 0 im not gonna be able to see the damage any more .
so any idea on wtf is wrong with that packet cus i spent a LOOONG time trying to figure that shit out .
thanks :)
Players.Supply(Packets.AT( Attacker.ID, Mob.ID, Mob.Loc.X, Mob.Loc.Y, Damage, AttackType));
and this is the attack packet .
PHP Code:
byte[] Data = new byte[8 + 32];
COPacket P = new COPacket(Data);
P.WriteUshortAddPos2((ushort)(Data.Length - 8));
P.WriteUshortAddPos2((ushort)0x3FE);
P.WriteUintAddPos4(0);
P.WriteUintAddPos4(Attacker.ID);
P.WriteUintAddPos4(Mob.ID);
P.WriteUshortAddPos2(X);
P.WriteUshortAddPos2(Y);
P.WriteUintAddPos4(AttackType);
P.WriteUintAddPos4(Damage);
P.WriteUintAddPos4(0);
return P.AddTQServer8Byte();
lets say i changed the damage to be something like
m gonna see the same number 2wise knowing that the take attack void is being executed only 1 time . and that happens only when the attack type is 28/archer melee attack .Quote:
P.WriteUintAddPos4(2000);
i tried to change the attack type to be a normal melee attack > 2 < but that dident help cus that way i cant see the arrows targeting the target any more .Plus if i changed the damage to 0 im not gonna be able to see the damage any more .
|
|
|
|
so any idea on wtf is wrong with that packet cus i spent a LOOONG time trying to figure that shit out .
thanks :)