Jump to content
  • 0

HELP ME ON PROMPT


vo1shebn1k
 Share

Question

 

Good afternoon, I encountered such a problem when making a script with the PROMPT function, after choosing an action from the menu it does not translate into the PROMPT window, it gives this error. Tell me what you need to fix the screenshots and the code I’ll attach. excuse my english at google translator level

Spoiler

1.thumb.png.34cf44fa465b1f835e609784ab682d27.png

Spoiler

Script error: luaj.LuaError: @/storage/emulated/0/Download/1.lua:21
`blahblahblah()`
attempt to call nil
level = 1, const = 18, proto = 0, upval = 1, vars = 5, code = 45
CALL v1..v1
 ; PC 1 CODE 0080405D OP 29 A 1 B 1 C 1 Bx 513 sBx -130558
stack traceback:
    /storage/emulated/0/Download/1.lua:21 in function 'GodeMode'
    /storage/emulated/0/Download/1.lua:13 in function 'main'
    /storage/emulated/0/Download/1.lua:51 in main chunk
    [Java]: in ?
    at luaj.LuaValue.checkmetatag(LuaValue.java:2780)
    at luaj.LuaValue.callmt(LuaValue.java:1962)
    at luaj.LuaValue.call(LuaValue.java:1389)
    at luaj.LuaValue.callNotNull(LuaValue.java:3118)
    at luaj.LuaClosure.execute(LuaClosure.java:507)
    at luaj.LuaClosure.call(LuaClosure.java:166)
    at luaj.LuaValue.callNotNull(LuaValue.java:3131)
    at luaj.LuaClosure.execute(LuaClosure.java:508)
    at luaj.LuaClosure.call(LuaClosure.java:159)
    at luaj.LuaValue.callNotNull(LuaValue.java:3118)
    at luaj.LuaClosure.execute(LuaClosure.java:507)
    at luaj.LuaClosure.call(LuaClosure.java:159)
    at android.ext.Script.runScript(Script.java:5600)
    at android.ext.Script$ScriptThread.run(Script.java:5370)

Spoiler

gg.toast('✖ -------✖')
gg.toast('---------')
--Game guardian detection
if gg.isVisible(true) then gg.setVisible(false)
end
gg.clearResults()
kele0=0
Qjctx=1
function main()
    gg.clearResults()
	gg.setVisible(false)
    menu = gg.choice({'GodeMode(Enable)','Exit'},nil,'Выбери кнопку для взлома')
           if menu == 1 then GodeMode(Enable) 
              elseif menu == 2 then SM8(K) 
end
   Qjctx=-1
end


function GodeMode(Enable)
blahblahblah()
if S == nil then main()
else
	gg.searchNumber(""..S[1]..';12345', gg.TYPE_DWORD)
	gg.getResults('9494949393939')
	gg.refineNumber('12345', gg.TYPE_DWORD)
	gg.getResults('9494949393939')
	gg.editAll('101010', gg.TYPE_DWORD)
	gg.toast('INCREDIBLE JOB !!!')
end
	main()
end


function SM8(K)
print('▶---------◀')
gg.toast('▶Надеюсь вам понравилась◀')
gg.toast('▶Спасибо за использование◀')
os.exit()
end

while(true)
do
  --gg.sleep(999999999999999990)
  --Game guardian detection
  if gg.isVisible(true) then
    Qjctx=1
    gg.setVisible(false) 
  end 
  gg.clearResults()
  if Qjctx==1 then   main() end
end

 

 

Edited by vo1shebn1k
Link to comment
Share on other sites

15 answers to this question

Recommended Posts

  • 0
8 hours ago, vo1shebn1k said:

 

Good afternoon, I encountered such a problem when making a script with the PROMPT function, after choosing an action from the menu it does not translate into the PROMPT window, it gives this error. Tell me what you need to fix the screenshots and the code I’ll attach. excuse my english at google translator level

  Hide contents

1.thumb.png.34cf44fa465b1f835e609784ab682d27.png

  Reveal hidden contents

Script error: luaj.LuaError: @/storage/emulated/0/Download/1.lua:21
`blahblahblah()`
attempt to call nil
level = 1, const = 18, proto = 0, upval = 1, vars = 5, code = 45
CALL v1..v1
 ; PC 1 CODE 0080405D OP 29 A 1 B 1 C 1 Bx 513 sBx -130558
