示例#1
0
        public void GetRetainerSaleList(uint retainerId)
        {
            NPCRepair npcRepair = new NPCRepair();

            NPCRepair.Data npcRepairData = new NPCRepair.Data();
            npcRepairData.ExpandedId = 1132;
            npcRepairData.Unk6       = retainerId;
            npcRepair.PacketData     = npcRepairData;

            GameHandler.SendPacket(new List <Subpacket>()
            {
                npcRepair
            });
        }
示例#2
0
        public void Repair()
        {
            if (this.Durability >= 30000)
            {
                return;
            }

            NPCRepair npcRepair = new NPCRepair();

            NPCRepair.Data npcRepairData = new NPCRepair.Data();
            npcRepairData.ExpandedId = 1600;
            npcRepairData.BagId      = this.BagId;
            npcRepairData.Slot       = this.Slot;
            npcRepairData.ItemId     = this.IsHQ == 1 ? uint.Parse("10" + this.ItemId.ToString()) : this.ItemId;
            npcRepair.PacketData     = npcRepairData;

            InventoryHandler.GameHandler.SendPacket(new List <Subpacket>()
            {
                npcRepair
            });
        }