111
This commit is contained in:
@@ -43,6 +43,7 @@ SUBHOOK_INIT(CreateEquip, 0x084023AC);
|
||||
SUBHOOK_INIT(History_Log, 0x854F990);
|
||||
SUBHOOK_INIT(UseGlod, 0x84FF54C);
|
||||
SUBHOOK_INIT(BossDieCheckSend, 0x81CDA62);
|
||||
SUBHOOK_INIT(Giveup_Game, 0x81C40B4);
|
||||
|
||||
//_setCharacInfoDetail
|
||||
|
||||
@@ -699,6 +700,24 @@ void _BossDieCheckSend(void *a1, void *a2, void *a3)
|
||||
BossDieCheckSend(a1, a2, a3);
|
||||
}
|
||||
|
||||
void _Giveup_Game(void *CParty, void *CUser, bool a3, bool a4, bool a5)
|
||||
{
|
||||
// 放弃副本
|
||||
std::lock_guard<std::recursive_mutex> lock(SqMtx);
|
||||
// 执行虚拟机Main函数
|
||||
SQInteger top = sq_gettop(v); // saves the stack size before the call
|
||||
sq_pushroottable(v); // pushes the global table
|
||||
sq_pushstring(v, _SC("Cb_giveup_dgn"), -1);
|
||||
if (SQ_SUCCEEDED(sq_get(v, -2)))
|
||||
{ // gets the fie123oo' from the global table
|
||||
sq_pushroottable(v); // push the 'this' (in this case is the global table)
|
||||
sq_pushuserpointer(v, CUser);
|
||||
sq_call(v, 2, SQFalse, SQTrue); // calls the function
|
||||
}
|
||||
sq_settop(v, top); // restores the original stack size
|
||||
Giveup_Game(CParty, CUser, a3, a4, a5);
|
||||
}
|
||||
|
||||
void Lenheart()
|
||||
{
|
||||
|
||||
@@ -779,6 +798,8 @@ void Lenheart()
|
||||
// SUBHOOK_SETUP(UseGlod);
|
||||
// BOSS死亡
|
||||
SUBHOOK_SETUP(BossDieCheckSend);
|
||||
// 放弃副本
|
||||
SUBHOOK_SETUP(Giveup_Game);
|
||||
|
||||
// SUBHOOK_SETUP(doDispatch); // 收包注册
|
||||
|
||||
|
||||
Reference in New Issue
Block a user