stack traceback:
    /storage/emulated/0/Download/1.lua:21 in function 'GodeMode'
    /storage/emulated/0/Download/1.lua:13 in function 'main'
    /storage/emulated/0/Download/1.lua:51 in main chunk
    [Java]: in ?
    at luaj.LuaValue.checkmetatag(LuaValue.java:2780)
    at luaj.LuaValue.callmt(LuaValue.java:1962)
    at luaj.LuaValue.call(LuaValue.java:1389)
    at luaj.LuaValue.callNotNull(LuaValue.java:3118)
    at luaj.LuaClosure.execute(LuaClosure.java:507)
    at luaj.LuaClosure.call(LuaClosure.java:166)
    at luaj.LuaValue.callNotNull(LuaValue.java:3131)
    at luaj.LuaClosure.execute(LuaClosure.java:508)
    at luaj.LuaClosure.call(LuaClosure.java:159)
    at luaj.LuaValue.callNotNull(LuaValue.java:3118)
    at luaj.LuaClosure.execute(LuaClosure.java:507)
    at luaj.LuaClosure.call(LuaClosure.java:159)
    at android.ext.Script.runScript(Script.java:5600)
    at android.ext.Script$ScriptThread.run(Script.java:5370)

  Hide contents


gg.toast('✖ -------✖')
gg.toast('---------')
--Game guardian detection
if gg.isVisible(true) then gg.setVisible(false)
end
gg.clearResults()
kele0=0
Qjctx=1
function main()
    gg.clearResults()
	gg.setVisible(false)
    menu = gg.choice({'GodeMode(Enable)','Exit'},nil,'Выбери кнопку для взлома')
           if menu == 1 then GodeMode(Enable) 
              elseif menu == 2 then SM8(K) 
end
   Qjctx=-1
end


function GodeMode(Enable)
blahblahblah()
if S == nil then main()
else
	gg.searchNumber(""..S[1]..';12345', gg.TYPE_DWORD)
	gg.getResults('9494949393939')
	gg.refineNumber('12345', gg.TYPE_DWORD)
	gg.getResults('9494949393939')
	gg.editAll('101010', gg.TYPE_DWORD)
	gg.toast('INCREDIBLE JOB !!!')
end
	main()
end


function SM8(K)
print('▶---------◀')
gg.toast('▶Надеюсь вам понравилась◀')
gg.toast('▶Спасибо за использование◀')
os.exit()
end

while(true)
do
  --gg.sleep(999999999999999990)
  --Game guardian detection
  if gg.isVisible(true) then
    Qjctx=1
    gg.setVisible(false) 
  end 
  gg.clearResults()
  if Qjctx==1 then   main() end
end

 

 

function GodeMode(Enable) blahblahblah()

 

You need to define blahblahblah() first .

Link to comment
Share on other sites

  • 0

How to link this block so that it works? what you need to add or register. to get from Godemode to PROMPT. Thank you all just responded to help. I'm just new to this.

Spoiler

1.thumb.png.bf9cd061ef99893f2f15c3189d277489.png2.thumb.png.d645325dd020aca1487366f5f2c56550.png

 

Spoiler

if gg.isVisible(true) then gg.setVisible(false)
end
gg.clearResults()
kele0=0
Qjctx=1
function main()
    gg.clearResults()
	gg.setVisible(false)
    menu = gg.choice({'GodeMode(Enable)','Exit'},nil,'Выбери кнопку для взлома')
           if menu == 1 then GodeMode(Enable) 
              elseif menu == 2 then SM8(K) 
end
   Qjctx=-1
end


function GodeMode(Enable)
blahblahblah()
if S == nil then main()
else
	gg.searchNumber(""..S[1]..';12345', gg.TYPE_DWORD)
	gg.getResults('9494949393939')
	gg.refineNumber('12345', gg.TYPE_DWORD)
	gg.getResults('9494949393939')
	gg.editAll('101010', gg.TYPE_DWORD)
	gg.toast('INCREDIBLE JOB !!!')
end
	main()
end


function SM8(K)
print('▶----------------)◀')
gg.toast('▶---------------◀')
gg.toast('▶-------------◀')
os.exit()
end

while(true)
do
  --gg.sleep(999999999999999990)
  --Game guardian detection
  if gg.isVisible(true) then
    Qjctx=1
    gg.setVisible(false) 
  end 
  gg.clearResults()
  if Qjctx==1 then   main() end
end

 

 

Link to comment
Share on other sites

  • 0

