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 


How to ahcieve this ? need help

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

Joined: 01 May 2013
Posts: 6

PostPosted: Thu Jun 20, 2013 7:46 am    Post subject: How to ahcieve this ? need help Reply with quote

HI, how can I make a code which can do this:
IF "00ecf2c0' = 5
write "00ec8805" = 1
after a few millisecond
write '00ec8805' = 5000

Is there any way to achieve this ?
thx for respone Very Happy

sry for bad egnlish

Code:
function writeif(sender)
if readInteger("00ecf2c0")==5 then   // <- =5
writeInteger("[[00ec8005]+8f4]+50", 1)  //<- write 5, but how can i write =1 after a few millisecond?
  end
end

t=createTimer(nil, true)
timer_onTimer(t, writeif)
timer_setInterval(t, 100) --check every 100 milliseconds
Very Happy Very Happy
Back to top
View user's profile Send private message
daspamer
Grandmaster Cheater Supreme
Reputation: 54

Joined: 13 Sep 2011
Posts: 1588

PostPosted: Thu Jun 20, 2013 10:14 am    Post subject: Reply with quote

Code:
function writeif(sender)
   if readInteger("00ecf2c0")==5 then
      if readInteger("[[00ec8005]+8f4]+50")==1 then
         writeInteger("[[00ec8005]+8f4]+50", 5000)
      else
         writeInteger("[[00ec8005]+8f4]+50", 1)
      end
   end
end

t=createTimer(nil, true)
timer_onTimer(t, writeif)
timer_setInterval(t, 100)

_________________
I'm rusty and getting older, help me re-learn lua.
Back to top
View user's profile Send private message Visit poster's website
F34Ek
How do I cheat?
Reputation: 0

Joined: 01 May 2013
Posts: 6

PostPosted: Thu Jun 20, 2013 11:17 am    Post subject: Reply with quote

DaSpamer wrote:
Code:
function writeif(sender)
   if readInteger("00ecf2c0")==5 then
      if readInteger("[[00ec8005]+8f4]+50")==1 then
         writeInteger("[[00ec8005]+8f4]+50", 5000)
      else
         writeInteger("[[00ec8005]+8f4]+50", 1)
      end
   end
end

t=createTimer(nil, true)
timer_onTimer(t, writeif)
timer_setInterval(t, 100)



THx for respones Very Happy but isnt this mean if "00ecf2c0" is not =1, [[00ec8005]=1.
But what i mean is that, after writeInteger("[[00ec8005]+8f4]+50", 5000, set a time, like 500 milisec, then writeInteger("[[00ec8005]+8f4]+50", 1.

thanks Smile
Back to top
View user's profile Send private message
daspamer
Grandmaster Cheater Supreme
Reputation: 54

Joined: 13 Sep 2011
Posts: 1588

PostPosted: Thu Jun 20, 2013 12:12 pm    Post subject: Reply with quote

Code:
function writeif(sender)
   if readInteger("00ecf2c0")==5 then
      if readInteger("[[00ec8005]+8f4]+50")==1 then
        writeInteger("[[00ec8005]+8f4]+50", 5000)
      timer_setInterval(sender, 500)
      else
        writeInteger("[[00ec8005]+8f4]+50", 1)
      timer_setInterval(sender, 100)
      end
   end
end

t=createTimer(nil, true)
timer_onTimer(t, writeif)
timer_setInterval(t, 100)

if "00ecf2c0 == 1 then it'll write 5000.
Else it'll write 1 (if its not 1).
sender = timer.

_________________
I'm rusty and getting older, help me re-learn lua.
Back to top
View user's profile Send private message Visit poster's website
F34Ek
How do I cheat?
Reputation: 0

Joined: 01 May 2013
Posts: 6

PostPosted: Thu Jun 20, 2013 7:17 pm    Post subject: Reply with quote

DaSpamer wrote:
Code:
function writeif(sender)
   if readInteger("00ecf2c0")==5 then
      if readInteger("[[00ec8005]+8f4]+50")==1 then
        writeInteger("[[00ec8005]+8f4]+50", 5000)
      timer_setInterval(sender, 500)
      else
        writeInteger("[[00ec8005]+8f4]+50", 1)
      timer_setInterval(sender, 100)
      end
   end
end

t=createTimer(nil, true)
timer_onTimer(t, writeif)
timer_setInterval(t, 100)

if "00ecf2c0 == 1 then it'll write 5000.
Else it'll write 1 (if its not 1).
sender = timer.


Ohh Thanks Very Happy Its works:D Thx for helping
Back to top
View user's profile Send private message
daspamer
Grandmaster Cheater Supreme
Reputation: 54

Joined: 13 Sep 2011
Posts: 1588

PostPosted: Thu Jun 20, 2013 7:47 pm    Post subject: Reply with quote

np
_________________
I'm rusty and getting older, help me re-learn lua.
Back to top
View user's profile Send private message Visit poster's website
Squidface
Newbie cheater
Reputation: -1

Joined: 19 Jan 2013
Posts: 20

PostPosted: Tue Jun 25, 2013 6:28 pm    Post subject: Reply with quote

Hey "DaSpamer" i need your help
Back to top
View user's profile Send private message Send e-mail
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