Jump to content
  • 0

Help me add a condition to the script.


No1AndEvery1

Question

1 answer to this question

Recommended Posts

local function setAddr(addr, flags, value, freeze)
  local t      = {}
  t[1]         = {}
  t[1].address = addr
  t[1].flags   = flags
  t[1].value   = value
  t[1].freeze  = freeze

  gg.addListItems(t)
end


gg.searchNumber("1231234567890", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0)
local r = gg.getResults(3)

if #r == 0 then
  gg.alert("No results found")
  return
end

for _, v in ipairs(r) do
  local addr = v.address - 100
  setAddr(addr, 4, "1081", true)
end

for _, v in ipairs(r) do
  local addr = v.address - 104
  setAddr(addr, 4, "0", true)
end

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.