Jump to content
  • 0

Help continous edit


lanzpro

Question

How do u edit a value continously  while not opening gg? Can anyone give me template lua? Here's a example:

 as u can see his value is changing 3 to 4 without touching gg

How would i apply it on my code?

I already coded it as when i click i can change the value to original value source :

Examples of Lua scripts (#8et4jmez)

Because on this game i found a way to hack god mode without taking a damage but the thing is it get detected if the value is for example 6 is the base value and if i change it to 7 i'll activate god mode but i'll get disconnected if it stays to 7 throughout the time so i got an idea from this video that i need to code a lua where i can edit a value continously so i can bypass the detection well this code i putted ye it works but i need to click the gg everytime so the value will revert which is really slow compare to the video i uploaded sorry for my english btw.

if gg.isVisible(true) then

   gg.setVisible(false)

end

gg.clearResults()

gg.toast('Welcome')

lua = 1

 

function main()

   menu = gg.choice({'GodMode', 'Exit'}, nil, 'LanzNoLimit')

   if menu == 1 then a() end

   if menu == 3 then c() end

   if menu == nil then choice(none) end

   lua = -1

end

 

function choice(none)

   os.exit()

end

 

function a()

   gg.setRanges(gg.REGION_ANONYMOUS)

   gg.searchNumber('112;15:5', gg.TYPE_DWORD)

   gg.refineNumber ("15",gg.TYPE_DWORD)

   gg.getResults(1500)

   gg.editAll('16', gg.TYPE_DWORD)

   gg.toast('GodMode')

   gg.sleep(100)

   gg.clearResults()

   gg.toast('touch NonGodMode')

    gg.sleep(100)

   gg.setVisible(false)

   while true do

       if gg.isVisible() then

           gg.setVisible(false)

               ov()

        end

    end

end

 

 

function ov()

   gg.setRanges(gg.REGION_ANONYMOUS)

   gg.searchNumber('112;16:5', gg.TYPE_DWORD) 

   gg.refineNumber ("16",gg.TYPE_DWORD)

   gg.getResults(1500)

   gg.editAll('15', gg.TYPE_DWORD)

   gg.toast('NonGodMode')

   gg.sleep(100)

   gg.clearResults()

   gg.toast('touch GodMode')

    gg.sleep(100)

   gg.setVisible(false)

   while true do

       if gg.isVisible() then

           gg.setVisible(false)

           a()

       end

   end

end

 

function c()

   gg.clearResults()

   os.exit()

end

 

while(true) do

   if gg.isVisible(true) then

      lua = 1

      gg.setVisible(false)

   end

   gg.clearResults()

   if lua == 1 then

      main()

   end

end

 

 

 

 

 

 

 

 

 

 

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

5 hours ago, lanzpro said:

How do u edit a value continously  while not opening gg? Can anyone give me template lua? Here's a example:

 

 as u can see his value is changing 3 to 4 without touching gg

How would i apply it on my code?

I already coded it as when i click i can change the value to original value source :

Examples of Lua scripts (#8et4jmez)

Because on this game i found a way to hack god mode without taking a damage but the thing is it get detected if the value is for example 6 is the base value and if i change it to 7 i'll activate god mode but i'll get disconnected if it stays to 7 throughout the time so i got an idea from this video that i need to code a lua where i can edit a value continously so i can bypass the detection well this code i putted ye it works but i need to click the gg everytime so the value will revert which is really slow compare to the video i uploaded sorry for my english btw.

if gg.isVisible(true) then

   gg.setVisible(false)

end

gg.clearResults()

gg.toast('Welcome')

lua = 1

 

function main()

   menu = gg.choice({'GodMode', 'Exit'}, nil, 'LanzNoLimit')

   if menu == 1 then a() end

   if menu == 3 then c() end

   if menu == nil then choice(none) end

   lua = -1

end

 

function choice(none)

   os.exit()

end

 

function a()

   gg.setRanges(gg.REGION_ANONYMOUS)

   gg.searchNumber('112;15:5', gg.TYPE_DWORD)

   gg.refineNumber ("15",gg.TYPE_DWORD)

   gg.getResults(1500)

   gg.editAll('16', gg.TYPE_DWORD)

   gg.toast('GodMode')

   gg.sleep(100)

   gg.clearResults()

   gg.toast('touch NonGodMode')

    gg.sleep(100)

   gg.setVisible(false)

   while true do

       if gg.isVisible() then

           gg.setVisible(false)

               ov()

        end

    end

end

 

 

function ov()

   gg.setRanges(gg.REGION_ANONYMOUS)

   gg.searchNumber('112;16:5', gg.TYPE_DWORD) 

   gg.refineNumber ("16",gg.TYPE_DWORD)

   gg.getResults(1500)

   gg.editAll('15', gg.TYPE_DWORD)

   gg.toast('NonGodMode')

   gg.sleep(100)

   gg.clearResults()

   gg.toast('touch GodMode')

    gg.sleep(100)

   gg.setVisible(false)

   while true do

       if gg.isVisible() then

           gg.setVisible(false)

           a()

       end

   end

end

 

function c()

   gg.clearResults()

   os.exit()

end

 

while(true) do

   if gg.isVisible(true) then

      lua = 1

      gg.setVisible(false)

   end

   gg.clearResults()

   if lua == 1 then

      main()

   end

end

 

 

 

 

 

 

 

 

 

 

for i = 1, 99999999 do

   gg.editAll('16', gg.TYPE_DWORD)

   gg.toast('On GodMode')

   gg.sleep (700)

   gg.editAll('15' ,gg.TYPE_DWORD)

   gg.toast('OFF')

   gg.sleep(1000)

 

Problem fixed loop + gg.sleep for delay 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.