FOWARDROTARY, post: 136021, member: 41689 wrote:
Works
Works like an absolute charm! That is really good, mabye on improving this (excuse me i have no knowledge of coding of making tables, so if this sounds impossible please forgive me lol) you can set the id values of each crate to override all other catches o that you can only fish crates? i have no idea how this would wok, sorry, but this is really good, thanks for the help and feedback!
Like so often it's just having the right idea at the right time. Thanks to the people who created the Player Structure I could find out where the game increases the crate chance when the player has the corresponding Potion Buff.
Unfortunately it doesn't seem to work perfectly for Lava. I get about 50/50 Obsidifish and Hellstone Create. There could be more oddity with other biomes, I have only tested a hand full.
Code: Select all
10951
"Always Fish Crates (Almost)"
Auto Assembler Script
{ Game : Terraria.exe
Version:
Date : 2020-05-21
Author : OliSt
This script does blah blah blah
}
define(address,Terraria.Projectile::FishingCheck_RollDropLevels+42)
define(bytes,C7 45 E4 0A 00 00 00)
[ENABLE]
assert(address,bytes)
alloc(newmem,$1000)
label(code)
label(return)
newmem:
mov [ebp-1C],000000C8
jmp return
code:
mov [ebp-1C],0000000A
jmp return
address:
jmp newmem
nop 2
return:
[DISABLE]
address:
db bytes
// mov [ebp-1C],0000000A
dealloc(newmem)
{
// ORIGINAL CODE - INJECTION POINT: Terraria.Projectile::FishingCheck_RollDropLevels+42
1AA18191: F7 F9 - idiv ecx
1AA18193: 8B D8 - mov ebx,eax
1AA18195: B8 CA 08 00 00 - mov eax,000008CA
1AA1819A: 99 - cdq
1AA1819B: F7 F9 - idiv ecx
1AA1819D: 89 45 E8 - mov [ebp-18],eax
1AA181A0: B8 94 11 00 00 - mov eax,00001194
1AA181A5: 99 - cdq
1AA181A6: F7 F9 - idiv ecx
1AA181A8: 8B F8 - mov edi,eax
// ---------- INJECTING HERE ----------
1AA181AA: C7 45 E4 0A 00 00 00 - mov [ebp-1C],0000000A
// ---------- DONE INJECTING ----------
1AA181B1: A1 B4 5C 2F 06 - mov eax,[062F5CB4]
1AA181B6: 8B 56 7C - mov edx,[esi+7C]
1AA181B9: 3B 50 04 - cmp edx,[eax+04]
1AA181BC: 0F 83 16 01 00 00 - jae 1AA182D8
1AA181C2: 8B 44 90 08 - mov eax,[eax+edx*4+08]
1AA181C6: 80 B8 E2 05 00 00 00 - cmp byte ptr [eax+000005E2],00
1AA181CD: 74 04 - je 1AA181D3
1AA181CF: 83 45 E4 0A - add dword ptr [ebp-1C],0A
1AA181D3: 83 7D F0 02 - cmp dword ptr [ebp-10],02
1AA181D7: 7D 07 - jnl 1AA181E0
}
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