Jump to content

LUA scripting


Enyby
 Share

Recommended Posts

  • 2 weeks later...

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

Link to comment
Share on other sites

  • Administrators
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().

Link to comment
Share on other sites

  • 3 weeks later...

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

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.