| 
			
				|  | Cheat Engine The Official Site of Cheat Engine
 
 
 |  
 
	
		| View previous topic :: View next topic |  
		| Author | Message |  
		| daspamer Grandmaster Cheater Supreme
 
  Reputation: 54 
 Joined: 13 Sep 2011
 Posts: 1588
 
 
 | 
			
				|  Posted: Sun Dec 01, 2013 6:04 pm    Post subject: |   |  
				| 
 |  
				|  	  | mohanad3egy wrote: |  	  | tyvm brooo | 
 Your welcome mate.
 _________________
 
 I'm rusty and getting older, help me re-learn lua. |  |  
		| Back to top |  |  
		|  |  
		| daspamer Grandmaster Cheater Supreme
 
  Reputation: 54 
 Joined: 13 Sep 2011
 Posts: 1588
 
 
 | 
			
				|  Posted: Mon Dec 02, 2013 11:29 am    Post subject: |   |  
				| 
 |  
				| Hey guys, I've made an update to the trainer script. It much clearer and easier to use.
 This is the current trainer script (lot better, read first post again).
 
  	  | Code: |  	  | local HackData = {}; function HackData:HacksData()
 
 self.trainer.form.Caption = [[213]]
 self.trainer.title.Caption = [[123]]
 self.trainer.credits.Caption = [[ Hack was made by zxc]]
 self.hacktable =    {
 
 --Entry 0:
 {'lmao',[[luacall(print(1))]],[[lol]],[[asdasdasa]], 'true',[[luacall(print(3211))]],[[asdasdwq]]}
 }
 for i=1,#self.hacktable do
 strings_add(self.listitems, self.hacktable[i][1]);
 self.hackstatus[i] = false;
 end
 end
 function HackData:Info()
 self.activateall = false; -- State.
 self.hackstatus = {};
 self.trainer = {};
 self.trainer.form = createForm(false);
 self.trainer.form.onClose = function (sender) sender.hide(); closeCE(); end;
 self.trainer.form.width = 400;
 self.trainer.form.height = 300;
 setProperty(self.trainer.form, 'Position', 'poScreenCenter');
 setProperty(self.trainer.form, 'BorderIcons', '[biSystemMenu]');
 setProperty(self.trainer.form, 'BiDiMode', 'bdLeftToRight');
 self.trainer.credits = createLabel(self.trainer.form);
 self.trainer.title = createLabel(self.trainer.form);
 local FontHeight = getProperty(self.trainer.title, 'Font');
 setProperty(FontHeight , 'Color', 0x000000FE);
 setProperty(FontHeight , 'Style', '[fsBold]');
 setProperty(FontHeight , 'Height', '20');
 self.trainer.group = createGroupBox(self.trainer.form);
 self.trainer.subtitle = createLabel(self.trainer.group);
 local FontHeight = getProperty(self.trainer.subtitle, 'Font');
 setProperty(FontHeight , 'Color', 0x00007F00);
 setProperty(FontHeight , 'Style', '[fsBold]');
 setProperty(FontHeight , 'Height', '16');
 self.trainer.desctitle = createLabel(self.trainer.group);
 local FontHeight = getProperty(self.trainer.desctitle, 'Font');
 setProperty(FontHeight , 'Color', 0x00F21200);
 self.trainer.desc = createLabel(self.trainer.group);
 self.trainer.list = createListBox(self.trainer.group);
 self.trainer.enable = createButton(self.trainer.group);
 self.trainer.enableall = createButton(self.trainer.group);
 local x,y = control_getSize(self.trainer.form);
 self.trainer.credits.left = 5;
 self.trainer.credits.top = y - 17;
 self.trainer.title.left = 10;
 self.trainer.title.top = 2.5;
 self.trainer.group.width = math.floor(x * 0.965);
 self.trainer.group.height = math.floor(y * 0.85);
 self.trainer.group.left = 5;
 self.trainer.group.top = math.floor((y * 1.095) - y);
 self.trainer.group.caption = 'Hacks';
 self.trainer.subtitle.left = 5;
 self.trainer.subtitle.top = 0;
 self.trainer.subtitle.caption = 'Select an hack from the list, then press enable!';
 local x,y = control_getSize(self.trainer.group);
 self.trainer.list.width = math.floor((x * 0.75) - 6);
 self.trainer.list.height = 64;
 self.trainer.list.left = 5;
 self.trainer.list.top = 20;
 local x,y = control_getSize(self.trainer.list);
 self.trainer.enable.width = math.floor((x * 0.34)-6);
 self.trainer.enable.height = 32;
 self.trainer.enable.left = x + 6;
 self.trainer.enable.top = 19;
 self.trainer.enable.caption = 'Enable';
 self.trainer.enable.onClick = function (sender) self:ActivateHack(sender) end;
 self.trainer.enableall.width = math.floor((x * 0.34)-6);
 self.trainer.enableall.height = 32;
 self.trainer.enableall.left = x + 6;
 self.trainer.enableall.top = 53;
 self.trainer.enableall.caption = 'Enable all';
 self.trainer.enableall.onClick = function (sender) self:ActivateAllHacks(sender) end;
 self.trainer.desctitle.left = 5;
 self.trainer.desctitle.top = y + 20;
 self.trainer.desctitle.caption = 'Selected hack description :';
 self.trainer.desc.left = 5;
 self.trainer.desc.top = y + 35;
 self.trainer.desc.caption = 'No hack was selected...';
 self.listitems = self.trainer.list.getItems();
 HackData:HacksData();
 setMethodProperty(self.trainer.list, 'OnSelectionChange', function () HackData:ChangeDesc() end)
 self.trainer.form.show();
 end
 function HackData:ActivateAllHacks(sender)
 self.activateall = true;
 for i = 0, #self.hacktable do
 i = i-1
 self.trainer.list.ItemIndex = i
 HackData:ActivateHack()
 end
 self.activateall = false;
 end
 function HackData:ActivateHack(sender)
 self.listitems = self.trainer.list.getItems();
 local index = self.trainer.list.ItemIndex + 1;
 if (index == 0 or self.hacktable[index] == nil) then
 return;
 end
 if (self.hackstatus[index] == false) then
 if (type(self.hacktable[index][2])=='string') then
 local asm = autoAssemble(self.hacktable[index][2]);
 if (asm == true) then
 if (AobSwapCheck~=true and AobSwapCheck~=nil) then
 AobSwapCheck=nil;
 if self.activateall == false then
 return showMessage('Hack failed to enable!');
 else
 return
 end
 end
 AobSwapCheck=nil;
 if self.activateall == false then
 if (self.hacktable[index][4]~='' and self.hacktable[index][4]~= nil) then
 showMessage(self.hacktable[index][4]);
 else
 showMessage('Hack was enabled successfully!');
 end
 end
 local str = strings_getString(self.listitems, index - 1);
 strings_setString( self.listitems, index - 1, str .. ' - Enabled!' );
 self.hackstatus[index] = true;
 HackData:ChangeDesc()
 else
 if self.activateall == false then
 return showMessage('Hack failed to enable!');
 else
 return
 end
 end
 end
 elseif (self.hackstatus[index] == true and (self.hacktable[index][5] == true or self.hacktable[index][5] == 'true') and self.activateall == false) then
 if (type(self.hacktable[index][6])=='string') then
 local asm = autoAssemble(self.hacktable[index][6]);
 if (asm == true) then
 if (AobSwapCheck~=true and AobSwapCheck~=nil) then
 AobSwapCheck=nil;
 return showMessage('Hack failed to enable!');
 end
 AobSwapCheck=nil;
 if (self.hacktable[index][7]~='' and self.hacktable[index][7]~= nil) then
 showMessage(self.hacktable[index][7]);
 else
 showMessage('Hack was disabled successfully!');
 end
 strings_setString( self.listitems, index - 1, self.hacktable[index][1] );
 self.hackstatus[index] = false;
 else
 return showMessage('Hack failed to disable!');
 end
 end
 end
 HackData:ChangeDesc();
 end
 function HackData:ChangeDesc(sender)
 local index = self.trainer.list.ItemIndex + 1
 if (index == 0 or self.hacktable[index] == nil) then
 return
 end
 if (self.hacktable[index][3] ~= '' and self.hacktable[index][3] ~= nil) then
 self.trainer.desc.caption = self.hacktable[index][3];
 else
 self.trainer.desc.caption = "There's no descriptions available about this hack";
 end
 if (self.hackstatus[index] == true and (self.hacktable[index][5] == false or self.hacktable[index][5] == 'false')) then
 self.trainer.enableall.Enabled = false;
 self.trainer.enable.Enabled = false;
 elseif (self.hackstatus[index] == true and (self.hacktable[index][5] == true or self.hacktable[index][5] == 'true')) then
 self.trainer.enableall.Enabled = false;
 self.trainer.enable.Enabled = true;
 self.trainer.enable.Caption = 'Disable';
 else
 self.trainer.enableall.Enabled = true;
 self.trainer.enable.Enabled = true;
 self.trainer.enable.Caption = 'Enable';
 end
 end
 HackData:Info()
 
 | 
 
 If anyone wants a source or something message me..
 _________________
 
 I'm rusty and getting older, help me re-learn lua. |  |  
		| Back to top |  |  
		|  |  
		| emt21 How do I cheat?
 
 ![]() Reputation: 0 
 Joined: 12 Dec 2013
 Posts: 8
 
 
 | 
			
				|  Posted: Fri Dec 13, 2013 8:26 am    Post subject: trainer |   |  
				| 
 |  
				| My question is I do not know anything on how to add a trainer into the CE6.3, I only know how to copy and paste in array of bytes. But I do want to learn how to make a trainer so I can place codes into a CE and never have to do it again say for instance, I place one code at a time right now and it sucks lol so if u can tell me how to work it that would be great!!! thanks _________________
 
 Always willing to help |  |  
		| Back to top |  |  
		|  |  
		| daspamer Grandmaster Cheater Supreme
 
  Reputation: 54 
 Joined: 13 Sep 2011
 Posts: 1588
 
 
 | 
			
				|  Posted: Fri Dec 13, 2013 8:27 am    Post subject: |   |  
				| 
 |  
				| Insert it to Lua script window (Table > Show Lua script). _________________
 
 I'm rusty and getting older, help me re-learn lua. |  |  
		| Back to top |  |  
		|  |  
		| emt21 How do I cheat?
 
 ![]() Reputation: 0 
 Joined: 12 Dec 2013
 Posts: 8
 
 
 | 
			
				|  Posted: Fri Dec 13, 2013 9:57 am    Post subject: Hi |   |  
				| 
 |  
				| Thanks for that I made a new post because i thought I might of placed this one on the wrong post. I was wanting to make a all in one that does instant upgrades/repairs/unit builds. Just need to be pointed into the right direction For this lol
 _________________
 
 Always willing to help |  |  
		| Back to top |  |  
		|  |  
		| chanish How do I cheat?
 
 ![]() Reputation: 0 
 Joined: 14 Dec 2013
 Posts: 1
 
 
 | 
			
				|  Posted: Sat Dec 14, 2013 7:53 am    Post subject: help a noob |   |  
				| 
 |  
				| hi daSpammer. so I've done everything. I don't understand how this work. whenever i play kingsroad, it's not working. please guide me because i really have no idea about this thing. my knowledge in IT is 0%   |  |  
		| Back to top |  |  
		|  |  
		| ErcHimA Newbie cheater
 
 ![]() Reputation: 0 
 Joined: 07 Oct 2013
 Posts: 18
 Location: In Your Heart :P
 
 | 
			
				|  Posted: Wed Jan 15, 2014 1:53 pm    Post subject: |   |  
				| 
 |  
				| how to change the background color trainer? |  |  
		| Back to top |  |  
		|  |  
		| danrevella Master Cheater
 
  Reputation: 2 
 Joined: 11 Jun 2008
 Posts: 292
 
 
 | 
			
				|  Posted: Thu Feb 06, 2014 12:39 pm    Post subject: |   |  
				| 
 |  
				|  	  | DaSpamer wrote: |  	  | Insert it to Lua script window (Table > Show Lua script). HEY danrevella
 Do you get lazy when making trainers?
 Well no more!
 My CETrainer will generate it for you in seconds, so you won't get lazy! Very Happy
 
 | 
 Hi there
   My problem is not to be lazy in writing trainers... my problem is that I may not use CE in many games alt-tab protected...
   I admit...
 I am the auther of AAT 1.5 (what a shame....
  ) BTW I'm still in search of a solution for this type of games... 
 danrevella
 |  |  
		| Back to top |  |  
		|  |  
		| daspamer Grandmaster Cheater Supreme
 
  Reputation: 54 
 Joined: 13 Sep 2011
 Posts: 1588
 
 
 |  |  
		| Back to top |  |  
		|  |  
		| danrevella Master Cheater
 
  Reputation: 2 
 Joined: 11 Jun 2008
 Posts: 292
 
 
 | 
			
				|  Posted: Fri Feb 07, 2014 3:41 am    Post subject: |   |  
				| 
 |  
				|  	  | DaSpamer wrote: |  	  | Window mode?
 Or just create a timer that will execute everything for you, OR make a d3d trainer.
 | 
 @window mode
 not always works.... dxwdn, d3d, etc... many time fails..
 @Or just create a timer that will execute everything for you
 This seems to be a "mission impossible" for my limitate brain
   @OR make a d3d trainer.
 This seems to be really interest, but may you help to find a tutorial (for newbie).
 
 Many thanks.
 |  |  
		| Back to top |  |  
		|  |  
		| daspamer Grandmaster Cheater Supreme
 
  Reputation: 54 
 Joined: 13 Sep 2011
 Posts: 1588
 
 
 |  |  
		| Back to top |  |  
		|  |  
		| faizangmc Expert Cheater
 
 ![]() Reputation: 0 
 Joined: 12 Nov 2013
 Posts: 167
 
 
 | 
			
				|  Posted: Fri Feb 07, 2014 11:40 am    Post subject: |   |  
				| 
 |  
				|  	  | danrevella wrote: |  	  |  	  | DaSpamer wrote: |  	  | Insert it to Lua script window (Table > Show Lua script). HEY danrevella
 Do you get lazy when making trainers?
 Well no more!
 My CETrainer will generate it for you in seconds, so you won't get lazy! Very Happy
 
 | 
 Hi there
   My problem is not to be lazy in writing trainers... my problem is that I may not use CE in many games alt-tab protected...
   I admit...
 I am the auther of AAT 1.5 (what a shame....
  ) BTW I'm still in search of a solution for this type of games... 
 danrevella
 | 
 
 did u read this? Any help? just found a post with same title so suggested. Im not sure this is what you are looking for :
 http://forum.cheatengine.org/viewtopic.php?t=154
 |  |  
		| Back to top |  |  
		|  |  
		| danrevella Master Cheater
 
  Reputation: 2 
 Joined: 11 Jun 2008
 Posts: 292
 
 
 | 
			
				|  Posted: Fri Feb 07, 2014 12:30 pm    Post subject: |   |  
				| 
 |  
				|  	  | faizangmc wrote: |  	  | 
 did u read this? Any help? just found a post with same title so suggested. Im not sure this is what you are looking for :
 | 
 Many thanks for this,
 BTW, seems to be (at least for me) that the anti-tab problem is still an unsolved problem .......
 This is the reason why I'm actually working on AAT 2.0 after 10 years....
 |  |  
		| Back to top |  |  
		|  |  
		| Zhaoldic How do I cheat?
 
 ![]() Reputation: 0 
 Joined: 25 Feb 2014
 Posts: 2
 
 
 | 
			
				|  Posted: Tue Feb 25, 2014 1:18 pm    Post subject: how bout code |   |  
				| 
 |  
				| Hey Mate..how bout the code.. i must input code manual or already automated, such as I would like to make instant build cheat?
 |  |  
		| Back to top |  |  
		|  |  
		| deepth How do I cheat?
 
 ![]() Reputation: 0 
 Joined: 11 Apr 2012
 Posts: 7
 
 
 | 
			
				|  Posted: Tue Mar 04, 2014 10:36 am    Post subject: |   |  
				| 
 |  
				| DaSpamer, do you have solution for unity3d game because the result have 2 address, so how to activate or change the value in same time, with your trainer offcourse.
 |  |  
		| Back to top |  |  
		|  |  
		|  |  
  
	| 
 
 | 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
 
 |  |