Jump to content
Sign in to follow this  
I-Do-Trolling

Help with gg.prompt

Recommended Posts

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 

Share this post


Link to post
Share on other sites

Write found address (or addresses) to file. On start - restore content from file. And if user want - write to this addresses 360.

Or make wait loop with menu on icon click. And store old addresses in variable. If user want - restore old value (360)/

Share this post


Link to post
Share on other sites

@Enyby thanks

And how can you make a script detect that u using game version

Edited by I-Do-Trolling
I need help

Share this post


Link to post
Share on other sites
50 minutes ago, DESYROLLERSE said:

I could not process this example 


print("External storage: "..gg.EXT_STORAGE)
local file = io.open(gg.EXT_STORAGE.."/test_log.txt", "w")
file:write("This is log file")
file:close()

you who are online could you help? @Revoxtical

 

What is wrong? This code has nothing wrong

Share this post


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

greetings to china.

Go die China

On 10/12/2018 at 4:44 AM, I-Do-Trolling said:

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

Your code has been fixed.

1 hour ago, DESYROLLERSE said:

local t = gg.prompt({'select file', 'output file','B', 'C', 'D'},nil,{'file','path', 'checkbox', 'checkbox'}) if t == nil then gg.alert('Canceled') else if t[1] then gg.getFile(sdcard) end if t[2] then end if t[3] then gg.alert('do C') end if t[4] then gg.alert('do D') end end

 

Err... maybe like this?

local t = gg.prompt({'select file', 'output file','B', 'C', 'D'},{gg.getFile(),"/sdcard/"},{'file','path', 'checkbox', 'checkbox', 'checkbox'})
if not t then
    gg.alert('Canceled')
else
    if t[1] then
    gg.getFile()
   end
    if t[2] then
        
    end
    if t[3] then
        gg.alert('do C')
    end
    if t[4] then
        gg.alert('do D')
    end
end

 

_______________________________________________
added 2 minutes later

/sdcard/ or /storage/eme?????/0/ is the same

but most of the phone chose the second one.

Share this post


Link to post
Share on other sites
16 minutes ago, DESYROLLERSE said:

I already know it ...

brother understand something ... I execute this script:


local t = gg.prompt({'select file', 'output file','B', 'C', 'D'},nil,{'file','path', 'checkbox', 'checkbox'})
if t == nil then
    gg.alert('Canceled')
else
    if t[1] then
    gg.getFile(sdcard)

   end
    if t[2] then
        
    end
    if t[3] then
        gg.alert('do C')
    end
    if t[4] then
        gg.alert('do D')
    end
end

and everything is great ... but when I press the first option.

I have to find the route to /sdcard./

When I press the second option I have to find the route to / sdcard /

what I want is to establish the direct route to / sdcard / to save the person time.

local g = {}
g.sel = nil
g.config = gg.EXT_FILES_DIR:gsub('files', 'tes.cfg')
g.data = loadfile(g.config)
if g.data ~= nil then
g.sel = g.data()
g.data = nil
end

while true do
g.sel = gg.prompt({
'Select file to encode :',--1
'Select writable path for output :',--2
},g.sel,
{'file',--1
'path',--2
})

if g.sel == nil then break end
gg.saveVariable(g.sel, g.config)

break
end

You can use part of enyby compiler to load config, you can select g.config .cfg file  location and name as you want. In my code above, I put .cfg file in the gg.EXT_FILES_DIR and named tes.cfg. You can improve as you need.

Share this post


Link to post
Share on other sites
4 minutes ago, DESYROLLERSE said:

hahaha I really like Chinese girls ...

I see many Chinese fight movies and they look like dolls ...

This girl is Korean and sings very well. doll

and this sings great ...

hahaha 


local t = gg.prompt({'select file', 'output file','B', 'C', 'D'},{gg.getFile(),"/sdcard/"},{'file','path', 'checkbox', 'checkbox', 'checkbox'})
if not t then
    gg.alert('Canceled')
else
    if t[1] then
    gg.getFile()
   end
    if t[2] then
        
    end
    if t[3] then
        gg.alert('do C')
    end
    if t[4] then
        gg.alert('do D')
    end
end

This was the sh-it he asked for.

thanks dude .....

you are a crack ..

my friend how long did you take to help ???

a few seconds

and the problem was solved.

Thank you ....

_______________________________________________
added 2 minutes later

thanks to you too ...

blessings ✌✌✌

Every usefull open source code is can be used by others, changing and improving code is an option based on your needs. 

Share this post


Link to post
Share on other sites
46 minutes ago, DESYROLLERSE said:

@noblack 

What do you think about the girls?

pretty or ugly ?? hahaha

in my school I conquered a girl ....

but when I met his sister, I liked more ...

and the mom ...

ooooo this delicious hahaha

 

Greetings .... I'll go to sleep because I have to get up very early.

thanks for the tips, the examples and the help of all ✌✌✌

 

First of all

If you want to get Chinese's girl

You have/MUST need the following things:

1. Money

2. Car

3. A house

4. A lot of money

And they're scumbag when you're poor.

That's what i think to Chinese's girl

And that's also why i hate China, maybe apart.

Share this post


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

@noblack  ⏳ you do not need all that .....
 you just need to have "very high self-esteem". ✌✌?

 

