using ODMO.Commons.Writers; namespace ODMO.Commons.Packets.GameServer.Combat { public class SkillHitPacket : PacketWriter { private const int PacketNumber = 1102; /// /// Uses the skill into the target. /// /// The source of the skill /// The target of the skill /// The skill source slot /// The final damage of the skill /// The final hp rate of the target public SkillHitPacket(int attackerHandler, int targetHandler, byte skillSlot, int finalDamage, byte targetCurrentHpRate) { Type(PacketNumber); WriteByte(0); WriteInt(attackerHandler); WriteInt(targetHandler); WriteInt(skillSlot); WriteByte(255); //Max HP Rate? WriteByte(targetCurrentHpRate); WriteByte(18); //MaxExtStat WriteByte(4); //HP TODO: afetar outros status WriteInt(finalDamage * -1); WriteByte(255); //Max HP Rate? WriteByte(0); } } }