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 to make online trainer

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Thu Dec 26, 2019 6:46 am    Post subject: This post has 1 review(s) Reply with quote

publish your trainer using ceshare and your trainer will be 'online'

and yes, i know this is not the answer you wanted

_________________
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
AylinCE
Grandmaster Cheater Supreme
Reputation: 32

Joined: 16 Feb 2017
Posts: 1250

PostPosted: Thu Dec 26, 2019 12:59 pm    Post subject: Reply with quote

This function can give you some "Online Trainer" examples.
You can use at the start of the trainer or independent from "VIP Membership".
When you change the text of a Google Docs document, the Trainer will stop opening. Wink

Code:
if f then f.destroy() end

local f = createForm(true)
f.Position = poDesktopCenter
f.Width = 320
f.Height = 120
f.caption = "Trainer Online Pass!"

local e1 = createEdit(f)
e1.Left = 120
e1.Top = 21
e1.Text = "123456" --or 22221111

local b1 = createButton(f)
b1.Left = 10
b1.Top = 15
b1.caption = "Enable Pass"

local b2 = createButton(f)
b2.Left = 10
b2.Top = 80
b2.caption = "Hack1"
b2.Enabled = false

local b3 = createButton(f)
b3.Left = 120
b3.Top = 80
b3.caption = "Hack2"
b3.Enabled = false
----------------------------------

function VipMember()
local answer = messageDialog("This Trainer is designed for VIP members.\nWould you like to become a VIP member by making\na donation to the organization?", mtWarning, mbYes, mbNo)
if answer == mrYes then
shellExecute("https://www.paypal.com/xclick/business=dark_byte%40hotmail.com&no_note=1&tax=0&lc=US")
end
end
-----------------------------------
function CheckPass()
 if syntaxcheck then return end
local url = "https://docs.google.com/document/d/1yoT_FRqmSLUHqgi0KEUw-gEcvGg__Tl0V1hPUKTKlOI/export?format=txt" --VIP1
 local http = getInternet()
 local result = http.getURL(url)
if result then
 result=tostring(result:match("%d+"))
 local trainer_verifier = e1.Text
  if trainer_verifier ~= result then
VipMember()
  else

sleep(200)
showMessage("The trainer was successfully opened.")
b2.Enabled = true
b3.Enabled = true
return
  end
end
end

CheckPass()

b1.OnClick = CheckPass


(Code by: CEF)

Enjoy it!

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
gfetgkh
Newbie cheater
Reputation: 0

Joined: 06 Apr 2018
Posts: 22

PostPosted: Fri Jan 03, 2020 5:57 am    Post subject: Reply with quote

Aylin wrote:
This function can give you some "Online Trainer" examples.
You can use at the start of the trainer or independent from "VIP Membership".
When you change the text of a Google Docs document, the Trainer will stop opening. Wink
......

You are a good way, but when my trainer is very large and complex, these codes will be difficult to maintain. How can I load a form completed by the form designer online? I don't want to use the createFormFromFile(filename) function, because it needs to download the file to disk, and I don't want the form designed by myself to be easily stolen by others.

Dark Byte wrote:
publish your trainer using ceshare and your trainer will be 'online'

Later CE versions can add some new functions, so I can get formdata through getURl, for example:
Quote:
<?xml version="1.0" encoding="utf-8"?>
<FormData>
<CETrainer Class="TTrainerForm" Encoding="Ascii85">MNUCZ!!QsuIAm$4]V/7@0YFSc4}Pb0!4Vm:A+.IH.4TL}$a@=(.^qf_%w.q*8qIturEFatO_4CiBBqMdW=}k9D!al}beZK#q}{ibhtigN^jT:z:{9[$wgblXLLBq_)zN0zho+C;L4nz2IX@j]KbYnDZL[e(7.?kQ.6oXlUmpzKII.UV8Pv7gV4j],U}JSRzJsFe=[47H7.s#/d3Ay04WNCwNUjxFMH6[7Pz,:O]SpIyTl*P7vz^BD5Tn5.n3Vbk</CETrainer>
</FormData>

Code:
local str='MNUCZ......n3Vbk'
--str=getURl(url)
f=createFormFromData(str)


Last edited by gfetgkh on Sat Jan 04, 2020 8:11 am; edited 5 times in total
Back to top
View user's profile Send private message
Lynxz Gaming
Expert Cheater
Reputation: 4

Joined: 01 Jul 2017
Posts: 208
Location: help

PostPosted: Fri Jan 03, 2020 10:45 am    Post subject: Reply with quote

gfetgkh wrote:

Later CE versions can add some new functions, so I can get formdata through getURl, for example:
Code:
local str='FormData.FRM'
--str=getURl(url)
f=createFormFromData(str)

yes you can use createFormFromFile

Code:
getUrl = getInternet().getURL
formdata = getUrl("https://dl.dropbox.com/s/uio8v3k97rbichm/aa.FRM?dl=0")
--print(formdata)
savedata = io.open("anything.frm","w")
savedata:write(formdata)
savedata:close()

form = createFormFromFile("anything.frm")
form.show()

_________________
my english is bad
discord : rynx#9828
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1667

PostPosted: Fri Jan 03, 2020 6:39 pm    Post subject: Reply with quote

I did just like this.

Code:
local url = 'https://pastebin.com/raw/1jDXDFcn'
local int = getInternet()
local text = int.getURL(url)
int.destroy()
load(text)()

_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Sat Jan 04, 2020 5:09 am    Post subject: Reply with quote

tables can also contain forms and you can also loadTable from a stream, so yes you can download forms
_________________
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
gfetgkh
Newbie cheater
Reputation: 0

Joined: 06 Apr 2018
Posts: 22

PostPosted: Sat Jan 04, 2020 9:38 am    Post subject: Reply with quote

Dark Byte wrote:
tables can also contain forms and you can also loadTable from a stream, so yes you can download forms

I think you are talking about my needs, but how to achieve it? Can you give me an example?
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