Jump to content
Enyby

LUA scripting

Recommended Posts

I use encrypt script ext enc with script compiler.lua, but i cant see file call ext load.lua and in my manager explorer i see just file ext log.  Can you help me,  how i see it.  Thx b4

Screenshot_2018-09-17-11-15-23-672_com.parallelspace.multipleaccounts.appclone.png

Screenshot_2018-09-17-11-15-37-635_com.parallelspace.multipleaccounts.appclone.png

Screenshot_2018-09-17-11-17-50-407_com.mi.android.globalFileexplorer.png

Share this post


Link to post
Share on other sites

Hi @Enyby,

After update GG to latest versions, GG API makerequest not works as before.

For me, that API is usefull to make auto update scripts without redownload the new scripts file.

It is removed?

Thanks

Share this post


Link to post
Share on other sites

good day guys, i need help to fix on the problem that make my script not to edit and freeze the values after the prompt and searchNumber but it does save on save tab? thanks in advance ? 

note: i have latest gg version

gg.toast('Test by absolutenothing')

print('Test by absolutenothing')

--Game guardian detection

if gg.BUILD < 5511 then

print('You need latest version of GameGuardian to run this script. Minimum GG v.8.30.0.')
goto update

end

gg.toast('Test by absolutenothing') 
gg.clearResults()
gg.setRanges(gg.REGION_ANONYMOUS)

if gg.isVisible(true) then
   gg.setVisible(false)
   end
gg.clearResults()

goto START

::START::
menu = gg.choice({'M','EXIT'},nil,'just do it fast') 
if menu == 1 then goto M end
if menu == nil then print('error') end
goto noselect

::M::

menu = gg.choice({'Player1','Player2','Player3', 'Player4','EXIT'},nil,'just do it fast') 
if menu == 1 then goto Player1 end
--if menu == 2 then goto Player2 end
--if menu == 3 then goto Player3 end
--if menu == 4 then goto Player4 end
if menu == nil then print('error') end
goto noselect

::Player1::

d = gg.prompt({z='Player1'}, {z='3'})
c = '100000;2;'..d.z..';5;200;1000::100'
gg.searchNumber(c, gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
gg.searchNumber(d.z, gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)

v = gg.getResults(10)
v.flags = gg.TYPE_DWORD
v.value = '2000'
v.freeze = true

gg.toast('test freezing') 
goto absolutenothing

::noselect::
print('selected nothing')
os.exit()

::update::
print('update your gameguardian')
gg.toast('GG not support')
os.exit()

::absolutenothing::
gg.toast('Test by absolutenothing')

print('hi hi hi')
os.exit()

Screenshot_2018-09-30-15-17-45-960.thumb.png.b02c976cc3dbcd9f2e0b9c174ea8739c.png

Share this post


Link to post
Share on other sites

Is there a way to modify a file?

Example, i want to mod a file in /data/data/packagename/files/file.lua

I tried accessing it thru io.open but it returns a nil, i cant access root directory

Share this post


Link to post
Share on other sites

No. Script not have root right to access here.

Share this post


Link to post
Share on other sites
1 hour ago, Enyby said:

No. Script not have root right to access here.

Can you add that feature? Run lua in root mode?

Share this post


Link to post
Share on other sites

Of course no. Or will be possible create lua viruses which destroy your firmware from root.

Share this post


Link to post
Share on other sites

oh i see, never thought of that.

well i guess i'll stick with qpython patching.

Share this post


Link to post
Share on other sites

i fixed my problem above, by using my old file to write codes, idk why making new note/txt/lua file makes not to freeze my scripted values. thanks anyways ? happy scripting.

 

Share this post


Link to post
Share on other sites
On 9/30/2018 at 10:18 AM, absolutenothing said:

v = gg.getResults(10) v.flags = gg.TYPE_DWORD v.value = '2000' v.freeze = true

this code can not freeze or save anything. You forgot use addListItems().

Share this post


Link to post
Share on other sites

@Enyby

Is it possible to gg.setValues using a custom XOR key?

Share this post


Link to post
Share on other sites

Yes. Technically it is possible, so all depends from your skills in lua.

Share this post


Link to post
Share on other sites

is there a way to use

[text (string,HEX,AoB) search],

In an script because i just started scripting and i can't figure it out how to use it and i need it for a game to change an animation and i don't know how i can change it else

Screenshot_2018-10-23-22-11-38-1.png

Share this post


Link to post
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

×
×
  • Create New...