Frida自定义装备解锁时间
台服dnf吧
全部回复
仅看楼主
level 8


2023年12月15日 05点12分 1
level 8
6
2023年12月15日 05点12分 2
level 8
源码呢
2023年12月15日 06点12分 3
楼下有人发了[吐舌]
2023年12月16日 13点12分
level 13
这个好[真棒] 感谢楼主的分享[吐舌]
2023年12月15日 07点12分 4
level 9
大佬厉害啊,能分享下位置吗
2023年12月15日 07点12分 5
level 8
函数地址 0x85432CC
返回值是当装备的申请解锁的时间,实际上层函数会加一个86400*3的数值。hook之后把这个86400*3减掉就可以了
2023年12月15日 14点12分 6
大佬[真棒][真棒]
2023年12月15日 14点12分
level 6
大佬帮忙弄一下可以吗?有偿
2023年12月16日 08点12分 7
level 1
都是牛人
2024年02月29日 17点02分 9
level 11
function api_scheduleOnMainThread_delay(callback, args, delay) { setTimeout(function () { callback.apply(null, args); }, delay);}var CUser_OnItemUnlockWaitTimeout = new NativeFunction(ptr(0x8646912), "int", ["pointer"], { abi: "sysv" });/** * 设置装备解锁时间 */function set_equipment_unlock_time(second) { //std::_Rb_tree_iterator<std::pair<uchar const,stItemLockInfo>>::operator->(void) 085432CC Interceptor.attach(ptr(0x85432CC), { onEnter: function (args) {
}, onLeave: function (retval) { var time = retval.add(4).readU32() - 259200 + second; console.log("set_equipment_unlock_time: " + time + "s"); retval.add(4).writeU32(time); } });
//item_lock::CItemLock::DoItemUnlock(CUser *,int,int) 0854231A Interceptor.attach(ptr(0x854231A), { onEnter: function (args) { this.user = args[1]; }, onLeave: function (retval) { second > 0 ? api_scheduleOnMainThread_delay(CUser_OnItemUnlockWaitTimeout, [this.user], 1E3 * second) : CUser_OnItemUnlockWaitTimeout(this.user); } });}
2024年02月29日 19点02分 10
大佬,这个粘贴出来没有换行
2024年03月01日 01点03分
@猫携✨ 有vs code的话,在vs code里选中这段代码右键格式化选定内容,或者能使用AI的话,任意AI助手 让它帮你格式化这段代码[滑稽]
2024年03月01日 01点03分
@MUQING- 谢谢大佬
2024年03月01日 01点03分
1