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 


Please, help.. Anyone..

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

Joined: 10 Aug 2011
Posts: 6

PostPosted: Thu Aug 11, 2011 6:01 am    Post subject: Please, help.. Anyone.. Reply with quote

Can me help someone? I am new at CE. I need put to timer script.. I need this: if value >40, then value=40. It is possible? How can i do this? I am not programmer, but i will try.. Maybe someone can write me code and what i have to do? Thanks for all! Smile
Back to top
View user's profile Send private message
GH*master
Expert Cheater
Reputation: 8

Joined: 10 Jan 2008
Posts: 159

PostPosted: Thu Aug 11, 2011 1:15 pm    Post subject: Reply with quote

Code:

myAddress = "Test.exe+5B5A4"

function OnTimer(sender)
   if readInteger(myAddress)>40 then
      writeInteger(myAddress,40)
   end
end

function onOpenProcess(processID)
   timer = createTimer(nil)
   timer_setInterval(timer, 100)
   timer_onTimer(timer, OnTimer)
end

strings_add(getAutoAttachList(), "Test.exe")
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