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 


Combo box+editbox???

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

Joined: 20 Nov 2013
Posts: 6
Location: Unknown

PostPosted: Thu Nov 21, 2013 4:58 pm    Post subject: Combo box+editbox??? Reply with quote

Use the combobox to choose trainer function like 'Money' and edit the money value with editbox ? Can u guys tell me the script..Thanks Smile
_________________
::Rembau Most Wanted::
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25818
Location: The netherlands

PostPosted: Thu Nov 21, 2013 5:14 pm    Post subject: Reply with quote

here is an example

Table->frmMyTrainer->edit will let you check out the form data like the combobox style that has been changed to dropdownlist and the button that has an onclick event assigned.

and check out table->show cheat table lua script to see the code of the button click event and the first instruction that shows the form (you'll have to change the addresses...)



example.ct
 Description:

Download
 Filename:  example.ct
 Filesize:  1.17 KB
 Downloaded:  1149 Time(s)


_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
2nds8x
How do I cheat?
Reputation: 0

Joined: 20 Nov 2013
Posts: 6
Location: Unknown

PostPosted: Thu Nov 21, 2013 8:46 pm    Post subject: Is this the correct way?? Reply with quote

function CEButton1Click(sender)
if Trainer.cbCheatlist.ItemIndex==0 then --money
writeInteger("[[[[Reckoning.exe+007F90E4]+8]+4]+4]+48", tonumber(Trainer.CEEdit1.writeInteger))
end

if Trainer.cbCheatlist.ItemIndex==1 then --Thingy
writeInteger("[[[[Reckoning.exe+00BF90E4]+8]+4]+4]+4c", tonumber(Trainer.CEEdit1.writeInteger))
end

if Trainer.cbCheatlist.ItemIndex==2 then --something
writeInteger("[[[[Reckoning.exe+007F90E4]+4c]+4]+cc]+164", tonumber(Trainer.CEEdit1.writeInteger))
end

if Trainer.cbCheatlist.ItemIndex==3 then --something
writeInteger("[[[Reckoning.exe+00BF8AF8]+1238]+4]+204", tonumber(Trainer.CEEdit1.writeInteger))
end

if Trainer.cbCheatlist.ItemIndex==4 then --something
writeInteger("[[[[[Reckoning.exe+007F8AD8]+12c]+a8]+bc]+4]+34c", tonumber(Trainer.CEEdit1.writeInteger))
end
end

Got this ERROR:
Error:[string "function RefillHealthClick(sender)..."]:342: attempt to index field 'cbCheatlist' (a nil value)

_________________
::Rembau Most Wanted::
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25818
Location: The netherlands

PostPosted: Thu Nov 21, 2013 9:20 pm    Post subject: Reply with quote

Your trainer form doesn't seem to have an object with name cbCheatlist
Also, edit boxes do not have a propert named writeInteger. Use Text to get the value

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
2nds8x
How do I cheat?
Reputation: 0

Joined: 20 Nov 2013
Posts: 6
Location: Unknown

PostPosted: Thu Nov 21, 2013 10:17 pm    Post subject: Reply with quote

Thanks..Dark Byte Smile
_________________
::Rembau Most Wanted::
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