ok let's leave all that sh-it. haha ? and put the concentration on this question ?

 

@bukandewa I was trying to add this new function


if g.sel[18] == true then
data8 = 'gg.setRanges(bit32.bxor(gg.(""..g.sel[19]..""))'
addMRanges = on
else
data8 = ''
end
local result8 = tochar(data8) 
dataxx8 = 'load(string.char('..result8..'))()\n'

he created that the problem is that he is including " " 

Any suggestions, examples or help ? ??

 

Thank you ....

Because you put double (") inside concatenate function. It is should be put single quote first followed by double quotes. Then to closing, you should put double quotes first followed by single quote.

It is depends on your first use in the code. I give you example below how to using single and double quote in some different case.

str = 'world'
data = 'hello('..str..')'

str2 = 'world'
data2 = 'hello("'..str..'")'

str3 = "world"
data3 = "hello('"..str.."')"

str4 = "world"
data4 = "hello("..str..")"

print(data)--output : hello(world)
print(data2)--output : hello("world")
print(data3)--output : hello('world')
print(data4)--output : hello(world)

 

Share this post


Link to post
Share on other sites
5 minutes ago, DESYROLLERSE said:

if g.sel[18] == true then
data8 = 'gg.setRanges(bit32.bxor("'..g.sel[17]..'"))'
addMemoryRanges = on
else
data8 = ''
end
local result8 = tochar(data8) 
dataxx8 = 'load(string.char('..result8..'))()\n'

in this way the script executes ...

but you should put the entire exemption in the panel:

gg.REGION_C_ALLOC or any desired range.

but the generated script presents the error that I mentioned. the quotation marks "



Script error: org.luaj.vm2.LuaError: gg.setRanges(bit32.bxor("gg.REGION_C_ALLOC")):1
`gg.setRanges(bit32.bxor("gg.REGION_C_ALLOC"))`
bad argument #1 (string): number expected, got string
level = 1, pc = 6
stack traceback:
	gg.setRanges(bit32.bxor("gg.REGION_C_ALLOC")):1 in main chunk
	/sdcard/Meg.luaX: in main chunk
	

I would like to know how to eliminate the " "

_______________________________________________
added 2 minutes later

ok thank you very much ... I'll try

Well, single quote and double quotes will be complicated if you inconsistent in writing code. 

Syntax highlight will help you to see and find which code should be fixed.

Share this post


Link to post
Share on other sites

Err... you messed up.

Let me tidy up things.

String in string

use \

Example

a = "print(\"hello\")"

gg.Range is a function, you can't run this with gg.setRange because they didn't get what is "gg.Rnage_*_*"

Share this post


Link to post
Share on other sites
Just now, DESYROLLERSE said:

there is some way for the ranges selected by people to be entered in this way


gg.setRanges(bit32.bxor(gg.REGION_ANONYMOUS, gg.REGION_BAD, gg.REGION_C_ALLOC))  

and not like that


gg.setRanges(bit32.bxor(gg.REGION_ANONYMOUS))
gg.setRanges(bit32.bxor(gg.REGION_BAD))
gg.setRanges(bit32.bxor(gg.REGION_C_ALLOC))  

that's the problem ....

or is it something very difficult to achieve?


if g.sel[18] == true then
data8 = 'gg.setRanges(bit32.bxor('..g.sel[17]..'))'
addMemoryRanges = on
else
data8 = ''
end
local result8 = tochar(data8) 
dataxx8 = 'load(string.char('..result8..'))()\n'

This way you can do it ... but the person will have to write ...

and what I'm trying to achieve is that it's automatic.

 

I'm going to label with great respect the people that I think may know the solution.

and maybe help or provide an idea or an example.

@bukandewa @noblack

@Revoxtical @Enyby

If for some reason the contribution you can provide is to send me to Google.

With all due respect, I ask you to omit this label.

Any other person who knows Lua and wants to contribute an idea or example will be welcome.

thanks to everyone.

_20190308_063602.JPG

Rewrite code later.

Ill just online from now to 3h later

_______________________________________________
added 0 minutes later

I mean, keep online"ing"

Share this post


Link to post
Share on other sites

try this

 

Table_4_Ranges= {

gg.REGION_C_ALLOC,
...,
-- Write it yourself
}
randomnum=1
for i=(The number of the first rane in your prompt), (the end of the range in prompt) do
if g.sel[i] == true then
data8 = 'gg.setRanges(bit32.bxor('..Table_4_Ranges[randomnum]..'))
addMemoryRanges = on
else
data8 = ''
end
local result8 = tochar(data8) 
dataxx8 = 'load(string.char('..result8..'))()\n'
randomnum=randomnum+1
end

 

_______________________________________________
added 2 minutes later
1 minute ago, noblack said:

'gg.setRanges(bit32.bxor('..Table_4_Ranges[randomnum]..'))

I missed a ' at the end

_______________________________________________
added 3 minutes later
2 minutes ago, noblack said:

addMemoryRanges = on

 And your on should be a boolen like true,false or number 1,0 or string 'on',"off"

_______________________________________________
added 3 minutes later

@DESYROLLERSE

Share this post


Link to post
Share on other sites

Oh nvm

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
Sign in to follow this  

  • Similar Content

    • 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 juyox
      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
       
    • 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  
×
×
  • Create New...