|
楼主 |
发表于 2024-11-7 09:49:24
|
显示全部楼层
var CUserCharacInfo_getCurCharacR = new NativeFunction(ptr(0x0854f718), 'int', ['pointer'], {"abi":"sysv"});
//获取角色状态
var CUser_get_state = new NativeFunction(ptr(0x80DA38C), 'int', ['pointer'], {"abi":"sysv"});
//道具是否被锁
var CUser_CheckItemLock = new NativeFunction(ptr(0x8646942), 'int', ['pointer', 'int', 'int'], {"abi":"sysv"});
//获取角色背包
var CUserCharacInfo_getCurCharacInvenW = new NativeFunction(ptr(0x80DA28E), 'pointer', ['pointer'], {"abi":"sysv"});
var CInventory_GetInvenSlot = new NativeFunction(ptr(0x084fb918), 'pointer', ['pointer', 'int', 'int', 'int'], {"abi":"sysv"});
var CItem_GetItemGroupName = new NativeFunction(ptr(0x80f1312), 'int', ['pointer'], {"abi":"sysv"});
//获取装备魔法封印等级?
var CEquipItem_GetRandomOptionGrade = new NativeFunction(ptr(0x8514E6E), 'int', ['pointer'], {"abi":"sysv"});
var CInventory_GetInvenRef = new NativeFunction(ptr(0x84FC1DE), 'pointer', ['pointer', 'int', 'int'], {"abi":"sysv"});
var CDataManager_find_item = new NativeFunction(ptr(0x835FA32), 'pointer', ['pointer', 'int'], {"abi":"sysv"});
var CUserCharacInfo_getCurCharacInvenR = new NativeFunction(ptr(0x080da27e), 'pointer', ['pointer'], {"abi":"sysv"});
var CItem_GetUsableLevel = new NativeFunction(ptr(0x80f12ee), 'int', ['pointer'], {"abi":"sysv"});
var CItem_GetRarity = new NativeFunction(ptr(0x80f12d6), 'int', ['pointer'], {"abi":"sysv"});
//以上函数你frida没有就自己加贴进去,有的话就不用贴了
function hookrandomoption(){
var Dispatcher_ResetRandomOption_process = ptr(0X081DD2BE);
var Hook_Dispatcher_ResetRandomOption_process = new NativeFunction(Dispatcher_ResetRandomOption_process, 'int', ['pointer', 'pointer', 'pointer'], { "abi": "sysv" });
var random_option_CRandomOptionItemHandle_reset_option = new NativeFunction(ptr(0x085F39D2), 'int', ['pointer', 'pointer', 'pointer','pointer','pointer'], { "abi": "sysv" });
var cUserHistoryLog_RandomOption = new NativeFunction(ptr(0X08682D3A), 'int', ['pointer', 'pointer', 'int'], { "abi": "sysv" }); |
|