Hazzper How do I cheat?
Reputation: 0
Joined: 04 Aug 2008 Posts: 6
|
Posted: Mon Nov 17, 2008 4:08 pm Post subject: Question regarding scripting in Game Trainer Studio. |
|
|
Hi, I'm still working on that trainer of mine. I achieved my previous goal, which was to make the trainer display health without the person who uses it to be able to edit it. Now, I want to make it more advanced.
So, you see, the game usually runs in fullscreen as it's more comfortable that way. However, keeping the trainer running would require me to play in windowed mode so I can see stuff. Then I decided to use GTS's scripting features. For a certain amount of HP, the trainer should change a string in game. This string is useless otherwise but it could display the information I need. I found it's address and I wrote the code. Unfortunately, GTS doesn't have a help file and all I could look at were the demo trainers included with it. That's the script I made up:
| Code: | ReadMemory DWORD 5A54C2
<code> .if eax == 00
Poke 129060B 7C 7C 4F 48 50 00
<code> mov Version, 1
<code> .elseif eax == 1
Poke 129060B 7C 7C 31 48 50 00
<code> mov Version, 2
<code> .elseif eax == 2
Poke 129060B 7C 7C 32 48 50 00
<code> mov Version, 3
<code> .elseif eax == 3
Poke 129060B 7C 7C 7C 33 48 50 00
<code> mov Version, 4
<code> .elseif eax == 4
Poke 129060B 7C 7C 7C 34 48 50 00
<code> mov Version, 5
<code> .elseif eax == 5
Poke 129060B 7C 7C 7C 7C 35 48 50 00
<code> .elsif
<code> .endif |
It's a custom code I set up for an EditBox. It looks fine for me, it reads the health and for every one of the cases listed, it sets 129060B (the string) to the text I want it to. Health, that is. It appears something's wrong and it can't be compiled. It's an EditBox and I thought it couldn't compile because that was I had left it empty. I added Func s.SetText 'text goes here' in the beginning and it compiled. I ran it, but the code seemed to do nothing. I am sure those addresses and values are correct as they work fine in Cheat Engine.
Where am I wrong?
_________________
no |
|