FileForums

FileForums (https://fileforums.com/index.php)
-   Game Coders (https://fileforums.com/forumdisplay.php?f=36)
-   -   Trainer making problem ... (https://fileforums.com/showthread.php?t=82448)

br0wn 06-11-2007 23:15

Trainer making problem ...
 
The game I'm playing around with is World in Conflict.

I'm trying to change how many reinforcements I can have, I'm unsure how to patch this exactly. What I've done so far is patch so every time I buy something I add 255 more reinforcements. I'm unsure how to just forcefully add 20,000 or something without having to keep buying something as this can get messy.

The line I've been playing with is: add [ecx+0c],eax
What I've done is made a call to a cave code from there which looks like:

add [ecx+0c],ff
ret
nop

Which works like it should, every time I buy something it adds 255.
I'd just like to know if there's a method for adding just to the reinforcements and not every time I buy something have it add.

It seems that in order to set any value I want I have to have something happen in came to execute the code.

Any tips on how to do this?
Thanks

pikachu5501 12-11-2007 10:34

if i understand what you want to do is to force a value instead of adding it constantly. Here my suggestion, assuming that ecx+0c is the adress you want to write to:


mov [ecx+0c], 00004E20
ret
nop


All times are GMT -7. The time now is 19:48.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
FileForums @ https://fileforums.com