2022年9月9日12:23:58

This commit is contained in:
小疯
2022-09-09 12:24:02 +08:00
parent feef73d53f
commit f77da28439
3 changed files with 15 additions and 6 deletions

View File

@@ -34,6 +34,16 @@ void Controller::init()
Mem::WriteUChar((void*)(base::CParty::addDungeonClear_fix_3 + 2), 0x7E); //异界被击
/* 修正使用代币增加积分
地址 长度 原始字节 已修补字节
08179043 0x1 97 B8
0817904E 0x1 8C AD
*/
Mem::WriteUChar((void*)(0x08179043), 0xB8); //异界被击
Mem::WriteUChar((void*)(0x0817904E), 0xAD); //异界被击
//mhook_IPacketDispatcher_ParamBase_dispatch_template.Hook((void**)&old_IPacketDispatcher_ParamBase_dispatch_template, (void*)hook_IPacketDispatcher_ParamBase_dispatch_template);
@@ -174,7 +184,7 @@ int Controller::hook_UseJewel_dispatch_sig(void* pDispatcher_UseJewel, CUser* us
user->SendCmdErrorPacket(205, 209);
return 0;
}
CItem* citem = DataManager->find_item(emblem_item_id);
CStackableItem* citem = (CStackableItem*)DataManager->find_item(emblem_item_id);
if (!citem)
{
LOG("DataManager->find_item() : error \n");