示例#1
0
 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);
     }
 }
示例#2
0
文件: NPCHandler.cs 项目: NVN/WCell
 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);
     }
 }