private void 修改属性() { //声明变量 int index = -1, index2, t_level, i = 0; uint t_add, t_pet, t_skilladd = 0; //ListView_SkillProperties_Edit中有项目才进行修改 if (this.ListView_SkillProperties_Edit.Items.Count > 0) { //循环项目数次 for (i = 0; i < this.ListView_SkillProperties_Edit.Items.Count; i++) { index = -1; index2 = 0; index2 = this.ListView_SkillProperties_Edit.Items[i].SubItems[0].Text.IndexOf("+", index + 1); //公式第一个+号位置 t_pet = Convert.ToUInt32(this.ListView_SkillProperties_Edit.Items[i].SubItems[0].Text.Substring(index + 1, index2 - index - 1)); //技能偏移 t_skilladd = (uint)ReadWriteCtr.ReadMemInt(全局变量.进程ID, (uint)ReadWriteCtr.ReadMemInt(全局变量.进程ID, 基址.人物基址) + t_pet); //技能地址 t_level = EncDec.Decrypt(全局变量.进程ID, (uint)t_skilladd + 基址.技能等级偏移, 基址.解密基址); //技能等级 Thread.Sleep(30); //延迟30毫秒 t_add = (uint)ReadWriteCtr.ReadMemCode(全局变量.进程ID, Convert.ToString(基址.人物基址) + "+" + this.ListView_SkillProperties_Edit.Items[i].SubItems[0].Text); //加密 EncDec.Encryption(全局变量.进程ID, (uint)(t_add + 8 * (t_level - 1)), TransCtr.IntToFloat(this.ListView_SkillProperties_Edit.Items[i].SubItems[1].Text), 基址.解密基址); Thread.Sleep(30); //延迟30毫秒进入下一循环 } } else { MessageBox.Show("List中没有数据", "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); } }