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 


How read constantly on trainer

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

Joined: 31 Dec 2015
Posts: 13

PostPosted: Sun Jan 03, 2016 4:27 pm    Post subject: How read constantly on trainer Reply with quote

Hi all guys.

i have problems to create a trainer for read my hp or moob hp.

I get the moob hp with Auto Assamble edit:
Code:

[ENABLE]

aobscanmodule(INJECT,XXX.exe,F3 0F 11 46 58 5E 5D C2 04) // should be unique
alloc(newmem,$1000)

label(code)
label(return)

globalalloc(_hp,4)

newmem:

code:
  movss [esi+58],xmm0
  mov   [_hp],esi
  jmp return

INJECT:
  jmp code
return:
registersymbol(INJECT)

[DISABLE]

INJECT:
  db F3 0F 11 46 58

unregistersymbol(INJECT)
dealloc(newmem)


Next to this i create a new address manually to read :
Code:
 [_hp]+58


And when i activate the script i get the hp..

When i go to create a trainer, i know create a trainer for Activate or Disable, but i don`t know how do for in a editbox read this hp that i got.

i like activate the script with pressing key [numeric key 7] and when i do that on the Editbox read the Hp.

Sorry for my english. I hope that you can understand me.
Thanks all.


Last edited by massil on Wed Jan 06, 2016 1:38 pm; edited 2 times in total
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Sun Jan 03, 2016 9:52 pm    Post subject: Reply with quote

That would be Lua to populate your input box.
Code:
readInteger("[_hp]+58")
readFloat("[_hp]+58")
Back to top
View user's profile Send private message
massil
Newbie cheater
Reputation: 0

Joined: 31 Dec 2015
Posts: 13

PostPosted: Mon Jan 04, 2016 3:49 am    Post subject: Reply with quote

Thanks Zanzer.

Could you explain me, how can i do that?

I go to File/Generate generic trainer lua script from table, and then when i push on Design userinterface manually. After this I add an editbox... And I know not continue.

How i vinculate CHEAT0:tcheat (is the script) with CEEdit1: TCEEdit1?



Screenshot_1.png
 Description:
 Filesize:  116.05 KB
 Viewed:  4559 Time(s)

Screenshot_1.png


Back to top
View user's profile Send private message
Rydian
Grandmaster Cheater Supreme
Reputation: 31

Joined: 17 Sep 2012
Posts: 1358

PostPosted: Mon Jan 04, 2016 6:20 am    Post subject: Reply with quote

- Read & Write Forms
http://forum.cheatengine.org/viewtopic.php?p=5576412

_________________
Back to top
View user's profile Send private message
massil
Newbie cheater
Reputation: 0

Joined: 31 Dec 2015
Posts: 13

PostPosted: Mon Jan 04, 2016 6:26 am    Post subject: Reply with quote

Rydian,I was looking for and I did not see, sorry.

Edit:

I would like ask something.

I got what I was looking, and I created my coach to read the life of the monster.
The value of life is constantly decreasing monster, and I have to constantly press the button to see how much life brings.
There any way to get the value of life decreases without pressing the button?

Could something explain me the script that i need for use tooglebox instead button?

I like activate my script with numeric 6 like the picture and then pulse on tooglebox and the hp that show on the editbox decreases constantly.

Thanks to all.



Screenshot_2.png
 Description:
 Filesize:  40.21 KB
 Viewed:  4470 Time(s)

Screenshot_2.png


Back to top
View user's profile Send private message
massil
Newbie cheater
Reputation: 0

Joined: 31 Dec 2015
Posts: 13

PostPosted: Tue Jan 05, 2016 5:52 am    Post subject: Reply with quote

This it the code
Code:

function CEButtonReadClick(sender)
  setProperty(CETrainer.CEEdit1,"Text",readFloat("[_hp]+58"))   
end


And i ask some like this
Code:
function CEToggleBox1Change(sender)
  if (checkbox_getState(UDF1.CEToggleBox1) == 1) then
    setProperty(CETrainer.CEEdit1,"Text",readFloat("[_hp]+58"))
  end
end
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