Log boss respawn in the ActionLog table

Bowie

Well-known member
Developer
Joined
Sep 30, 2023
Messages
101
Here's a simple way to do it with Cheat Engine. As far as I know, it's safe to use.

Code:
// Bowie 1/20/2024
[ENABLE]
alloc(newmem,128)
label(return)
alloc(text3,32)
// hooks CZone::BothMobRespawn
newmem:
// original
call 0041CFF0 // CZone::EnterMob

pushad

mov eax,[edi+000000BC]

push 0 // damage
push 0 // text4
push 0 // "none"
lea edi,[text3]
mov edx,eax // CMob
call 004B62C0 // CMob::SendLogBossMob

popad

jmp return

text3:
db 'respawn',0

00422F75:
jmp newmem
return:

[DISABLE]
dealloc(newmem)
dealloc(text3)
00422F75:
call 0041CFF0

Add the following to usp_Insert_Action_Log_E (optional)

SQL:
-- CMob::SendLogBossMob
IF (@ActionType=173 AND @Text3='respawn')
BEGIN
    DECLARE @MobID int
    SET @MobID=@Value3
    -- do something
END

If you'd rather use C++, there's a definition for the packet and the send method in my library.

 
Last edited:
Back
Top