Jump to content
  • 0

Need help in script


Nikhil336
 Share

Question

10 answers to this question

Recommended Posts

  • 1
gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber('1072861020;152727:21', gg.TYPE_DWORD)
gg.refineNumber('152727', gg.TYPE_DWORD)
local dwordNumber = gg.getResults(gg.getResultsCount())
local qwordNumber = {}
qwordNumber[1] = {}
qwordNumber[1]['flags'] = gg.TYPE_QWORD
qwordNumber[1]['address'] = dwordNumber[1]['address'] + 0x28
qwordNumber = gg.getValues(qwordNumber)
gg.clearResults()
gg.searchNumber(qwordNumber[1]['value'], gg.TYPE_QWORD)
local get = gg.getResults(2700)
print(get)

could write myself.

Edited by zolotov_official0
Link to comment
Share on other sites

  • 0
On 8/6/2022 at 10:11 AM, Nikhil336 said:

After using offset I found a value type Qword and I want to print that value.

Please tell me how to write it in a script

I don't know is it possible or not.

 

6 hours ago, MAARS said:

Give more information if you want an accurate response, or people will just try to guess

I think he mean when he using offset he found let say 6 values he wants to print those numbers 

Link to comment
Share on other sites

  • 0
On 8/6/2022 at 10:11 AM, Nikhil336 said:

After using offset I found a value type Qword and I want to print that value.

Please tell me how to write it in a script

I don't know is it possible or not.

gg.searchNumber('100', gg.TYPE_QWORD)
local varTable = gg.getResults(gg.getResultsCount())
for i=1,#varTable do
  print(varTable[i]['value'])
end


if you show your code, I can give a more accurate answer, but the principle of work will be the same.

Edited by zolotov_official0
Link to comment
Share on other sites

  • 0

If I am able to print that value then I also be able to search that value for 2700 result I do it manually you will understand in the video(below)

function find()
     if menu == 1 then gg.clearResults()
gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber("1,072,861,020D;152,727D:21", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0)
gg.refineNumber("152727", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0)

local j = gg.getResults(100000, nil, nil, nil, nil, nil, nil, nil, nil)
gg.addListItems(j)
j = nil
gg.clearResults()
local copy = false
local j = gg.getListItems()
if not copy then gg.removeListItems(j) end
for i, v in ipairs(j) do
    v.address = v.address + 0x28
    v.flags = gg.TYPE_QWORD
    if copy then v.name = v.name..' #2' end
end
gg.addListItems(j)
j = nil
copy = nil

I don't know what to write further

 

 

Link to comment
Share on other sites

  • 0
On 8/10/2022 at 12:27 PM, zolotov_official0 said:

gg.searchNumber('100', gg.TYPE_QWORD)
local varTable = gg.getResults(gg.getResultsCount())
for i=1,#varTable do
  print(varTable[i]['value'])
end


if you show your code, I can give a more accurate answer, but the principle of work will be the same.

If I am able to print that value then I also be able to search that value for 2700 result I do it manually you will understand in the video(below)

function find()
     if menu == 1 then gg.clearResults()
gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber("1,072,861,020D;152,727D:21", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0)
gg.refineNumber("152727", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0)

local j = gg.getResults(100000, nil, nil, nil, nil, nil, nil, nil, nil)
gg.addListItems(j)
j = nil
gg.clearResults()
local copy = false
local j = gg.getListItems()
if not copy then gg.removeListItems(j) end
for i, v in ipairs(j) do
    v.address = v.address + 0x28
    v.flags = gg.TYPE_QWORD
    if copy then v.name = v.name..' #2' end
end
gg.addListItems(j)
j = nil
copy = nil

I don't know what to write further

 

 

Link to comment
Share on other sites

  • 0
11 hours ago, zolotov_official0 said:
gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber('1072861020;152727:21', gg.TYPE_DWORD)
gg.refineNumber('152727', gg.TYPE_DWORD)
local dwordNumber = gg.getResults(gg.getResultsCount())
local qwordNumber = {}
qwordNumber[1] = {}
qwordNumber[1]['flags'] = gg.TYPE_QWORD
qwordNumber[1]['address'] = dwordNumber[1]['address'] + 0x28
qwordNumber = gg.getValues(qwordNumber)
gg.clearResults()
gg.searchNumber(qwordNumber[1]['value'], gg.TYPE_QWORD)
local get = gg.getResults(2700)
print(get)

could write myself.

Thanks for help

Link to comment
Share on other sites

  • 0
11 hours ago, zolotov_official0 said:
gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber('1072861020;152727:21', gg.TYPE_DWORD)
gg.refineNumber('152727', gg.TYPE_DWORD)
local dwordNumber = gg.getResults(gg.getResultsCount())
local qwordNumber = {}
qwordNumber[1] = {}
qwordNumber[1]['flags'] = gg.TYPE_QWORD
qwordNumber[1]['address'] = dwordNumber[1]['address'] + 0x28
qwordNumber = gg.getValues(qwordNumber)
gg.clearResults()
gg.searchNumber(qwordNumber[1]['value'], gg.TYPE_QWORD)
local get = gg.getResults(2700)
print(get)

could write myself.

Thanks for the help it works perfectly.

Please suggest a beginner like me how can I get knowledge about coding and language for game modding. Game hacking is more interesting then playing.

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.