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 do I assign TCEEdit to address value

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

Joined: 28 Feb 2016
Posts: 7

PostPosted: Sun Feb 28, 2016 9:56 am    Post subject: How do I assign TCEEdit to address value Reply with quote

I would like that when i press TransferPoints, the value that i have in EPPoints
(edit box) will change the value in the cheat engine.



12345.jpg
 Description:
 Filesize:  374.96 KB
 Viewed:  5191 Time(s)

12345.jpg


Back to top
View user's profile Send private message
LastExceed
Expert Cheater
Reputation: 1

Joined: 05 Nov 2014
Posts: 130

PostPosted: Sun Feb 28, 2016 2:30 pm    Post subject: Reply with quote

First, select the button, go to events and doubleclick "OnClick". Then the lua script should open and some code appeared. Then insert this:

Code:
function TransferPointsClick(sender)
  if(tonumber(PrototypeEPHack.EPPoints.text)==nil)then
    showMessage('please enter a valid integer')
  else
    getAddressList().getMemoryRecordByDescription('PrototypeEPHack').value=PrototypeEPHack.EPPoints.text
  end
end
Back to top
View user's profile Send private message
DanielTheHitman
How do I cheat?
Reputation: 0

Joined: 28 Feb 2016
Posts: 7

PostPosted: Sun Feb 28, 2016 5:22 pm    Post subject: Reply with quote

thank you very much, looks forward to more help in the future, and btw how do i get it to play a beep/song?(when i press TransferPoints)
Back to top
View user's profile Send private message
LastExceed
Expert Cheater
Reputation: 1

Joined: 05 Nov 2014
Posts: 130

PostPosted: Sun Feb 28, 2016 5:25 pm    Post subject: Reply with quote

Unfortunately I cannot help you with that since am still learning lua myself
Back to top
View user's profile Send private message
DanielTheHitman
How do I cheat?
Reputation: 0

Joined: 28 Feb 2016
Posts: 7

PostPosted: Sun Feb 28, 2016 6:21 pm    Post subject: Reply with quote

ok what sites etc. are you using to learn lua?
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 Feb 28, 2016 6:40 pm    Post subject: Reply with quote

http://forum.cheatengine.org/viewtopic.php?p=5613184
Code:
beep()

Code:
playSound(findTableFile("sound.wav"))
Back to top
View user's profile Send private message
DanielTheHitman
How do I cheat?
Reputation: 0

Joined: 28 Feb 2016
Posts: 7

PostPosted: Sun Feb 28, 2016 7:43 pm    Post subject: Reply with quote

Thanks Zanzer the beep() doesn't work for me and i was looking at the
Code:
playSound(findTableFile("sound.wav"))
sometime ago only this seem to work for me.
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