Emya Newbie cheater
Reputation: 0
Joined: 28 Jul 2024 Posts: 14
|
Posted: Fri Aug 23, 2024 11:45 pm Post subject: Parse Block ID from getBlock Function Return Value or String |
|
|
I wanted to ask for some advice from you experts. Here’s the situation:
I found a getBlock function and wrapped it up, so whenever I do:
Code: |
push xyz
call getBlock
|
I get a value returned in eax.
In this game, each block has its own name, like air, stone, grass.
I noticed that this return value is a pointer, and each type of block (including different orientations of the same block) returns a different value in eax. However, [eax+0] is always the same. I want to use this return value to find the block type, either as a fixed numeric ID or a string name.
What should I do? Previously, I found a "block ID" that changes with each map, but I didn't realize it was different for each map. I spent a whole night creating an assembly script to scan the blocks in a 21x21x21 area around me and record the coordinates of the nearest non-air block. I plan to use this to create an auto-bridging script that extends a block under my feet based on the nearest block.
But... when I switched to a different map, I found that the ID had changed, and this is not what I wanted.
I have the ability to create an assembly script for auto-bridging based on the nearest block. I've completed every other step of this function, but I haven't been able to find the block ID corresponding to this return value.
This is the last step, and I'm even considering making an assembly script that inputs an address and traverses four or five levels deep to find a string and return the offset—something absurd like that. But I feel there has to be a simpler way... Please help me
|
|