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 NecroWare
      View File Critical ops script NecroWare
      Necroware is script for c ops (NO ROOT REQUIRED).
      Don't forget to rate our job.
      Our discord server: https://discord.gg/eE7bDkA
      Check our youtube: 
       
      🔮NecroWare on TOP!🔮
      Submitter NecroWare Submitted 07/30/2020 Category LUA scripts  
    • 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  
    • By NecroWare
      Necroware is script for c ops (NO ROOT REQUIRED).
      Don't forget to rate our job.
      Our discord server: https://discord.gg/eE7bDkA
      Check our youtube: 
       
      🔮NecroWare on TOP!🔮
    • By Chr1ss
      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
       
       
    • By MarioRossi93i
      View File Real Racing 3 Autodrive Freeze Ghost AIO (x64 only)
      Real Racing 3 Autodrive Freeze Ghost
       
      Current version: alpha 1.0
       
      Requirements:
      - Game Guardian v.96.0+
      - 64 Bit device
       
      Description:
      Activate Autodrive, freeze and ghost all in one.
      64 bit only
       
      Instructions:
      - Run it after the traffic light has turned green
       
      Video:
       
      Submitter MarioRossi93i Submitted 05/13/2020 Category LUA scripts  
×
×
  • Create New...