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 


Help with editing Pokemon Omircon value.

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
cyberwolf575
How do I cheat?
Reputation: 0

Joined: 14 Apr 2014
Posts: 3

PostPosted: Mon Apr 14, 2014 7:33 pm    Post subject: Help with editing Pokemon Omircon value. Reply with quote

Hi, so I was looking around and I managed to find the value for money, and using the same type of scan I was able to find the value for exp that you earn at the end of each battle, however changing that value doesn't seem to make any effect, even after I change it, the exp gain is still what the game shows on screen.


There are 2 values that change when the exp gain is happening, if the game shows you have gained 65 exp, the values will change to 65, then once u press enter it actually adds the exp to the pokemon.

Changing the 65 to anything else, seems to make 0 effect as the pokemon still gains only 65 exp.

Any help would be awesome, I am not a complete noob to CE, but I am def not as good as some people on here, who Im sure could figure this silly problem out.

To search for the values I used the following type, which is taken from a forum post I saw a long time ago, and If I could remember the name of the person who wrote it, I would credit him. Thanks to him.


Code:
alloc(TypeName,256)
alloc(ByteSize,4)
alloc(ConvertRoutine,1024)
alloc(ConvertBackRoutine,1024)

TypeName:
db 'Type * 2',0

ByteSize:
dd 4

//The convert routine should hold a routine that converts the data to an nteger (in eax)
//function declared as: stdcall int ConvertRoutine(unsigned char *input);

//Note: Keep in mind that this routine can be called by multiple threads at the same time.

ConvertRoutine:
[32-bit]
push ebp
mov ebp,esp
push ecx
mov ecx,[ebp+8]
[/32-bit]

//at this point ecx contains the address where the bytes are stored

//put the bytes into the eax register
mov eax,[ecx] //second fun fact, addressing with 32-bit registers doesn't work in 64-bit, it becomes a 64-bit automatically (most of the time)
shr eax,1 //shift right by 1 bit (divide by 2)

//and now exit the routine
[64-bit]
ret
[/64-bit]
[32-bit]
pop ecx
pop ebp
ret 4
[/32-bit]

//The convert back routine should hold a routine that converts the given integer back to a row of bytes (e.g when the user wats to write a new value)
//function declared as: stdcall void ConvertBackRoutine(int i, unsigned char *output);
ConvertBackRoutine:
[32-bit]
push ebp
mov ebp,esp
push edx //save the registers
push ecx
mov edx,[ebp+0c]
mov ecx,[ebp+08]
[/32-bit]

//at this point edx contains the address to write the value to
//and ecx contains the value

push eax
push edx


mov edx,[edx] //edx now contains the original value
and edx,7 //only save the first 3 bits

mov eax,ecx //eax gets the user input value
shl eax,1 //shift left by 1 bit (multiply by 2)
or eax,edx //add the bits of the original value

pop edx
mov [edx],eax //write the new value into the old value
pop eax

[64-bit]
//everything is back to what it was, so exit
ret
[/64-bit]

[32-bit]
//cleanup first
pop ecx
pop edx
pop ebp
ret 8
[/32-bit]
Back to top
View user's profile Send private message
Gniarf
Grandmaster Cheater Supreme
Reputation: 43

Joined: 12 Mar 2012
Posts: 1285

PostPosted: Mon Apr 14, 2014 9:14 pm    Post subject: Reply with quote

This thread is for you: http://forum.cheatengine.org/viewtopic.php?t=572649

Simplest way is probably to edit the opponent database and change the amount of xp they give, or edit the xp calculation formula.

_________________
DO NOT PM me if you want help on making/fixing/using a hack.
Back to top
View user's profile Send private message
cyberwolf575
How do I cheat?
Reputation: 0

Joined: 14 Apr 2014
Posts: 3

PostPosted: Mon Apr 14, 2014 11:27 pm    Post subject: Reply with quote

Thanks! I managed to open the file, now its just to figure out where the exp gain is. There is so much code that my head feels like its going to explode. On to going through it all Very Happy
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking 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