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 


Increase value with slider [value type is double]

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
daspamer
Grandmaster Cheater Supreme
Reputation: 54

Joined: 13 Sep 2011
Posts: 1588

PostPosted: Tue Aug 21, 2012 3:07 am    Post subject: Increase value with slider [value type is double] Reply with quote

Hey,
I was wondering if its possible to increase value that its type is double
So I got the following AA
Code:
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
aobscan(_aob1,9A 99 99 99 99 99 C9 3F 9E EF A7 C6 4B 37 D9 3F 12 83 C0 CA A1 45 DE 3F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 F0 3F 00 00 00 00 00 00 F8 3F 00 00 00 00 00 00 F0 3F 66 66 66 66 66 66 D6 3F)

_aob1:
db 7B 14 AE 47 E1 7A 84 3F 00 00 00 00 00 00 08 40 00 00 00 00 00 00 08 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 14 40 00 00 00 00 00 00 00 40 00 00 00 00 00 00 14 40
[DISABLE]
//code from here till the end of the code will be used to disable the cheat

I was wondering if I can add a slider to the trainer that will increase the value by 0.05.
Do I need convert this to LUA?
Code:
function CEButton1Click(sender)
showMessage("START?")
results=AOBScan("9A 99 99 99 99 99 C9 3F 9E EF A7 C6 4B 37 D9 3F 12 83 C0 CA A1 45 DE 3F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 F0 3F 00 00 00 00 00 00 F8 3F 00 00 00 00 00 00 F0 3F 66 66 66 66 66 66 D6 3F")
if (results~=nil) then
count=stringlist_getCount(results)
if (count>0) then

for i = 0, (count-1), 1 do
address =stringlist_getString(results,i)
pause()
writeBytes(address, 0x7B 0x14 0xAE 0x47 0xE1 0x7A 0x84 0x3F 0x00 0x00 0x00 0x00 0x00 0x00 0x08 0x40 0x00 0x00 0x00 0x00 0x00 0x00 0x08 0x40 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x14 0x40 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x40 0x00 0x00 0x00 0x00 0x00 0x00 0x14 0x40)
unpause()
 end
end
object_destroy(results)
results=nil
end
showMessage("Success")
end

So if I do that..
I have track bar
Code:
function CETrackBar1Change(sender)
//Here I don't know what to do..like what to write..
end


the real values of this at the
start is 0.2
then 0.394
then 0.473 (or values that close to that)
then value 0
again value 0
then value 1
then value 1.5
and again 1
(I wrote from membery, so it might not be exacly this.)
So besically I want it to increase 0.394 and 0.473 by 0.05 when when dragging to each station (no idea how explain but I hope you got my point).
Back to top
View user's profile Send private message Visit poster's website
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