Sets the value of Use Time to 1 (or whatever value you set) to make most weapons attack fast.
The second script is to set Use Animation (default 2) to make weapons like new Terra Blade
or Zenith that don't work with use time attack fast.
To add the script to your cheat table copy the code below and paste in CE window.
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<CheatTable>
<CheatEntries>
<CheatEntry>
<ID>1337098646</ID>
<Description>"Set item Use Time (Use to make weapons attack faster)"</Description>
<Options moHideChildren="1"/>
<LastState/>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript>{ Game : Terraria.exe
Version:
Date : 2022-10-08
Author : okamo
This script does blah blah blah
}
define(address,Terraria.Player::SetItemTime)
define(bytes,89 91 00 06 00 00)
[ENABLE]
assert(address,bytes)
alloc(newmem,$1000)
label(code)
label(return)
label(setusetime)
registersymbol(setusetime)
newmem:
code:
mov [ecx+00000600],#1
fild dword ptr [setusetime]
fistp dword ptr [ecx+00000600]
jmp return
setusetime:
dd (int)1
address:
jmp newmem
nop
return:
[DISABLE]
address:
db bytes
// mov [ecx+00000600],edx
dealloc(newmem)
unregistersymbol(setusetime)
{
// ORIGINAL CODE - INJECTION POINT: Terraria.Player::SetItemTime
0F31E1F1: 24 2A - and al,2A
0F31E1F3: 0F 00 00 - sldt [eax]
0F31E1F6: 00 00 - add [eax],al
0F31E1F8: 50 - push eax
0F31E1F9: 24 2A - and al,2A
0F31E1FB: 0F 90 83 F9 07 - db 0F 90 83 F9 07
Terraria.Player::SetItemTime: 89 91 00 06 00 00 - mov [ecx+00000600],edx
Terraria.Player::SetItemTime+6: 89 91 04 06 00 00 - mov [ecx+00000604],edx
Terraria.Player::SetItemTime+C: C3 - ret
Terraria.Player::SetItemTime+D: 00 00 - add [eax],al
// ---------- INJECTING HERE ----------
0F31E20F: 00 78 24 - add [eax+24],bh
// ---------- DONE INJECTING ----------
0F31E212: 2A 0F - sub cl,[edi]
0F31E214: 00 00 - add [eax],al
0F31E216: 00 00 - add [eax],al
0F31E218: 70 24 - jo 0F31E23E
0F31E21A: 2A 0F - sub cl,[edi]
0F31E21C: 9C - pushfd
0F31E21D: 83 F9 07 - cmp ecx,07
Terraria.Player::ApplyItemTime: 8B 92 B0 00 00 00 - mov edx,[edx+000000B0]
Terraria.Player::ApplyItemTime+6: E8 D5 FF FF FF - call Terraria.Player::SetItemTime
Terraria.Player::ApplyItemTime+B: C3 - ret
}
</AssemblerScript>
<CheatEntries>
<CheatEntry>
<ID>1337098647</ID>
<Description>"Use Time"</Description>
<ShowAsSigned>0</ShowAsSigned>
<VariableType>4 Bytes</VariableType>
<Address>setusetime</Address>
</CheatEntry>
<CheatEntry>
<ID>1337098652</ID>
<Description>"Set Use Animation (For weapons that don't get affected by use time set 2)"</Description>
<Options moHideChildren="1"/>
<LastState/>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript>{ Game : Terraria.exe
Version:
Date : 2022-10-08
Author : okamo
This script does blah blah blah
}
define(address,Terraria.Player::ApplyItemAnimation+54 )
define(bytes,D9 5D F4 D9 45 F4)
[ENABLE]
assert(address,bytes)
alloc(newmem,$1000)
label(code)
label(return)
label(setuseanim)
registersymbol(setuseanim)
newmem:
fild dword ptr [setuseanim]
code:
fstp dword ptr [ebp-0C]
fld dword ptr [ebp-0C]
jmp return
setuseanim:
dd (int)2
address:
jmp newmem
nop
return:
[DISABLE]
address:
db bytes
// fstp dword ptr [ebp-0C]
// fld dword ptr [ebp-0C]
dealloc(newmem)
unregistersymbol(setuseanim)
{
// ORIGINAL CODE - INJECTION POINT: Terraria.Player::ApplyItemAnimation+54
Terraria.Player::ApplyItemAnimation+26: 3B 86 AC 00 00 00 - cmp eax,[esi+000000AC]
Terraria.Player::ApplyItemAnimation+2C: 7F 17 - jg Terraria.Player::ApplyItemAnimation+45
Terraria.Player::ApplyItemAnimation+2E: 83 BE 0C 01 00 00 00 - cmp dword ptr [esi+0000010C],00
Terraria.Player::ApplyItemAnimation+35: 7E 0E - jle Terraria.Player::ApplyItemAnimation+45
Terraria.Player::ApplyItemAnimation+37: 83 BE A8 00 00 00 05 - cmp dword ptr [esi+000000A8],05
Terraria.Player::ApplyItemAnimation+3E: 75 05 - jne Terraria.Player::ApplyItemAnimation+45
Terraria.Player::ApplyItemAnimation+40: B9 01 00 00 00 - mov ecx,00000001
Terraria.Player::ApplyItemAnimation+45: 80 BE 83 01 00 00 00 - cmp byte ptr [esi+00000183],00
Terraria.Player::ApplyItemAnimation+4C: 74 2A - je Terraria.Player::ApplyItemAnimation+78
Terraria.Player::ApplyItemAnimation+4E: DB 86 AC 00 00 00 - fild dword ptr [esi+000000AC]
// ---------- INJECTING HERE ----------
Terraria.Player::ApplyItemAnimation+54: D9 5D F4 - fstp dword ptr [ebp-0C]
// ---------- DONE INJECTING ----------
Terraria.Player::ApplyItemAnimation+57: D9 45 F4 - fld dword ptr [ebp-0C]
Terraria.Player::ApplyItemAnimation+5A: D8 8F 88 04 00 00 - fmul dword ptr [edi+00000488]
Terraria.Player::ApplyItemAnimation+60: DD 5D EC - fstp qword ptr [ebp-14]
Terraria.Player::ApplyItemAnimation+63: F2 0F 10 45 EC - movsd xmm0,[ebp-14]
Terraria.Player::ApplyItemAnimation+68: F2 0F 2C D0 - cvttsd2si edx,xmm0
Terraria.Player::ApplyItemAnimation+6C: 8B CF - mov ecx,edi
Terraria.Player::ApplyItemAnimation+6E: E8 6D FF FF FF - call Terraria.Player::SetItemAnimation
Terraria.Player::ApplyItemAnimation+73: E9 C0 00 00 00 - jmp Terraria.Player::ApplyItemAnimation+138
Terraria.Player::ApplyItemAnimation+78: 80 BE 86 01 00 00 00 - cmp byte ptr [esi+00000186],00
Terraria.Player::ApplyItemAnimation+7F: 74 48 - je Terraria.Player::ApplyItemAnimation+C9
}
</AssemblerScript>
<CheatEntries>
<CheatEntry>
<ID>1337098653</ID>
<Description>"Use Animation"</Description>
<LastState Value="672099072" RealAddress="02010011"/>
<ShowAsSigned>0</ShowAsSigned>
<VariableType>4 Bytes</VariableType>
<Address>setuseanim</Address>
</CheatEntry>
</CheatEntries>
</CheatEntry>
</CheatEntries>
</CheatEntry>
</CheatEntries>
</CheatTable>
How to use this cheat table?
- Install Cheat Engine
- Double-click the .CT file in order to open it.
- Click the PC icon in Cheat Engine in order to select the game process.
- Keep the list.
- Activate the trainer options by checking boxes or setting values from 0 to 1