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 


Change Values When Enabled

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

Joined: 14 Jun 2016
Posts: 4

PostPosted: Tue Jun 14, 2016 1:40 pm    Post subject: Change Values When Enabled Reply with quote

I just need a simple script that whenever I enable it will change these addresses to these values:

nba2k16.exe+8BE68DC - 4
nba2k16.exe+8BE6940 - .2
nba2k16.exe+8C34830 - 40

Really simple, hope someone will be able to help me out!
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

Joined: 09 May 2003
Posts: 25287
Location: The netherlands

PostPosted: Tue Jun 14, 2016 3:59 pm    Post subject: Reply with quote

are these all floats or just the 2nd one ?

anyhow, in case they are all float:
Code:

[enable]
nba2k16.exe+8BE68DC:
dd (float)4

nba2k16.exe+8BE6940:
dd (float)0.2

nba2k16.exe+8C34830:
dd (float)40

[disable]

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
CorruptedCopper
How do I cheat?
Reputation: 0

Joined: 14 Jun 2016
Posts: 4

PostPosted: Wed Jun 15, 2016 12:17 am    Post subject: Reply with quote

Dark Byte wrote:
are these all floats or just the 2nd one ?

anyhow, in case they are all float:
Code:

[enable]
nba2k16.exe+8BE68DC:
dd (float)4

nba2k16.exe+8BE6940:
dd (float)0.2

nba2k16.exe+8C34830:
dd (float)40

[disable]


The last one is a Floater, the first one is a byte, and the second one is a double.
Back to top
View user's profile Send private message
hhhuut
Grandmaster Cheater
Reputation: 6

Joined: 08 Feb 2015
Posts: 607

PostPosted: Wed Jun 15, 2016 1:53 am    Post subject: Reply with quote

Code:
[enable]
nba2k16.exe+8BE68DC:
db 4

nba2k16.exe+8BE6940:
dq (double)0.2

nba2k16.exe+8C34830:
dd (float)40

[disable]
Back to top
View user's profile Send private message
CorruptedCopper
How do I cheat?
Reputation: 0

Joined: 14 Jun 2016
Posts: 4

PostPosted: Wed Jun 15, 2016 11:34 am    Post subject: Reply with quote

hhhuut wrote:
Code:
[enable]
nba2k16.exe+8BE68DC:
db 4

nba2k16.exe+8BE6940:
dq (double)0.2

nba2k16.exe+8C34830:
dd (float)40

[disable]


Thanks for helping out on that thread, but I am looking to expand it so I can set many things.

One of the values I want to set is a 2 Byte, which looks weird when I try to get the Address. How would I do that?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

Joined: 09 May 2003
Posts: 25287
Location: The netherlands

PostPosted: Wed Jun 15, 2016 11:49 am    Post subject: Reply with quote

a 2 byte is dw

e.g.
dw a000

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
CorruptedCopper
How do I cheat?
Reputation: 0

Joined: 14 Jun 2016
Posts: 4

PostPosted: Wed Jun 15, 2016 9:26 pm    Post subject: Reply with quote

Dark Byte wrote:
a 2 byte is dw

e.g.
dw a000


I'm a little confused on how I would set this up in a script.

This is what I currently have in my tables, to implement these changes into a script, what would I need to do?

Screenshot of Addresses and Values I want are attached.
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