Thanks a lot for sharing! Brightness and crafting everyting still works well.
I updated the "max stack with ctrl+f2" -script to work with 1.3.4.4 (16.4.2017). Here it is:
Code: Select all
[ENABLE]
aobscan(mouseover_aob,8B 99 84 00 00 00 85 DB 0F) // should be unique
alloc(newmem,$1000)
label(code)
label(return)
label(exit)
newmem:
code:
pushad
push 11
call GetAsyncKeyState
shr ax,#15
cmp ax,1
popad
jne exit
pushad
push 71
call GetAsyncKeyState
shr ax,#15
cmp ax,1
popad
jne exit
mov ebx,[ecx+88]
mov [ecx+84],ebx
exit:
mov ebx,[ecx+00000084]
jmp return
mouseover_aob:
jmp code
nop
return:
registersymbol(mouseover_aob)
[DISABLE]
mouseover_aob:
db 8B 99 84 00 00 00
unregistersymbol(mouseover_aob)
dealloc(newmem)
{
// ORIGINAL CODE - INJECTION POINT: 179EEC06 (OLD)
179EEBD8: 0F 86 3F 03 00 00 - jbe 179EEF1D
179EEBDE: 8B 40 18 - mov eax,[eax+18]
179EEBE1: 8D 15 E0 3E AC 04 - lea edx,[04AC3EE0]
179EEBE7: E8 44 30 FC 4A - call clr.dll+1C30
179EEBEC: 8B 45 F0 - mov eax,[ebp-10]
179EEBEF: 3B 78 04 - cmp edi,[eax+04]
179EEBF2: 0F 83 25 03 00 00 - jae 179EEF1D
179EEBF8: 8B 4C B8 0C - mov ecx,[eax+edi*4+0C]
179EEBFC: 83 79 6C 00 - cmp dword ptr [ecx+6C],00
179EEC00: 0F 8E 2C 01 00 00 - jng 179EED32
// ---------- INJECTING HERE ----------
Terraria.UI.ItemSlot::MouseHover+56
179EEC06: 8B 99 80 00 00 00 - mov ebx,[ecx+00000080]
// ---------- DONE INJECTING ----------
179EEC0C: 85 DB - test ebx,ebx
179EEC0E: 0F 8E 1E 01 00 00 - jng 179EED32
179EEC14: 8B 41 04 - mov eax,[ecx+04]
179EEC17: 8D 15 E0 3E AC 04 - lea edx,[04AC3EE0]
179EEC1D: E8 0E 30 FC 4A - call clr.dll+1C30
179EEC22: 83 FB 01 - cmp ebx,01
179EEC25: 0F 8E 85 00 00 00 - jng 179EECB0
179EEC2B: 8B 1D E0 3E AC 04 - mov ebx,[04AC3EE0]
179EEC31: B9 EE 3D DF 58 - mov ecx,mscorlib.ni.dll+3DEE
179EEC36: BA 04 00 00 00 - mov edx,00000004
}
{
// ORIGINAL CODE - INJECTION POINT: 1177BFD6 (for terraria 1.3.4.4)
""+1177BFA8: 0F 86 2C 03 00 00 - jbe 1177C2DA
""+1177BFAE: 8B 40 14 - mov eax,[eax+14]
""+1177BFB1: 8D 15 EC 71 75 05 - lea edx,[057571EC]
""+1177BFB7: E8 64 26 75 62 - call clr.dll+E620
""+1177BFBC: 8B 45 F0 - mov eax,[ebp-10]
""+1177BFBF: 3B 78 04 - cmp edi,[eax+04]
""+1177BFC2: 0F 83 12 03 00 00 - jae 1177C2DA
""+1177BFC8: 8B 4C B8 08 - mov ecx,[eax+edi*4+08]
""+1177BFCC: 83 79 70 00 - cmp dword ptr [ecx+70],00
""+1177BFD0: 0F 8E 19 01 00 00 - jng 1177C0EF
// ---------- INJECTING HERE ----------
Terraria.UI.ItemSlot::MouseHover+56
""+1177BFD6: 8B 99 84 00 00 00 - mov ebx,[ecx+00000084]
// ---------- DONE INJECTING ----------
""+1177BFDC: 85 DB - test ebx,ebx
""+1177BFDE: 0F 8E 0B 01 00 00 - jng 1177C0EF
""+1177BFE4: 8B 81 0C 01 00 00 - mov eax,[ecx+0000010C]
""+1177BFEA: A3 50 77 59 01 - mov [01597750],eax
""+1177BFEF: 8B 41 04 - mov eax,[ecx+04]
""+1177BFF2: 8D 15 EC 71 75 05 - lea edx,[057571EC]
""+1177BFF8: E8 23 26 75 62 - call clr.dll+E620
""+1177BFFD: 83 FB 01 - cmp ebx,01
""+1177C000: 0F 8E 85 00 00 00 - jng 1177C08B
""+1177C006: 8B 1D EC 71 75 05 - mov ebx,[057571EC]
}