LOH2017 How do I cheat?
  Reputation: 0
  Joined: 09 Dec 2021 Posts: 1
 
  | 
		
			
				 Posted: Thu Dec 09, 2021 9:50 am    Post subject: newbie needs help creating generic trainer | 
				       | 
			 
			
				
  | 
			 
			
				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
 
=============
	
  
	 
	
	
		
	 
	
		|  Description: | 
		
			
		 | 
	 
	
		|  Filesize: | 
		 4.28 KB | 
	 
	
		|  Viewed: | 
		 1301 Time(s) | 
	 
	
		
  
 
  | 
	 
	 
	 
 | 
			 
		  |