Understood with the blablabla) but lost the search and editing values (

Without Prompt I looked like

gg.searchNumber ('580; 301',
gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0.6)

double value, how can this be implemented now? And so that after searching change all their values, for example to 77777

Spoiler

function GodeMode(Enable)
    S = gg.prompt {'поле'}
if S == nil then main()
else
	gg.searchNumber(""..S[1]..'1234', gg.TYPE_DWORD)
	gg.getResults('999999')
	gg.refineNumber('1234', gg.TYPE_DWORD)
	gg.getResults('999999')
	gg.editAll('99999', gg.TYPE_DWORD)
	gg.toast('выполнил')
end
	main()
end

 

 

Edited by vo1shebn1k
Link to comment
Share on other sites

  • 0

Thanks for the help, I completed the script, there is one question left: how to fasten the freezing function after changing the value.

Spoiler

gg.toast('✖----------✖')
gg.toast('----------------')
--Game guardian detection
if gg.isVisible(true) then gg.setVisible(false)
end
gg.clearResults()
kele0=0
Qjctx=1
function main()
    gg.clearResults()
	gg.setVisible(false)
    menu = gg.choice({'GodeMode(Enable)','Exit'},nil,'Выбери кнопку для взлома')
           if menu == 1 then GodeMode(Enable) 
              elseif menu == 2 then SM8(K) 
end
   Qjctx=-1
end


function GodeMode(Enable)
data = gg.prompt({[1]='life; damage', [2]='desired value', [3]='do not change'}, {[1]='580;301', [2]='99999', [3]='999'})
gg.searchNumber(data[1], gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
found = gg.getResultCount()
gg.getResults(data[3])
replaced = gg.editAll(data[2], gg.TYPE_DWORD)
end


function SM8(K)
print('▶-------------------)◀')
gg.toast('▶Надеюсь вам понравилась◀')
gg.toast('▶Спасибо за использование◀')
os.exit()
end

while(true)
do
  --gg.sleep(999999999999999990)
  --Game guardian detection
  if gg.isVisible(true) then
    Qjctx=1
    gg.setVisible(false) 
  end 
  gg.clearResults()
  if Qjctx==1 then   main() end
end

 

 

Link to comment
Share on other sites

  • 0
13 hours ago, AKRAMRAZA said:

Функция GodeMode (Включить), бла-бла-блах ()

 

Вы должны сначала определить blahblahblah ().

 

14 hours ago, Rs92ks said:

Дайте полный сценарий. Этот скрипт не работает.

could you tell me?

Link to comment
Share on other sites

  • 0
19 hours ago, vo1shebn1k said:

 

could you tell me?

gg.toast('✖----------✖')
gg.toast('----------------')
--Game guardian detection
if gg.isVisible(true) then gg.setVisible(false)
end
gg.clearResults()
kele0=0
Qjctx=1
function main()
    gg.clearResults()
    gg.setVisible(false)
    menu = gg.choice({'GodeMode(Enable)','Exit'},nil,'Выбери кнопку для взлома')
           if menu == 1 then GodeMode(Enable) 
              elseif menu == 2 then SM8(K) 
end
   Qjctx=-1
end


function GodeMode(Enable)
data = gg.prompt({[1]='life; damage', [2]='desired value', [3]='do not change'}, {[1]='580;301', [2]='99999', [3]='999'})
gg.searchNumber(data[1], gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
local found = gg.getResults(data[3])
for i, v in ipairs(found) do
    if v.flags == gg.TYPE_DWORD then
        v.value = data[2]
        v.freeze = true
    end
end
gg.addListItems(found)
found = nil
end


function SM8(K)
print('▶-------------------)◀')
gg.toast('▶Надеюсь вам понравилась◀')
gg.toast('▶Спасибо за использование◀')
os.exit()
end

while(true)
do
  --gg.sleep(999999999999999990)
  --Game guardian detection
  if gg.isVisible(true) then
    Qjctx=1
    gg.setVisible(false) 
  end 
  gg.clearResults()
  if Qjctx==1 then   main() end
end

Link to comment
Share on other sites

  • 0
5 hours ago, AKRAMRAZA said:

function GodeMode(Enable)
data = gg.prompt({[1]='life; damage', [2]='desired value', [3]='do not change'}, {[1]='580;301', [2]='99999', [3]='999'})
gg.searchNumber(data[1], gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
local found = gg.getResults(data[3])
for i, v in ipairs(found) do
    if v.flags == gg.TYPE_DWORD then
        v.value = data[2]
        v.freeze = true
    end
end
gg.addListItems(found)
found = nil
end

 

Thank you. Great work. And you do not know by chance whether it would be possible for the script to memorize the numerical value that is driven into [1] = '580; 301 so that it would not constantly change it. For example, today I need the value 657; 402, and every time I run the script, I need to change it, so that I can enter it and remain there without editing in the txt editor. data = gg.prompt ({[1] = 'life; damage', [2] = 'desired value', [3] = 'do not change'}, {[1] = '580; 301', [2 ] = '99999', [3] = '999'}) I think it will be clear that Google translator)

Link to comment
Share on other sites

  • 0
3 hours ago, vo1shebn1k said:

Thank you. Great work. And you do not know by chance whether it would be possible for the script to memorize the numerical value that is driven into [1] = '580; 301 so that it would not constantly change it. For example, today I need the value 657; 402, and every time I run the script, I need to change it, so that I can enter it and remain there without editing in the txt editor. data = gg.prompt ({[1] = 'life; damage', [2] = 'desired value', [3] = 'do not change'}, {[1] = '580; 301', [2 ] = '99999', [3] = '999'}) I think it will be clear that Google translator)

To memorize the value in data[1] , just simply pass it to any variable .

Example - > a = data[1]

It will memorize the value driven into data[1] .

If I am understanding correctly then you need 657;402 so in prompt write that value . 

data = gg.prompt({[1]gg.prompt ({[1] = 'life; damage', [2] = 'desired value', [3] = 'do not change'}, {[1] = '657; 402', [2 ] = '99999', [3] = '999'}).

Next time when it changes , change 657;402 to that value.

If I understood wrong then try to be more specific what you are asking.

Link to comment
Share on other sites

  • 0
21 minutes ago, AKRAMRAZA said:

To memorize the value in data[1] , just simply pass it to any variable .

Example - > a = data[1]

It will memorize the value driven into data[1] .

If I am understanding correctly then you need 657;402 so in prompt write that value . 

data = gg.prompt({[1]gg.prompt ({[1] = 'life; damage', [2] = 'desired value', [3] = 'do not change'}, {[1] = '657; 402', [2 ] = '99999', [3] = '999'}).

Next time when it changes , change 657;402 to that value.

If I understood wrong then try to be more specific what you are asking.

come I didn’t understand you or I didn’t explain correctly) 

the screenshot shows life; damage 580; 301 then I enter the values for example 120; 43 I execute the script it changes me the values in the game. I repeat the procedure again, when the script was executed, 580; 301 remained in the variable input field, but did not change to 120; 43. And I want to understand whether it is possible to do so that you entered them in this window and the value was remembered.

Spoiler

1.thumb.png.0dd3cf95f3ae22a682731d94bf1cf01d.png2.thumb.png.18df8d39b0f3c6eb4c987daff338ad31.png

 

Link to comment
Share on other sites

  • 0
3 hours ago, vo1shebn1k said:

come I didn’t understand you or I didn’t explain correctly) 

the screenshot shows life; damage 580; 301 then I enter the values for example 120; 43 I execute the script it changes me the values in the game. I repeat the procedure again, when the script was executed, 580; 301 remained in the variable input field, but did not change to 120; 43. And I want to understand whether it is possible to do so that you entered them in this window and the value was remembered.

  Hide contents

1.thumb.png.0dd3cf95f3ae22a682731d94bf1cf01d.png2.thumb.png.18df8d39b0f3c6eb4c987daff338ad31.png

 

Ahh , so you want a script that remembers your last input data and uses it for next edit . See my video , like that you mean ??

https://youtu.be/2m8jkfP5j1o

 

Link to comment
Share on other sites

  • 0
37 minutes ago, AKRAMRAZA said:

Ах, вы хотите скрипт, который запоминает ваши последние входные данные и использует их для следующего редактирования. Смотрите мое видео, как вы это имеете в виду ??

https://youtu.be/2m8jkfP5j1o

 

I looked but honestly did not understand) apparently I know very little for this) 

Is it possible to attach something like this to my script?

Or will I have to create a new script 
from scratch?

Link to comment
Share on other sites

  • 0
58 minutes ago, vo1shebn1k said:

I looked but honestly did not understand) apparently I know very little for this) 

Is it possible to attach something like this to my script?

Or will I have to create a new script 
from scratch?

It is possible for that you need to put an alert and then write the prompt variable , store the input data in a variable , execute the search and edit and after that again store your value to variable so that Script can use it again.But since you will need to change a lot of things for that.

So when you search damage 580; 301 then enter the values for example 120; 43 and execute the script it changes the values in the game. When you repeat the procedure again, when the script is executed write 120;43 in the box where you see 580;43.Since , you are using prompt input it means the script will use whatever value you give it.

Link to comment
Share on other sites

  • 0

Correct format for single prompt

local fi = gg.prompt({"health hack"},
{[1] ="0"},
{[1] ="number"})
gg.searchNumber(fi[1],gg.TYPE_FLOAT)
gg.getResults(fi[1])
gg.editAll("99999999",gg.TYPE_FLOAT)

 

 

Correct format for double prompt

local fi = gg.prompt({"health hack","speed hack"},
{[1] ="0"},
{[2]="0"},
{["1,2"] ="number"})
gg.searchNumber(fi[1],gg.TYPE_FLOAT)
gg.getResults(fi[1])
gg.editAll("99999999",gg.TYPE_FLOAT)
gg.isVisible(false)
gg.setVisible(true)
gg.searchNumber(fi[2],gg.TYPE_FLOAT)
gg.getResults(fi[2])
gg.editAll("99",gg.TYPE_FLOAT)

Edited by Hackerboss4444
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.