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 


Max mana into current mana

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

Joined: 25 Sep 2020
Posts: 2

PostPosted: Fri Oct 30, 2020 8:36 am    Post subject: Max mana into current mana Reply with quote

Hi I know this looks pathetic but beginings are hard, I want to add max mana into my current mana, I got both pointers but I have no idea how to make it work so far I tried a few things like:

Code:

[ENABLE]
mov eax,[11822BE8+00000120] // this is max mana
mov [11822BE8+0000011C], eax // and max mana goes into current mana

[DISABLE]
mov eax,[11822BE8+00000120] //same thing it reffils mana
mov [11822BE8+0000011C], eax


this can't be toggled.
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4719

PostPosted: Fri Oct 30, 2020 11:18 am    Post subject: Reply with quote

The Auto Assembler (AA) doesn't execute any of the code you write- it only changes values in the game.
Code:
1234:  // at the address 1234, sequentially write the following data to it:
  mov eax,[ebx]   // this assembles to the bytes 8b 03
e.g. this code writes the bytes "8b 03" to the address "1234". It doesn't execute this code.

There are pseudoinstructions CE adds that should be able to do what you want:
Code:
11822BE8+0000011C:
  readmem(11822BE8+00000120,4)
If the AA doesn't like this address syntax of hex+hex, resolve it manually (i.e. 11822D04 / 11822D08 ).

You may want to look into code injection instead so you don't have to keep toggling the script to copy max mana. Try the CE tutorial. There are plenty of guides online if you need help.

ps: those are addresses, not pointers.

_________________
I don't know where I'm going, but I'll figure it out when I get there.
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 Lua Scripting 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