Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Is this possible? Will pay if anyone can help me. Thanks.

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Dr.Disrespect
Grandmaster Cheater
Reputation: 3

Joined: 17 Feb 2016
Posts: 526

PostPosted: Sun Mar 27, 2016 11:02 am    Post subject: Is this possible? Will pay if anyone can help me. Thanks. Reply with quote

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 Very Happy). 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. Sad

I hope my explanation is clearly enough for you to understand my problem. Thank you all.

Update:
edited the post.
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Sun Mar 27, 2016 6:44 pm    Post subject: Reply with quote

Post the AOB Injection template.
And explain what registers hold which values.
Back to top
View user's profile Send private message
Cake-san
Grandmaster Cheater
Reputation: 8

Joined: 18 Dec 2014
Posts: 541
Location: Semenanjung

PostPosted: Sun Mar 27, 2016 6:57 pm    Post subject: Reply with quote

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
View user's profile Send private message
Dr.Disrespect
Grandmaster Cheater
Reputation: 3

Joined: 17 Feb 2016
Posts: 526

PostPosted: Sun Mar 27, 2016 7:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites