Jump to content

Help me for search more then one value

Recommended Posts

help me to find more than one value

I mean, if I look for the value "25" and there are no results, then continue to look for the second value "20".
but if I look for the value "25" and there are results, then don't look for the second value "20"

I tried writing the script but GG always read i search value "5"

sorry for my english
I hope you understand what I mean


gg.searchNumber("25~20", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0)
gg.refineAddress("7???????5C", -1, gg.TYPE_DWORD, gg.SIGN_EQUAL, 0, -1, 0)
r = gg.getResults(1)
local t = {}
t[1] = {}
t[1].address = r[1].address - 0x4
t[1].flags = 4
t[1].value = 123
t[1].address = r[1].address - 0x8
t[1].flags = 4
t[1].value = 123
t = nil


Share this post

Link to post
Share on other sites

try using if else method

Share this post

Link to post
Share on other sites
25 minutes ago, renzo13 said:

try using if else method

okay sir, i will try it👌

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 272833839393393828
      View File Rocket Royale script 2020
      Ilyâss funny gamer

      Submitter 272833839393393828 Submitted 07/03/2020 Category LUA scripts  
    • By fllwr
      I use other script engine/app to automate some game play and  I use GG run some task on demand.
      The problem is, GG script seems to be interrupted if target process is terminated. (Reasonable but block in my way)
      But sometimes I want to kill/restart the game, and therefore need to automate attach/load script.
      To make it happen:
      1. If it is possible to attach process/load script through local IPC or shell command.
          I think it is not possible now.
      2. Automate tap on GG to attach/load script. But there are two major problems to solve:
          A. Find the game process can be non-trivial as the position in list seems unpredictable.
          B. Find GG floating icon can be non-trivial.
      Anyway, I would like to request some (trivial) features for menu/UI, which benefits humans and also can make my automation easier.
      1. Add options to sort process list by pid/display name/package name.
          IMO a sorted list is much easier to locate the process.
          (It seems that GG tries to put foremost window's process 1st in list, but not always and other window/process are not sorted.
           In case there is another floating window around, it is most likely that the floating window's app is 1st in list, and the game is at random list position.)
      2. Add a menu entry to set/set floating icon position in menu. Add a menu entry to change floating icon size.
          IMO a smaller floating window (without auto hide) is most convenient.
          Remember and apply accurate floating icon position is much easier than struggle to drag GG to correct region every time.
         (One practical use case is when speedhack is use frequently to tweak speed up/down all the time.
          GG's floating icon is large, and huge if speedhack's arrows is shown -- I knew long press again can hide arrows, but it is inconvenient if I want to change speed all the time)
      It would be easiest possible to attach process/load script through local IPC or shell command.
    • By fllwr
      e.g. ((1592891810914 / 1000) == 1592891810) evaluates to true in GG
      Obviously this is not the default behavior of Lua 5.3.
      GG 99.0, arm64
      In addition to broken division, converting fp number to string yields different result in GG.
      print(1592891810914 * 0.001) gives out "1.592891810914E9" in GG, though it is "1592891810.914" in every other lua console I used.
    • By Nothin2cee
      I've been using game guardian to modify values in Tap Sports Baseball for a couple years now, the security has gotten better and better since I started including flagging for certain virtual spaces (parallel, xposed, calc). We figured out that vmos would work so we used that and the code was the same as always.
      Now parallel space works again and its a much better app than vmos but for some reason the code in PS is different than vmos. I believe this is due to 32 bit vs 64 bit? But I'm no expert.
      Why would the code change like this? In vmos it uses mainly dword (99% of the time) but in PS we are getting more qword results as well as additional lines of code (127D) where there never used to be code.
      Any insight would be appreciated!
  • Create New...