关于实现魔法封印的一些相关修改
找到关于魔法封印属性变化的函数,替换 function change_random_option_inherit() { //random_option::CRandomOptionItemHandle::change_option Interceptor.attach(ptr(0x85F3340), { onEnter: function (args) { //保存原始魔法封印属性 this.random_option = args[7]; //本次变换的属性编号 0/1/2 对应三条词条 this.change_random_option_index = args[6].toInt32(); //记录原始属性 this.random_optio_type = this.random_option.add(3 * this.change_random_option_index).readU8(); this.random_optio_value_1 = this.random_option.add(3 * this.change_random_option_index + 1).readU8(); this.random_optio_value_2 = this.random_option.add(3 * this.change_random_option_index + 2).readU8(); // ========== 新增核心:变换前清空三条词条全部锁定标记,解除灰色锁定 ========== this.random_option.add(0xF0).writeU8(0); this.random_option.add(0xF1).writeU8(0); this.random_option.add(0xF2).writeU8(0); }, onLeave: function (retval) { retval = 1; //强制必定变换成功 if (retval == 1) { //获取未被附魔的魔法封印槽 var index = -1; if (this.random_option.add(0).readU8() == 0) index = 0; else if (this.random_option.add(3).readU8() == 0) index = 1; else if (this.random_option.add(6).readU8() == 0) index = 2; //当魔法封印词条不足3个时, 若变换出等级极低的属性, 可直接附魔到装备空的魔法封印槽内 if (index >= 0) { if ((this.random_option.add(11).readU8() <= 5) && (this.random_option.add(12).readU8() this.random_optio_value_1) this.random_option.add(3 * this.change_random_option_index + 1).writeU8(this.random_option.add(11).readU8()); if (this.random_option.add(12).readU8() > this.random_optio_value_2) this.random_option.add(3 * this.change_random_option_index + 2).writeU8(this.random_option.add(12).readU8()); //清空临时变换缓存 this.random_option.add(10).writeInt(0); // ========== 再次解除锁定,确保变换结束后三条词条全部可点击 ========== this.random_option.add(0xF0).writeU8(0); this.random_option.add(0xF1).writeU8(0); this.random_option.add(0xF2).writeU8(0); } } }); } //启动封印钩子 change_random_option_inherit(); 打开PVF封包 路径为:etc/randomoption/randomizedoptionoverall2.etc 找到 [postfix grade modification]内容 修改为: 至于”装备品级调整必定为最上级且最高数值“ 我懒得折腾了(感觉不是很重要,而且要用CE抓地址,最讨厌反复下载CE了) 大伙儿有精力的可自行研究一手。 以上内容我只保证我自己在玩的神迹新生端生效 别的端我不清楚我没玩过,出事儿别找我 此贴终结。

作者:先吃饭吧、

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。