using ODMO.Commons.Writers; namespace ODMO.Commons.Packets.GameServer.Combat { public class KillOnHitPacket : PacketWriter { private const int PacketNumber = 1020; /// /// Attack the target with default hit. /// /// The source of the hit /// The target of the hit /// The damage of the hit /// Type of the hit (2-Block 1-Crit 0-Normal) public KillOnHitPacket(int attackerHandler, int targetHandler, int damage, int hitType = 0) { Type(PacketNumber); WriteInt(attackerHandler); WriteInt(targetHandler); WriteInt(damage * -1); WriteInt(hitType); WriteShort(0); } } }