Jump to content

LUA scripting


Enyby
 Share

Recommended Posts

On 6/6/2018 at 10:19 PM, nashnie29 said:

 

Quote
Quote

 

 

Hi @Enyby. Sorry for the mess there. I can't figure out how to remove that on phone. I'll fix it later on my laptop. My question is how do I fix this error? I used saveVariable and loadfile on my script. But it causes an error on some devices because their file directory is different. I used sdcard/notes in my script. Others have /storage/emulated/0/notes. Is there a way to make a script that works for both? I attached a screenshot of the error message.

 

1529841777957.jpg

Link to comment
Share on other sites

Guest ttah11

@Enyby  thanks for all your hard work with GameGuardian.

I am confused on how to get the address that a pointer is pointing to. Can you help me with that?

 

 

Link to comment
Share on other sites

  • Administrators

You need understand what is pointer is.

Pointer just is variable with address. So your address is just value of this variable.

For example if variable A is pointer to B, then this mean value of A equals address of B. A just store address of B. It is called "pointer". Read on wiki or in Internet about that.

Link to comment
Share on other sites

On 6/24/2018 at 8:25 PM, Enyby said:

You can get sdcard path from gg.EXT_FILES_DIR or current file path via gg.getFile.

@Enyby if I want to use the gg.getFile, how do I delete characters from the right of the string until it detects a slash? So I can save a file in the same folder

Link to comment
Share on other sites

I have another problem @Enyby. My script returns this error:

Quote

Script ended:
@/storage/emulated/0/testfolder/
java.io.FileNotFoundException: /@/storage/emulated/0/testfolder/srcflMACinator.txt: open failed: ENOENT (No such file or directory)

The second line is the directory of the current script. The third line is the error for gg.saveList. It is on the same directory but the script can't find it. If I replaced '/storage/emulated/0/' with '/sdcard/' it works just fine. Maybe it's because the script is running on nox? I haven't tried it on a phone.

This is the part of the code:

getPath=function(str,sep)
    sep=sep or'/'
    return str:match("(.*"..sep..")")
end

macinator = gg.getFile()
macpath = getPath(macinator)
print(macpath)
gg.loadList(macpath .. 'srcflMACinator.txt')
srcfl = gg.getListItems()
if srcfl[1] ~= nil then
	gg.toast("Source file loaded")
	skllfl = assert(loadfile(macpath .. 'mercskillsave.lua'))()
else
	while gg.getResultCount() ~= 1 do
	gg.searchNumber(808465268, gg.TYPE_QWORD, false, gg.SIGN_EQUAL,  0,  -1)
		if gg.getResultCount() == 0 then
			print(lang.failsearch)
			os.exit()
		end
	end
	srcfl = gg.getResults(1)
	gg.addListItems(srcfl)
	print(gg.saveList(macpath .. 'srcflMACinator.txt'))
	gg.toast("Source file saved")
	skllfl = {}
	skllfl[1] = 188
	skllfl[2] = 194
	skllfl[3] = 188
	skllfl[4] = 194
	gg.saveVariable(skllfl, macpath .. 'mercskillsave.lua')
end

 

Edited by MCbearbear
Link to comment
Share on other sites

I can't understand how to select region

I want to select region A

REGION_ANONYMOUS

_________________________________

gg.searchNumber ('2.0F;1.0F;20D;10D;10D:50')

gg.searchNumber ('10',gg.TYPE_DWORD)

gg.getResults('10',gg.TYPE_DWORD)

gg.toast('HACK IS ACTIVATED')
print('HACK IS ACTIVATED')


gg.editAll('-1000',gg.TYPE_DWORD)


gg.clearResults()

 

 

Can any one say where should I

Use gg.region

 

Edited by AjYouTube
Code is placed in normal text, corrected
Link to comment
Share on other sites

9 minutes ago, AjYouTube said:

I want to select region A

REGION_ANONYMOUS

Use this function for it. Place this code before any call to search functions if you want them to search only in selected region(s).

gg.setRanges(gg.REGION_ANONYMOUS)

Also check documentation for this and other functions that you may need to use in your scripts.
https://gameguardian.net/help/classgg.html#a9f7d694a9f97e6077f5d2a458e53bcef

Edited by CmP
Link to comment
Share on other sites

1 minute ago, CmP said:

Use this function for it.


gg.setRanges(gg.REGION_ANONYMOUS)

Also check documentation for this and other functions that you may need to use in your scripts.
https://gameguardian.net/help/classgg.html#a9f7d694a9f97e6077f5d2a458e53bcef

Thanks for reply,

I just started learning

And is possible to encrypt the script after making

I mean unreadable by other

Only Game guardian can read

 

I seen the pubg script it was encrypted

I want to learn how to encrypt

 

Thanks again 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.