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 


newbie needs help creating generic trainer

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

Joined: 09 Dec 2021
Posts: 1

PostPosted: Thu Dec 09, 2021 9:50 am    Post subject: newbie needs help creating generic trainer Reply with quote

Help please
The pointer to address works in CE, not in my trainer.
Below is my lua script from CE generic trainer generator, nothing happens when I click the button or press the hotkey.


===================
addresslist=getAddressList()
memrec7=addresslist.getMemoryRecordByID(7)

memrec7_hotkey0=memrec7.getHotkeyByID(0)

function onHotkey0(Hotkey)
--Executed before the hotkey is handled
CETrainer_1.CHEAT0.setActive(true, 1500)
if gPlaySoundOnAction then
playSound(gActivateSound)
end
end

memrec7_hotkey0.onHotkey=onHotkey0
CETrainer_1.SEPERATOR.Visible=false

getAutoAttachList().add("MAP.exe")
gPlaySoundOnAction=false
CETrainer_1.fixDPI() --remove this if you have already taken care of DPI issues yourself
CETrainer_1.show()
function CloseClick()
--called by the close button onClick event, and when closing the form
closeCE()
return caFree --onClick doesn't care, but onClose would like a result
end

function CETrainer_CEButton1Click(sender)
WriteInteger("[[[[[mono.dll+00500AC8]+20]+318]+8]+58+]+24", GetProperty(CETrainer_CEEdit1,"Text"))
end
=============



textbox.jpg
 Description:
 Filesize:  4.28 KB
 Viewed:  968 Time(s)

textbox.jpg


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