//获得装备成功率 public void EquipRate(uint uid, int repos) { MemoryStream msdata = new MemoryStream(); Module_14.write_14_2(msdata, uid, (byte)repos); AppNet.gameNet.send(msdata, 14, 2); Log.info(this, "获得装备成功率 Send 14_2"); }
//宝石充灵 public void EquipMerge(uint id, int repos, int pos, List <uint> idList) { MemoryStream msdata = new MemoryStream(); Module_14.write_14_13(msdata, id, (byte)repos, (byte)pos, idList); AppNet.gameNet.send(msdata, 14, 13); Log.info(this, "宝石充灵 Send 14_13"); }
//宝石摘除 public void EquipRemove(uint uid, int repos, int pos) { MemoryStream msdata = new MemoryStream(); Module_14.write_14_12(msdata, uid, (byte)repos, (byte)pos); AppNet.gameNet.send(msdata, 14, 12); Log.info(this, "宝石摘除 Send 14_12"); }
//装备镶嵌 public void EquipInlay(uint uid, int repos, uint stoneid) { MemoryStream msdata = new MemoryStream(); Module_14.write_14_11(msdata, uid, (byte)repos, stoneid); AppNet.gameNet.send(msdata, 14, 11); Log.info(this, "装备镶嵌 Send 14_11"); }
//装备分解 public void EquipDestroy(List <uint> idList) { MemoryStream msdata = new MemoryStream(); Module_14.write_14_5(msdata, idList); AppNet.gameNet.send(msdata, 14, 5); Log.info(this, "装备分解 Send 14_5"); }
//装备继承 public void EquipInherit(uint preId, uint nextId) { if (!GoodsMode.Instance.IsInherit(preId)) { MessageManager.Show("金币不足"); } else { MemoryStream msdata = new MemoryStream(); Module_14.write_14_4(msdata, preId, nextId); AppNet.gameNet.send(msdata, 14, 4); Log.info(this, "装备继承 Send 14_4"); } }
//装备精炼 public void EquipRefine(uint uid, int repos) { int i = GoodsMode.Instance.IsRefine(uid); if (i == 0) { MemoryStream msdata = new MemoryStream(); Module_14.write_14_3(msdata, uid, (byte)repos); AppNet.gameNet.send(msdata, 14, 3); Log.info(this, "装备精炼 Send 14_3"); } else if (i == 1) { MessageManager.Show("金币不足"); } else if (i == 2) { MessageManager.Show("精炼石不足"); } }
//装备强化 public void EquipStren(uint uid, int repos) { int i = GoodsMode.Instance.IsStren(uid); if (i == 3) { MessageManager.Show("已经强化至最高等级"); } else if (i == 2) { MessageManager.Show("强化等级不能超过角色等级"); } else if (i == 1) { MessageManager.Show("金币不足"); } else if (i == 0) { MemoryStream msdata = new MemoryStream(); Module_14.write_14_1(msdata, uid, (byte)repos); AppNet.gameNet.send(msdata, 14, 1); Log.info(this, "装备强化 Send 14_1"); } }