Already have most info in the ext already - Learn and stop being lazy as smeli would say.
typedef void (__thiscall *USER_DIED) (DWORD * pUser);
static USER_DIED Die = (USER_DIED)0x004ef010;
typedef void (__thiscall *USER_KARMA) (DWORD * pUser, DWORD iKarma);
static USER_KARMA SetKarma = (USER_KARMA)0x004ea990;
defined in L2Server.h
WriteMemory32(0x602E70, DieHook);
void DieHook( DWORD *pUser)
{
SetKarma(pUser,999);
Die(pUser);
SetKarma(pUser,0);
}
Simple hook, simple fast way to test without worrying about structs and anything.