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 


Adjust CE's speedhack automatic

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
chandest
Newbie cheater
Reputation: 0

Joined: 27 Feb 2013
Posts: 17

PostPosted: Thu Apr 25, 2013 3:09 am    Post subject: Adjust CE's speedhack automatic Reply with quote

Hi guys.

I'm in need of a script which will adjust the CE speedhack of a program every 10th minute or so.
Would somebody with knowledge to lua be able to hint me in the right direction?

Regards!

_________________
The king is dead. Long live the king!
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

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

PostPosted: Thu Apr 25, 2013 3:20 am    Post subject: Reply with quote

use a timer and speedhack_setSpeed

This example sets a new speed every 10 minutes. First 2.0, then 3.0, 2.0, 1.0 and then 2.0 again
Code:

speeds={}
speeds[0]=2.0
speeds[1]=3.0
speeds[2]=2.0
speeds[3]=1.0
speedselect=1

function setNewSpeed()
  speedhack_setSpeed(speeds[speedselect])
  speedselect=(speedselect+1) % 4
end

t=createTimer(nil)
timer_onTimer(t, setNewSpeed)
timer_setInterval(t, 10*60*1000) --10 minutes
timer_setEnabled(t, true);


_________________
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
chandest
Newbie cheater
Reputation: 0

Joined: 27 Feb 2013
Posts: 17

PostPosted: Thu Apr 25, 2013 4:10 am    Post subject: Reply with quote

Dark Byte wrote:
use a timer and speedhack_setSpeed

This example sets a new speed every 10 minutes. First 2.0, then 3.0, 2.0, 1.0 and then 2.0 again


Thank you for the quick response! Really appreciate it. Have a good day Smile

_________________
The king is dead. Long live the king!
Back to top
View user's profile Send private message
Remember
How do I cheat?
Reputation: 0

Joined: 03 Apr 2015
Posts: 4

PostPosted: Fri Apr 03, 2015 2:04 pm    Post subject: speedhack Reply with quote

if I want to set it on only 60 seconds without activating setNewSpeed that at x0 the process ends at 60sec and returns to x10
Back to top
View user's profile Send private message
alanze
Advanced Cheater
Reputation: 3

Joined: 03 Oct 2012
Posts: 50

PostPosted: Mon Apr 06, 2015 7:43 am    Post subject: Re: speedhack Reply with quote

Remember wrote:
if I want to set it on only 60 seconds without activating setNewSpeed that at x0 the process ends at 60sec and returns to x10


This code will set the speed to 20, then after 1 minute will set to 1:
Code:

function resetSpeed()
  if (t) then
    -- t.Enabled=false
    t.Destroy()
    t=nil
  end
  speedhack_setSpeed(1) -- set speed to 1
end

t=createTimer(nil, false)
t.onTimer=resetSpeed
t.Interval=60000        -- 1 minute

speedhack_setSpeed(20)  -- set speed to 20
t.Enabled=true        -- after 1 minute start "resetSpeed()"

Back to top
View user's profile Send private message
Remember
How do I cheat?
Reputation: 0

Joined: 03 Apr 2015
Posts: 4

PostPosted: Mon Apr 13, 2015 5:07 pm    Post subject: Re: speedhack Reply with quote

Thanks alanze Smile
Back to top
View user's profile Send private message
grooup
How do I cheat?
Reputation: 0

Joined: 18 Apr 2015
Posts: 1

PostPosted: Sat Apr 18, 2015 6:52 am    Post subject: Reply with quote

Hi guys,

I have questions :

Is it possible to load / open another CT file use a button function in main trainer already made?.. Any examples ?

_________________
dolii
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

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

PostPosted: Sat Apr 18, 2015 7:33 am    Post subject: Reply with quote

Quote:

loadTable(filename, merge OPTIONAL): Loads a .ct or .cetrainer. If merge is provided and set to true it will not clear the old table

_________________
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
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