/** * 使用物品 */ public void UseGoods(uint id, string name) { MemoryStream msdata = new MemoryStream(); Module_5.write_5_9(msdata, id, name); AppNet.gameNet.send(msdata, 5, 9); }
/** * 销毁物品 */ public void DestroyGoods(uint id, byte repos) { MemoryStream msdata = new MemoryStream(); Module_5.write_5_10(msdata, id, repos); AppNet.gameNet.send(msdata, 5, 10); }
/** * 交换位置 */ public void SwapGrid(byte repos, ushort from, ushort to) { MemoryStream msdata = new MemoryStream(); Module_5.write_5_6(msdata, repos, from, to); AppNet.gameNet.send(msdata, 5, 6); }
/** * 拆分 */ public void SplitWrap(byte repos, uint id, ushort count) { MemoryStream msdata = new MemoryStream(); Module_5.write_5_7(msdata, repos, id, count); AppNet.gameNet.send(msdata, 5, 7); }
/** * 包裹信息 */ public void RequestWrapInfo(byte repos) { MemoryStream msdata = new MemoryStream(); Module_5.write_5_1(msdata, repos); AppNet.gameNet.send(msdata, 5, 1); }
/** * 整理包裹 */ public void SortWrap(byte repos) { MemoryStream msdata = new MemoryStream(); Module_5.write_5_5(msdata, repos); AppNet.gameNet.send(msdata, 5, 5); }
/// <summary> /// 卸装备 /// </summary> /// <param name="msdata"></param> /// <param name="id">装备id</param> /// <param name="pos">位置</param> public void UnWearEquipment(uint id, byte pos) { MemoryStream msdata = new MemoryStream(); Module_5.write_5_12(msdata, id, pos); AppNet.gameNet.send(msdata, 5, 12); }
/** * npc商店购买 */ public void BuyGoods(uint npcId, uint shopId, uint goodsId, ushort count) { MemoryStream msdata = new MemoryStream(); Module_5.write_5_16(msdata, npcId, shopId, goodsId, count); AppNet.gameNet.send(msdata, 5, 16); }
/** * npc商店出售 */ public void SellGoods(uint id) { MemoryStream msdata = new MemoryStream(); Module_5.write_5_15(msdata, id); AppNet.gameNet.send(msdata, 5, 15); }
/** * 仓库背包交换位置 */ public void SwapStorage(byte repos, uint id) { MemoryStream msdata = new MemoryStream(); Module_5.write_5_14(msdata, repos, id); AppNet.gameNet.send(msdata, 5, 14); }
/** * 批量使用 */ public void UseGoodsMany(uint id, ushort count) { MemoryStream msdata = new MemoryStream(); Module_5.write_5_13(msdata, id, count); AppNet.gameNet.send(msdata, 5, 13); }