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 


Lua Button Activate Script

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
KalasWD
Expert Cheater
Reputation: 0

Joined: 29 May 2016
Posts: 230

PostPosted: Fri May 19, 2017 7:36 am    Post subject: Lua Button Activate Script Reply with quote

For example this is a Script for Infinite Health, I want to add a Button in the generate Trainer section so when I click the button, It will activate this script and disable it as well,

Code:
{ Game   : Prey.exe
  Version:
  Date   : 2017-05-17
  Author : Kalas

  This script does blah blah blah
}

[ENABLE]

aobscanmodule(PlayerHealthAOB,Prey.exe,F3 0F 11 73 40 48 8B 05)
alloc(newmem,$1000,PlayerHealthAOB)

label(code)
label(return)

newmem:

code:
  movss [rbx+40],xmm0
  jmp return

PlayerHealthAOB:
  jmp newmem
return:
registersymbol(PlayerHealthAOB)

[DISABLE]

PlayerHealthAOB:
  db F3 0F 11 73 40

unregistersymbol(PlayerHealthAOB)
dealloc(newmem)
[/quote]
Back to top
View user's profile Send private message
Corroder
Master Cheater
Reputation: 8

Joined: 10 Apr 2015
Posts: 408

PostPosted: Fri May 19, 2017 8:05 am    Post subject: Reply with quote

Maybe something like this :
Code:

function infinityHealth()
    local script=[[
        your AA script here)
    ]]
    autoAssemble(script);
end

UDF1.CEButton1.onClick = infinityHealth

_________________
I can't do it now because I don't know yet and because You knew it before me. There is heaven above the sky.
Back to top
View user's profile Send private message
jededias
!BEWARE! Deletes post on answer
Reputation: 0

Joined: 15 Apr 2017
Posts: 17

PostPosted: Mon May 22, 2017 12:53 pm    Post subject: Re: Lua Button Activate Script Reply with quote

KalasWD you can help me with AOB SCAN?
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