 |
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
Dr.Disrespect Grandmaster Cheater
Reputation: 3
Joined: 17 Feb 2016 Posts: 526
|
Posted: Sun Mar 27, 2016 11:02 am Post subject: Is this possible? Will pay if anyone can help me. Thanks. |
|
|
I have been around for two days and keep asking naive questions, it can be bothersome to some people. So, I want to solve my problem once it for all.
I am willing to pay the first person who can help me solve it. I want to pay for it because I really want to solve the problem and learn from it, not because I have spare money to spend. We can discuss the price in private. Thanks in advance. If you are interested after reading this post, my email address is: [email protected]. If you live near St. Louis, MO, US, then I can meet up with you and pay you in person. Ohterwise, paypal or bank transfer is preferred.
Here is my issue:
The game has 10 tribes, and there is a time system based on date(sorry for my English, I think you get the idea though ). When the date changes, each tribe will get 100 gold. The module address that triggers the increment of gold is: game.exe+10000. And you must already know that "game.exe+10000" runs 10 times when the date changes since there are 10 tribes. Each tribe has its unique ID, which is from "0" to "9" respectively.
Now, here is what I want to do: I want to change the money system of the game that only 5 tribes will get a gold increment when the date changes. Those 5 tribes will be randomly chosen.
So, here is the solution that I figured out, but there maybe better ways of doing it:
1. I want to generate 5 random numbers within the range from 0 to 9. Because the numbers within that range are the unique IDs of the 10 tribes.
2. I want to compare those 5 randomly generated numbers to the unique IDs of the tribes. Remember "game.exe+10000" runs 10 times because there are 10 tribes. But I just want the 5 numbers to generate only once when date changes, not 10 times .
3. If the randomly generated number matches the unique ID of the tribe, I will change the increment from 100 to 0, which means no gold increment. This step is the only step that I am capable of doing it by myself.
I hope my explanation is clearly enough for you to understand my problem. Thank you all.
Update:
edited the post.
|
|
Back to top |
|
 |
Zanzer I post too much
Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Sun Mar 27, 2016 6:44 pm Post subject: |
|
|
Post the AOB Injection template.
And explain what registers hold which values.
|
|
Back to top |
|
 |
Cake-san Grandmaster Cheater
Reputation: 8
Joined: 18 Dec 2014 Posts: 541 Location: Semenanjung
|
Posted: Sun Mar 27, 2016 6:57 pm Post subject: |
|
|
This will run the code only 5 times.
example code:
Code: |
label(_count)
label(reset)
newmem:
inc [_count]
cmp [_count],05
jle originalcode
cmp [_count],0A
je reset
jmp return
originalcode:
blablabla
jmp return
_count:
dd 0
reset:
mov [_count],0
jmp return
|
Updated
This will make every 5 tribes get money and the other 5 don't get any in turn .
let say eax contain the unique ID.
Code: |
label(_count)
label(_ID)
label(_1)
label(_2)
label(_3)
label(_4)
label(_5)
newmem:
cmp eax,[_ID]
je return
cmp eax,[_ID+04]
je return
cmp eax,[_ID+08]
je return
cmp eax,[_ID+0A]
je return
cmp eax,[_ID+10]
je return
inc [_count]
cmp [_count],05
jle originalcode
jmp return
originalcode:
blablabla
cmp [_count],01
je _1
cmp [_count],02
je _2
cmp [_count],03
je _3
cmp [_count],04
je _4
cmp [_count],05
je _5
jmp return
_1:
mov [_ID],eax
jmp return
_2:
mov [_ID+4],eax
jmp return
_3:
mov [_ID+8],eax
jmp return
_4:
mov [_ID+C],eax
jmp return
_5:
mov [_ID+10],eax
mov [_count],0
jmp return
_count:
dd 0
_ID:
dd 0 0 0 0 0
|
_________________
...
Last edited by Cake-san on Sun Mar 27, 2016 7:28 pm; edited 5 times in total |
|
Back to top |
|
 |
Dr.Disrespect Grandmaster Cheater
Reputation: 3
Joined: 17 Feb 2016 Posts: 526
|
Posted: Sun Mar 27, 2016 7:00 pm Post subject: |
|
|
Thanks for the reply. I don't have my desktop with me right now, I will post a detailed reply when I get home.
|
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|