Code:
//Wasn't suppose to be out but fuck it lel
[Enable]
alloc(Hook,128)
globalalloc(HookRet,4)
label(JMP1)
label(HookExit)
alloc(LightSwitch,4)
registersymbol(LightSwitch)
LightSwitch:
dd 1 //0=Mob Disarm , 1=Aggro
Hook:
cmp [esp], 009A22A1
jne HookExit
pushad
mov ecx,[esi+190]
lea ecx,[ecx-0C]
mov eax,[LightSwitch]
test eax,eax
je JMP1
mov edi,[01B440B4]
lea eax,[edi+04]
JMP1:
mov [ecx+348], eax
popad
HookExit:
jmp [HookRet]
HookRet:
readmem(018A6550,4)
018A6550:
dd Hook
[Disable]
018A6550:
readmem(HookRet,4)
dealloc(Hook)
dealloc(HookRet)
dealloc(LightSwitch)
unregistersymbol(LightSwitch)
if this helped plz press the thank button