View previous topic :: View next topic |
Author |
Message |
tomtinhte How do I cheat? Reputation: 0
Joined: 27 Aug 2014 Posts: 8
|
Posted: Tue Apr 28, 2015 3:15 pm Post subject: |
|
|
u can share .ct file with form & lua script? I want to customize it
|
|
Back to top |
|
|
rahat How do I cheat? Reputation: 0
Joined: 11 May 2015 Posts: 9
|
Posted: Wed May 13, 2015 6:50 am Post subject: |
|
|
Code: | function cmdHttpGet(url,file) --thnx to panraven
assert(type(url)=='string','has to specific url string')
file = type(file)=='string' and file or '_dummy.tmp'
local cmd = string.format([[powershell -command "& { (New-Object Net.WebClient).DownloadFile('%s', '%s') }"]],url,file)
cmd = assert(io.popen(cmd,'r'))
cmd:read('*all')
cmd:close()
cmd = assert(io.open(file,'rb'))
local result = cmd:read('*all')
cmd:close()
return result
end
hck1 = cmdHttpGet([[website-url/hack1.txt]])
hck2 = cmdHttpGet([[website-url/hack2.txt]])
function CreateTrainer() --thnx to DaSpammer
local HackData = {};
function HackData:HacksData()
self.trainer.form.Caption = [[noOb Trainer]]
self.trainer.title.Caption = [[noOb Trainer]]
self.trainer.credits.Caption = [[ Hack was made by a friend]]
self.hacktable = {
{'Hack1',[[luacall(AobswapC(hck1))]],[[]],[[]], 'false'},
{'Hack2',[[luacall(AobswapC(hck1))]],[[]],[[]], 'false'}
};
for i=1,#self.hacktable do
strings_add(self.listitems, self.hacktable[i][1]);
self.hackstatus[i] = false;
end
end
--...
--...
|
Generated a trainer from your great work and it works just fine, but I wanted to place the AOBs on a remote server so instead of re-creating & distributing trainer each time game gets updated I just update 2 text files.
Problem is, it retrieves the data from text files and stores in variables, but when enable button is pressed, it throws error that "Hack failed to enable".
Completely new to lua script and want this specific thing done. Not sure what am i doing wrong.
website-url/hack1.txt Code: |
'01 01 01','02 02 02' |
website-url/hack2.txt
Code: | '11 11 11','22 22 22' | [/code]
Last edited by rahat on Wed May 13, 2015 9:54 am; edited 2 times in total |
|
Back to top |
|
|
panraven Grandmaster Cheater Reputation: 54
Joined: 01 Oct 2008 Posts: 941
|
Posted: Wed May 13, 2015 9:12 am Post subject: |
|
|
Code: | {'Hack1',[[luacall(AobswapC(hck1))]],[[]],[[]], 'false'}, |
The symbol sequence '[[' and ']]' is another lua way of quoting a string, which allow text display as is, including new line.
By trying refer variable hck1 in Code: | [[luacall(AobswapC(hck1))]] | , hck1 is just a string and not a string variable holding a string (ie. [['01 01 01','02 02 02']]). Try Code: | [[luacall(AobswapC(]].. hck1.. [[))]] |
The 2 dot .. is to join 2 strings. So above is joining a literal string with a string variable hck1 and then another literal string. The result string should be equivalent to
Code: | [[luacall(AobswapC('01 01 01','02 02 02'))]] |
bye~
|
|
Back to top |
|
|
rahat How do I cheat? Reputation: 0
Joined: 11 May 2015 Posts: 9
|
Posted: Wed May 13, 2015 9:52 am Post subject: |
|
|
panraven wrote: | Try Code: | [[luacall(AobswapC(]].. hck1.. [[))]] |
The 2 dot .. is to join 2 strings. So above is joining a literal string with a string variable hck1 and then another literal string. The result string should be equivalent to
Code: | [[luacall(AobswapC('01 01 01','02 02 02'))]] |
bye~ |
Thank you very much panraven, you really made my day.
|
|
Back to top |
|
|
DaSpamer Grandmaster Cheater Supreme Reputation: 52
Joined: 13 Sep 2011 Posts: 1578
|
Posted: Wed May 13, 2015 3:41 pm Post subject: |
|
|
Odd that people still use this :p.
This script isn't so efficient and poorly written... you cannot verify that it managed to enable all aobs (if placing sever aobswap in a single script) and it doesn't 'undo' in case of failure...
_________________
|
|
Back to top |
|
|
Fluffer_Nutter Advanced Cheater Reputation: 0
Joined: 26 Feb 2015 Posts: 67
|
Posted: Wed May 13, 2015 3:49 pm Post subject: |
|
|
@DaSpammer
People still use it because it works lol. Its the 1st trainer i learned off of. Im not up to your level tho. But from seeing the code and learning LUA it was a huge step in the right direction! Many thanks
|
|
Back to top |
|
|
rahat How do I cheat? Reputation: 0
Joined: 11 May 2015 Posts: 9
|
Posted: Thu May 14, 2015 1:52 am Post subject: |
|
|
DaSpamer wrote: | Odd that people still use this :p.
This script isn't so efficient and poorly written... you cannot verify that it managed to enable all aobs (if placing sever aobswap in a single script) and it doesn't 'undo' in case of failure... |
It works just fine for personal use, where efficiency is not the biggest concern.
Yes it takes wee bit more time to attach than manually attaching in cheat engine but since it saves lots of manual labor, we are happy users of your awesome script.
Anyway, if some other efficient& recommended script is available for public use, I'd gladly switch to it
Many thanks for your awesome work.
|
|
Back to top |
|
|
DaSpamer Grandmaster Cheater Supreme Reputation: 52
Joined: 13 Sep 2011 Posts: 1578
|
Posted: Fri May 15, 2015 12:06 pm Post subject: |
|
|
Perhaps one day I'll make a proper one )
_________________
|
|
Back to top |
|
|
Testdrive9079 How do I cheat? Reputation: 0
Joined: 27 Jun 2015 Posts: 1
|
Posted: Sat Jun 27, 2015 10:37 am Post subject: |
|
|
Daspammer, can you help me. Now i need to make a trainer that i made into an EXE. Is it possible?
_________________
Beep Boop |
|
Back to top |
|
|
dolcepanna Newbie cheater Reputation: 0
Joined: 07 Jan 2013 Posts: 12
|
|
Back to top |
|
|
lolAnonymous Expert Cheater Reputation: 1
Joined: 19 Jul 2015 Posts: 154
|
Posted: Wed Jul 22, 2015 1:04 pm Post subject: New Design |
|
|
Hey Daspammer Make A New Easy Trainer Maker With A New Design
|
|
Back to top |
|
|
DaSpamer Grandmaster Cheater Supreme Reputation: 52
Joined: 13 Sep 2011 Posts: 1578
|
Posted: Thu Jul 23, 2015 5:49 am Post subject: Re: New Design |
|
|
MasterHacking321 wrote: | Hey Daspammer Make A New Easy Trainer Maker With A New Design |
Maybe one day
_________________
|
|
Back to top |
|
|
abaddon82 How do I cheat? Reputation: 0
Joined: 05 Aug 2015 Posts: 1
|
Posted: Wed Aug 05, 2015 1:33 am Post subject: |
|
|
Very interesting post this, has me keen, but all Greek to me lol
|
|
Back to top |
|
|
ledan1962 How do I cheat? Reputation: 0
Joined: 04 Oct 2015 Posts: 2
|
Posted: Wed Oct 07, 2015 9:20 am Post subject: merci de m'avoir répondu |
|
|
le probleme,c'est que je ne sais rien comprendre en englais,et en informatique encore moin.Mais j'ai vraiment besoin d'aide pour moi et mes protégés
UN GRAND MERCI
|
|
Back to top |
|
|
ledan1962 How do I cheat? Reputation: 0
Joined: 04 Oct 2015 Posts: 2
|
Posted: Thu Oct 08, 2015 9:33 am Post subject: salut les amis |
|
|
je dois copier mes scripts dans la fenetre Lua ,mais je ne la trouve ,pourriez vous m'aider ,ce serrait super sympa
|
|
Back to top |
|
|
|