Jump to content

Archived

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

juyox

Help for gg.prompt searching

Recommended Posts

x= gg.prompt({[2]='Enter Value'}, {[1]='1;3;2;', [2]='22', [3]=',000~', [4]=',999;0::45'})
gg.searchNumber(x[1]x[2]x[3]x[2]x[4], gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
found = gg.getResultCount()
gg.alert('We found: '..found)

Hi guys, please help for make it.

Where is my fault?

Final patten for search is:
1;3;2;22,000~22,999;0::70

In every search i just want to change two fisrt number of 22,000~22,999.

in gg.promp line i just wrote [2]= 'Enter Value' b'cuz it's  variable.

I got this error:

Script ended:
Script error: org.luaj.vm2.LuaError: @/sdcard/Notes/tttttt.lua:2
`gg.searchNumber(x[2],x[1], gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)`
bad argument #3 (number): boolean expected, got number

 

Share this post


Link to post
Share on other sites

val = gg.prompt({'input value'},nil,{'number'})
gg.searchNumber('1;3;2;22,000~22,999;0::70', gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
gg.searchNumber('22,000~22,999', gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
gg.getResults(2)
gg.editAll(val[1], gg.TYPE_DWORD)

I cant understand your explanation clearly. But,  you can try code above. 

 

Share this post


Link to post
Share on other sites

  • Similar Content

    • By Kimiice7
      Please help me how to make group search like this
      r = gg.prompt({'LEVEL [1;5]'},{1},{'number'})
      p = {'10','20','30','40','50'}

      --bad list--
      if r[1] == '1' then rp = p[1] end
      if r[1] == '2' then rp = p[2] end
      if r[1] == '3' then rp = p[3] end
      if r[1] == '4' then rp = p[4] end
      if r[1] == '5' then rp = p[5] end
      gg.searchNumber(r[1]..';100;'..rp..';1000:', gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
      --How to call rp in group search without making bad list..??--
      --Because i have 100 items in table p{} --
      -- for p[x] , how to set x= r[1] ?? --
      -- i tried this --
      --gg.searchNumber(r[1]..';100;'..p[r[1]]..';1000:', gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)--
      --also tried x = r[1] then call p[x] but didn't work--
      --Thanks for your help guys--
      help variable gg.prompt.lua
    • By Kimiice7
      help gg.prompt.lua
      Qjctx = 1
      if gg.isVisible(true) then
        gg.setVisible(false)
      end
      function main()
      n = gg.prompt({M='value1',N='value2'},nil,{'number','number'})
       if n == nil then os.exit() end
      if n.M and n.N then A()
      end
      end
      function A()
      gg.clearResults()
      gg.searchNumber(n.M..';'..n.N, gg.TYPE_DWORD)
      gg.clearResults()
      gg.alert(n.M.. '+'..n.N..'='..(n.M+n.M))
      end
      main()
      while true do
          if gg.isVisible(true) then
              gg.setVisible(false)
              Qjctx = 1
          end
          gg.sleep(100)
          if Qjctx == 1 then
              main()
          end
      end
       
      Please help me fix this
      For example i do search value1 = 4 and value2 = 4
      First search work fine..
      But when i try to do second search i got this error..
      After restarting script its work again.. And always second action got error..
       
      Thanks for your help.. 

       

    • By g1doz
      Q1: How use fast freeze options in script
      Q2: if i want use gg.required but i want this to check latest version automatically, Not to write him the current version number, is this possible?
      Q3: I'm read about function make Request in gameguardian.net/help but  there is something I did not understand is how do I exchange data between script and Server For example I asked a user to enter a user name and password and this data I want to send to server and he compares them with the Database And tell him if they are true or wrong, how it is done on This function.
      Q4: For example, I want to create a script that changes the name of the player, I'm going to use the search in gg option "Text UTF-8" and after search they show me the results of the type Byte, Then I change it normally, For example, I want to show a pop-up message telling him to enter your name in the first cell and your new name in the second cell, How do I do this on Script?.
      Thanks guys for help, i really love this forum.
    • By YeetMeister
      So i am making a "Private" script menu for a friend so he gets into hacking too.
       
      But i dont know how to solve this problem
       
      I hope you get my Idea xD
       
      UI = 1 if gg.isVisible(true) then gg.setVisible(false) end CustomFoV = result[4] -- function main() gg.alert("{Press 'OK' to activate Hacks}\nthis hack Contains:\n~NoRecoil\n~Bigger Hitbox\n~FoV") Result = gg.prompt({"No Recoil","Bigger Hitbox", "FoV","Custom FoV(Needed if checked)\nSelect a number between 150 and 360"},nil,{"checkbox", "checkbox","checkbox","number"}) if result[1] then NoRecoil() end if result[2] then BigHitbox() end if result[3] then FoV() end if result[4] == FoV() then CustomFoV end UI =-1 end -- function NoRecoil() end function BigHitbox() end function FoV() end -- function exit() gg.toast("This script is made by \nஜ۩۩ஜ[K/D Destroyer]ஜ۩۩ஜ \nPrivate script made for wifi-iwnl") print("This script is made by \nஜ۩۩ஜ[K/D Destroyer]ஜ۩۩ஜ \nPrivate script made for wifi-iwnl") os.exit() end -- main() while true do if gg.isVisible(true) then gg.setVisible(false) UI = 1 end gg.sleep(100) if UI == 1 then main() end end  
    • By I-Do-Trolling
      So i this code:
      local old = gg.getRanges();
        gg.setRanges(gg.REGION_CODE_APP)
        gg.searchNumber ('360', gg.TYPE_FLOAT)
        gg.searchAddress('1C4',FFF)
        v = gg.prompt({i = "[setFov]Select a Number Between 175 and 360"}, {i = "0"})
      if v == nil then
        gg.clearResults()
        gg.toast("FoV Unchanged")
      else
        gg.getResults (5)
        gg.editAll(v["i"], gg.TYPE_FLOAT, false, gg.SIGN_EQUAL,
        0, -1)
        print("Changed FoV to:" .. v["i"])
        gg.clearResults()
        end
       
      But i wanna to turn it off 
      Can anyone help me 
×
×
  • Create New...