function smithing(user, level) {
var inven = CUserCharacInfo_getCurCharacInvenW(user);
var equ = CInventory_GetInvenRef(inven, INVENTORY_TYPE_ITEM, 9);
var itemId = Inven_Item_getKey(equ)
var itemData = CDataManager_find_item(G_CDataManager(), itemId);
var equ_type = itemData.add(141 * 4).readU32();
var characName = api_CUserCharacInfo_getCurCharacName(user);
var equipmentName = api_CItem_GetItemName(itemId);
if (Inven_Item_getKey(equ)) {
if (equ_type == 10) {
var upgrade_level = equ.add(51).readU8();
if (upgrade_level == 7) {
api_CUser_SendNotiPacketMessage(user, "锻造失败:该武器的锻造等级已经为最大限制!", 0);
return;
} else {
equ.add(51).writeU8(level);
CUser_SendUpdateItemList(user, 1, 0, 9);
successTag = true;
console.log("success!!!")
api_CUser_SendNotiPacketMessage(user, "恭喜玩家:" + [characName] + "武器:" + [equipmentName] + "锻7成功!", 0);
return;
}
} else {
api_CUser_SendNotiPacketMessage(user, "锻造失败:该装备不是武器!", 0);
return;
}
}
}
关于你们不会搞得的问题: 其实很简答把上述代码直接复制进frida就行了 然后
在下边判断中加上
if ('20230505' == item_id) {
smithing(user, 7)
}
这段 user 是用户 这个7是锻造等级
———————————————@青梅煮酒¥
© 版权声明
THE END
暂无评论内容