Jump to content
Lover1500

How to search continously. if one not found, search another one

Recommended Posts

I am trying to make a script with user input prompt

 

I could hack the game but to search it with group search is sometimes failed

 

The around addresses are changed whenever I reenter.

I noticed it changed into only three numbers.

What I want to is my script will search one

if not found?Try another one.

I have trouble with this.I dont know how to write in script and whats wrong in my script.

Help me plz.

 

local var = input[1]..";3485744::"

local var2 = input[1]..";30303006h::"

local var3 = input[1]..";32303006h::"

gg.searchNumber(var, gg.TYPE_DWORD,false,gg.SIGN_EQUAL, 0, -1)

if gg.getResultsCount == "0" then

gg.searchNumber(var2, gg.TYPE_DWORD,false,gg.SIGN_EQUAL, 0, -1)

if gg.getResultsCount == "0" then

gg.searchNumber(var3, gg.TYPE_DWORD,false,gg.SIGN_EQUAL, 0, -1)

gg.refineNumber(input[1])

gg.getResults("1")

gg.editAll("0", gg.TYPE_DWORD)

end

gg.refineNumber(input[1])

gg.getResults("1")

gg.editAll("0", gg.TYPE_DWORD)

end

gg.refineNumber(input[1])

gg.getResults("1")

gg.editAll("0", gg.TYPE_DWORD)

end

 

Share this post


Link to post
Share on other sites

Posted (edited)
6 hours ago, Lover1500 said:

local var = input[1]..";3485744::"

local var2 = input[1]..";30303006h::"

local var3 = input[1]..";32303006h::"

gg.searchNumber(var, gg.TYPE_DWORD,false,gg.SIGN_EQUAL, 0, -1)

if gg.getResultsCount ~=0 then

gg.refineNumber(input[1])

gg.getResults("1")

gg.editAll("0", gg.TYPE_DWORD) else

gg.searchNumber(var2, gg.TYPE_DWORD,false,gg.SIGN_EQUAL, 0, -1) end

if gg.getResultsCount ~= "0" then

gg.refineNumber(input[1])

gg.getResults("1")

gg.editAll("0", gg.TYPE_DWORD) else

gg.searchNumber(var3, gg.TYPE_DWORD,false,gg.SIGN_EQUAL, 0, -1)

gg.refineNumber(input[1])

gg.getResults("1")

gg.editAll("0", gg.TYPE_DWORD)

end

 

 

Edited by Rs92ks

Share this post


Link to post
Share on other sites
Posted (edited)
local var = input[1]..";3485744::"
local var2 = input[1]..";30303006h::"
local var3 = input[1]..";32303006h::"
	gg.searchNumber(var,gg.TYPE_DWORD,false,gg.SIGN_EQUAL, 0, -1)

if gg.getResultsCount()==0 then
    gg.searchNumber(var2,gg.TYPE_DWORD,false,gg.SIGN_EQUAL, 0, -1)
	    if gg.getResultsCount() == 0 then
        gg.searchNumber(var3,gg.TYPE_DWORD,false,gg.SIGN_EQUAL, 0, -1)
        gg.refineNumber(tonumber(input[1]))
        gg.getResults(1)
        gg.editAll(0,gg.TYPE_DWORD)
    end
	    gg.refineNumber(tonumber(input[1]))
    gg.getResults(1)
    gg.editAll(0,gg.TYPE_DWORD)
	end
	gg.refineNumber(tonumber(input[1]))
gg.getResults(1)
gg.editAll(0,gg.TYPE_DWORD)
	end -- end what?
	
user input values are strings 
"1" is a string
1 is a number
gg.getResultsCount() not gg.getResultsCount
Edited by MarioRossi93i

Share this post


Link to post
Share on other sites

Thank you sir

I havent wrote gg scripts for a long time so I forgot some gg lua functions

It worked!Thank you very much sir

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

  • Similar Content

    • By MarioRossi93i
      View File Real Racing 3 Race Mode (32/64bit)
      Real Racing 3 Race Mode (32/64bit)
       
      Current version: 1.0
       
      Description:
      With this script you can activate following hacks at once:
      - Autodrive Mode
      - Freeze Mode
      - Ghost Mode
      - KickAss Mode (not helpful if you active ghost mode too)
      Works with standard and rolling start
      FULLY COMPATIBLE WITH BOTH 32 AND 64 BIT DEVICES
       
      Instructions:
      Run this script after signal light has turned green.
       
      Video:
       
       
       
      Submitter MarioRossi93i Submitted 05/13/2020 Category LUA scripts  
    • By MarioRossi93i
      Real Racing 3 Race Mode (32/64bit)
       
      Current version: 1.0
       
      Description:
      With this script you can activate following hacks at once:
      - Autodrive Mode
      - Freeze Mode
      - Ghost Mode
      - KickAss Mode (not helpful if you active ghost mode too)
      Works with standard and rolling start
      FULLY COMPATIBLE WITH BOTH 32 AND 64 BIT DEVICES
       
      Instructions:
      Run this script after signal light has turned green.
       
      Video:
       
       
       
    • By Brilliant_Azure
      View File PUBG MOBILE 0.19.0 ANTIBAN SAFE VIP SCRIPT
       ⭕ PUBG MOBILE 0.19.0 SAFE SCRIPT ⭕
       FEATURES OF SCRIPT
      ☑️. ALL NEW & UPDATED  CODES FOR 0.19.0 PUBG UPDATE
      ☑️.SUPPORT ALL TYPE OF PROCESSORS
      ☑️.SUPPORT BOTH ROOTED AND NON-ROOTED DEVICES
      ☑️.ALL CODES ARE 100% CHECKED AND  SAFE
      ☑️.SIMPLE UI AND NO PASSWORD
      ♻️ FOR MORE FREE & WORKING PUBG HACKS JOIN 
       
      HOW TO HACK PUBG 0.19.0 TUTORIAL :- 
       
       
       
      Submitter Brilliant_Azure Submitted 10/29/2019 Category PUBG  
    • By Brilliant_Azure
      ⭕ PUBG MOBILE 0.19.0 SAFE SCRIPT ⭕
       FEATURES OF SCRIPT
      ☑️. ALL NEW & UPDATED  CODES FOR 0.19.0 PUBG UPDATE
      ☑️.SUPPORT ALL TYPE OF PROCESSORS
      ☑️.SUPPORT BOTH ROOTED AND NON-ROOTED DEVICES
      ☑️.ALL CODES ARE 100% CHECKED AND  SAFE
      ☑️.SIMPLE UI AND NO PASSWORD
      ♻️ FOR MORE FREE & WORKING PUBG HACKS JOIN 
       
      HOW TO HACK PUBG 0.19.0 TUTORIAL :- 
       
       
       
    • By Chr1ss
      View File Critical ops 1.17.0f1147 - 32/64 BIT - OP SCRIPT - NO BAN -- ZYPH
      This script is by far one of the FREE best scripts.
      All done just for the fun
       
      Pass-1
      More info on disc :https://discord.gg/n62dARe
       
      Feautures:
      Aim Assist Boost
      Fly
      Giant Body
      WallShoot
      Radar
      FireRate
      Larger Torso/Head Hitbox
      Rain
      And Much More
       
       
      Submitter Chr1ss Submitted 07/28/2020 Category LUA scripts  
×
×
  • Create New...