Cheat Table for spawning an Item by ID out of the trash. Works in Single- and Multiplayer.
How to:
Cheat Table:
1.Copy the whole code underneath and save it as <name>.ct
1.[Terraria] Go ingame
2.[Cheat Engine] Activate "Get Playerbase"
3.[Cheat Engine] Activate "Spawn Item out of trash"
4.[Cheat Engine] Write an ID of an Item into the address "ItemID"
5.[Terraria] Select any Item and move it into the trash slot
6.[Terraria] You are holding your desired Item
Cheat Table Code:
Code:
<?xml version="1.0" encoding="utf-8"?>
<CheatTable CheatEngineTableVersion="19">
<CheatEntries>
<CheatEntry>
<ID>5</ID>
<Description>"Hook"</Description>
<LastState Activated="1"/>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript>[ENABLE]
aobscan(BaseAddress,DB 86 18 03 00 00) // should be unique
alloc(Base_Address_Hook,32)
globalalloc(t_BaseAddress,4)
label(return)
Base_Address_Hook:
fild dword ptr [esi+00000318]
mov [t_BaseAddress],esi
jmp return
BaseAddress:
jmp Base_Address_Hook
nop
return:
registersymbol(BaseAddress)
[DISABLE]
BaseAddress:
db DB 86 18 03 00 00
unregistersymbol(BaseAddress)
dealloc(newmem)
</AssemblerScript>
<CheatEntries>
<CheatEntry>
<ID>6</ID>
<Description>"BaseAddress"</Description>
<LastState Value="1C5362AC" RealAddress="03B60000"/>
<ShowAsHex>1</ShowAsHex>
<VariableType>4 Bytes</VariableType>
<Address>t_baseaddress</Address>
</CheatEntry>
</CheatEntries>
</CheatEntry>
<CheatEntry>
<ID>19</ID>
<Description>"Spawn Item out of trash"</Description>
<LastState Activated="1"/>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript>[ENABLE]
aobscan(qwewq,89 51 6C 5D C3) // should be unique
alloc(newmem,$1000)
label(ItemID)
registersymbol(ItemID)
label(code)
label(return)
newmem:
push eax
mov eax,[t_baseaddress]
add eax,98
cmp ecx,[eax]
pop eax
jne code
mov edx,[ItemID]
jmp code
code:
mov [ecx+6c],edx
pop ebp
ret
jmp return
ItemID:
dd 0
qwewq:
jmp newmem
return:
registersymbol(qwewq)
[DISABLE]
qwewq:
db 89 51 6C 5D C3
unregistersymbol(qwewq)
unregistersymbol(ItemID)
dealloc(newmem)
</AssemblerScript>
<CheatEntries>
<CheatEntry>
<ID>3</ID>
<Description>"ItemID"</Description>
<LastState Value="0" RealAddress="01060029"/>
<VariableType>4 Bytes</VariableType>
<Address>ItemID</Address>
</CheatEntry>
</CheatEntries>
</CheatEntry>
</CheatEntries>
<UserdefinedSymbols>
<SymbolEntry>
<Name>t_BaseAddress</Name>
<Address>03B60000</Address>
</SymbolEntry>
<SymbolEntry>
<Name>INJECTt</Name>
<Address>37994ED2</Address>
</SymbolEntry>
<SymbolEntry>
<Name>BaseAddress</Name>
<Address> 03B70000</Address>
</SymbolEntry>
<SymbolEntry>
<Name>ItemID</Name>
<Address>01060029</Address>
</SymbolEntry>
<SymbolEntry>
<Name>qwewq</Name>
<Address> 15BBC360</Address>
</SymbolEntry>
</UserdefinedSymbols>
</CheatTable>