public static void SendTrainerBuyFailed(this NPC trainer, IRealmClient client, int serviceType, TrainerBuyError error) { using (RealmPacketOut realmPacketOut = new RealmPacketOut(RealmServerOpCode.SMSG_TRAINER_BUY_FAILED)) { realmPacketOut.Write((ulong)trainer.EntityId); realmPacketOut.Write(serviceType); realmPacketOut.Write((int)error); } }
public static void SendTrainerBuyFailed(this NPC trainer, IRealmClient client, int serviceType, TrainerBuyError error) { using (var packet = new RealmPacketOut(RealmServerOpCode.SMSG_TRAINER_BUY_FAILED)) { packet.Write(trainer.EntityId); packet.Write(serviceType); packet.Write((int) error); } }