找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 707|回复: 10

epic_potion(史诗药剂)------frida

[复制链接]

772

主题

7427

回帖

2万

积分

登峰造极

积分
25333
发表于 2025-1-22 22:20:13 | 显示全部楼层 |阅读模式
const CUser_CheckCoolTimeItem = new NativeFunction(ptr(0x865E994), 'int', ['pointer', 'int'], {"abi": "sysv"});
const CParty_checkValidUser = new NativeFunction(ptr(0x8145868), 'int', ['pointer', 'int'], {"abi": "sysv"});
const CLuckPoint_getItemRarity = new NativeFunction(ptr(0x8550BE4), 'int', ['pointer', 'pointer', 'int', 'int'], {"abi": "sysv"});
function api_GetPartyMemberNumber(Party) {
if (Party.isNull()) return 1;
let memberCount = 0;
for (let i = 0; i <= 3; i++) {
memberCount += CParty_checkValidUser(Party, i);
}
return memberCount;
}
function epic_potion() {
let user = null;
Interceptor.attach(ptr(0x81EB0C4), {
onEnter: function (args) {
user = args[1];
}
});
Interceptor.attach(ptr(0x85B2412), {
onEnter: function (args) {
user = args[1];
}
});
Interceptor.replace(ptr(0x8550BE4), new NativeCallback(function (a1, a2, roll, a4) {
if (user == null) {
return CLuckPoint_getItemRarity(a1, a2, roll, a4);
}
const Party = CUser_getParty(user);
//  只在单人深渊模式且使用药剂的状态下生效
if (this.returnAddress == 0x853583a && CUser_CheckCoolTimeItem(user, 2600010) && api_GetPartyMemberNumber(Party) == 1) {
const MaxRoll = a2.add(16).readU32();
// 概率
const odds = 0.1;
const MyRoll = Math.floor(Math.min(roll + roll * odds, MaxRoll));
return CLuckPoint_getItemRarity(a1, a2, MyRoll, a4);
}
return CLuckPoint_getItemRarity(a1, a2, roll, a4);
}, 'int', ['pointer', 'pointer', 'int', 'int']));
}
回复

使用道具 举报

1309

主题

9862

回帖

3万

积分

管理员

积分
34974
发表于 2025-1-22 22:20:49 | 显示全部楼层

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
回复

使用道具 举报

772

主题

7427

回帖

2万

积分

登峰造极

积分
25333
 楼主| 发表于 2025-1-22 22:20:57 | 显示全部楼层
好东西
回复

使用道具 举报

847

主题

7740

回帖

2万

积分

登峰造极

积分
26542
发表于 2025-1-22 22:21:14 | 显示全部楼层
今天上班💼
回复

使用道具 举报

1431

主题

1万

回帖

3万

积分

登峰造极

积分
39303
发表于 2025-1-22 22:21:51 | 显示全部楼层
回复

使用道具 举报

1453

主题

1万

回帖

3万

积分

登峰造极

积分
39286
发表于 2025-1-22 22:21:57 | 显示全部楼层
借花献佛

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
回复

使用道具 举报

847

主题

7740

回帖

2万

积分

登峰造极

积分
26542
发表于 2025-1-22 22:22:32 | 显示全部楼层
10%概率吗
回复

使用道具 举报

772

主题

7427

回帖

2万

积分

登峰造极

积分
25333
 楼主| 发表于 2025-1-22 22:22:50 | 显示全部楼层
谢谢分享
回复

使用道具 举报

1474

主题

1万

回帖

3万

积分

登峰造极

积分
39067
发表于 2025-1-22 22:23:00 | 显示全部楼层
谢谢分享
回复

使用道具 举报

发表于 2025-1-22 22:23:30 | 显示全部楼层
能取消单人才生效嘛 让组队也可以生效
回复

使用道具 举报

1309

主题

9862

回帖

3万

积分

管理员

积分
34974
发表于 2025-1-22 22:24:14 | 显示全部楼层
复制到fiada就可以了吗?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表