Jump to content
  • 0

How to do offset in script


Question

Posted

Please check my script and guide me what is issue is there . I want to do offset 2145 to 520 ahead.

 

function wol() 

gg.searchNumber('   3D;11D;2145D ', gg.TYPE_DWORD,false, gg.SIGN_EQUAL, 0, -1) 
gg.refineNumber(' 2145 ', gg. TYPE_DWORD)
local start = gg.getResults(1)
local target = start[1].address + 0×520
gg.setValues({ address = target , flags = gg.TYPE_DWORD, value = 10})
gg.toast(' MISSION HACK ') 
gg.clearResults() 
gg.alert(" Play 🌎 Denomination mission in easy level with Ace deployed") 

home = 1 
end 

Screenshot_20250829-111706.png

8 answers to this question

Recommended Posts

  • 0
Posted
7 hours ago, Ali7021 said:

Please check my script and guide me what is issue is there . I want to do offset 2145 to 520 ahead.

 

function wol() 

gg.searchNumber('   3D;11D;2145D ', gg.TYPE_DWORD,false, gg.SIGN_EQUAL, 0, -1) 
gg.refineNumber(' 2145 ', gg. TYPE_DWORD)
local start = gg.getResults(1)
local target = start[1].address + 0×520
gg.setValues({ address = target , flags = gg.TYPE_DWORD, value = 10})
gg.toast(' MISSION HACK ') 
gg.clearResults() 
gg.alert(" Play 🌎 Denomination mission in easy level with Ace deployed") 

home = 1 
end 

Screenshot_20250829-111706.png

function wol() 

-- do not have space for this u take error 

-- there wrong gg.searchNumber(' 3D;11D;2145D ', gg.TYPE_DWORD,false, gg.SIGN_EQUAL, 0, -1) 

-- this is true gg.searchNumber('3D;11D;2145D', gg.TYPE_DWORD,false, gg.SIGN_EQUAL, 0, -1) 

gg.refineNumber('2145', gg. TYPE_DWORD)

local start = gg.getResults(1)

local target = start[1].address + 0x520 -- (0×520 this write wrong u using a " * " not right this) 

gg.setValues({ address = target , flags = gg.TYPE_DWORD, value = 10})

gg.toast(' MISSION HACK ') 

gg.clearResults() 

gg.alert(" Play 🌎 Denomination mission in easy level with Ace deployed") 

 

home =

end 

 

Try it out and if you get an error I'll help you.

Also specify the memory range, this way your search will be more specific and faster.

  • 0
Posted
function wol() 
    gg.searchNumber('3D;11D;2145D', gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1) 
    gg.refineNumber('2145', gg.TYPE_DWORD)
    local start = gg.getResults(1)
    local target = start[1].address + 0x520  -- Changed × to x
    gg.setValues({
        [1] = {
            address = target,
            flags = gg.TYPE_DWORD,
            value = 10
        }
    })
    gg.toast('MISSION HACK') 
    gg.clearResults() 
    gg.alert("Play Denomination mission in easy level with Ace deployed")
    home = 1 
end

 

  • 0
Posted
On 8/29/2025 at 6:35 PM, FTRMN said:

Your script still giving error.. 

I got this script. It's running well searching well refine and void offset well but it's not freezing value .. please how can I fix it ?

 

 

 

function wol()

    gg.searchNumber('33D;17D;2145D:50', gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)

    gg.refineNumber('2145', gg.TYPE_DWORD)

    local start = gg.getResults(1)

    local target = start[1].address + 0x1E8

    local freezeValue = 10 -- Value to freeze

 

    -- Write initially

    gg.setValues({{

        address = target,

        flags = gg.TYPE_DWORD,

        value = freezeValue

    }})

 

    -- Freeze the value in a loop (keeps overwriting it)

    gg.toast("MISSION HACK - FREEZE ACTIVE")

    gg.alert("Play Denomination mission in easy level with Ace deployed")

 

    -- Run freeze in background (requires GG support for threads)

    gg.setVisible(false)

    while true do

        gg.setValues({{

            address = target,

            flags = gg.TYPE_DWORD,

            value = freezeValue

        }})

    end

end

 

  • 0
Posted

What I don't understand is why do you freeze a value that is already frozen in the background again? The value you already froze will remain fixed even if you put it in the background. You can add an option and say "unfreeze". What exactly do you want to do?

  • 0
Posted
function wol()
    gg.clearResults()
    -- Search ur Pattern there 
    gg.searchNumber('33D;17D;2145D:50', gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
  -- Refine ✓
    gg.refineNumber('2145', gg.TYPE_DWORD)
    
    local results = gg.getResults(1)
    if #results == 0 then
        gg.alert("Value not found! Please Search try again.")
        return
    end
    
    local baseAddress = results[1].address
  -- u give first 0x520 now 0x1E8 look here true value !!!
    local target = baseAddress + 0x1E8
    local freezeValue = 10 -- freeze Value
    local freezeActive = false --( freeze control init
    
    -- Initial write to the address
    gg.setValues({{
        address = target,
        flags = gg.TYPE_DWORD,
        value = freezeValue
    }})
    
    gg.toast("Address found and initial value set")
    
    -- Main menu loop With Added Freeze
    while true do
        local menu = gg.choice({
            "✅ Enable Freeze",
            "❌ Disable Freeze",
            "🚪 Exit"
        }, nil, "MISSION HACK - Select an option:")
        
        if menu == nil then
            break
        end
        
        if menu == 1 then
            -- Enable freeze there
            freezeActive = true
            gg.toast("Freeze ENABLED")
            gg.alert("Freeze is now active. Play Denomination mission on easy level with Ace deployed.")
            
            -- Start freeze in background because u want this ..
            gg.setVisible(false)
            while freezeActive do
                gg.setValues({{
                    address = target,
                    flags = gg.TYPE_DWORD,
                    value = freezeValue
                }})
                
                -- Check if GG interface is visible or if user wants to stop
                if gg.isVisible() then
                    freezeActive = false
                    gg.setVisible(true)
                    gg.toast("Freeze stopped")
                end
                
                gg.sleep(100)
            end
            
        elseif menu == 2 then
            -- Disable freeze
            freezeActive = false
            gg.toast("Freeze DISABLED")
            
        elseif menu == 3 then
            -- Exit
            freezeActive = false
            gg.toast("Script ended")
            break
        end
    end
end
wol()

I hope I understood correctly

  • 0
Posted
On 8/29/2025 at 6:35 PM, FTRMN said:

Brother I need lock this value ... Don't want to change after editing.. that's why i need freeze. This script is not locking this value . After every mission the value have change ... That's why I need freeze...lock

 

  • 0
Posted
On 8/31/2025 at 5:31 AM, Ali7021 said:

 

Repeatedly freezing will not fix this. Is the value actually staying the same? If the value is frozen, this tells Gameguardian to constantly set this value back to what you edited it to. It does not stop the game from changing the value, which can cause back-and-forth fighting if both are trying to set the value. You can try to go into Gameguardian' settings and set the freeze interval to 0 (this will make Gameguardian change the frozen value every 0 milliseconds, or as frequently as possible). This setting should be in the Settings for the Game section, if I am not mistaken.

 

It's also possible that the address changes, and the one you freeze stays the same but the game uses another value. Another possibility is that this is not the right vslue at all - perhaps it's a visual value but not the underlying one, or perhaps the real value is encrypted.

  • 0
Posted
On 8/30/2025 at 11:44 PM, FTRMN said:
function wol()
    gg.clearResults()
    -- Search ur Pattern there 
    gg.searchNumber('33D;17D;2145D:50', gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
  -- Refine ✓
    gg.refineNumber('2145', gg.TYPE_DWORD)
    
    local results = gg.getResults(1)
    if #results == 0 then
        gg.alert("Value not found! Please Search try again.")
        return
    end
    
    local baseAddress = results[1].address
  -- u give first 0x520 now 0x1E8 look here true value !!!
    local target = baseAddress + 0x1E8
    local freezeValue = 10 -- freeze Value
    local freezeActive = false --( freeze control init
    
    -- Initial write to the address
    gg.setValues({{
        address = target,
        flags = gg.TYPE_DWORD,
        value = freezeValue
    }})
    
    gg.toast("Address found and initial value set")
    
    -- Main menu loop With Added Freeze
    while true do
        local menu = gg.choice({
            " Enable Freeze",
            " Disable Freeze",
            " Exit"
        }, nil, "MISSION HACK - Select an option:")
        
        if menu == nil then
            break
        end
        
        if menu == 1 then
            -- Enable freeze there
            freezeActive = true
            gg.toast("Freeze ENABLED")
            gg.alert("Freeze is now active. Play Denomination mission on easy level with Ace deployed.")
            
            -- Start freeze in background because u want this ..
            gg.setVisible(false)
            while freezeActive do
                gg.setValues({{
                    address = target,
                    flags = gg.TYPE_DWORD,
                    value = freezeValue
                }})
                
                -- Check if GG interface is visible or if user wants to stop
                if gg.isVisible() then
                    freezeActive = false
                    gg.setVisible(true)
                    gg.toast("Freeze stopped")
                end
                
                gg.sleep(100)
            end
            
        elseif menu == 2 then
            -- Disable freeze
            freezeActive = false
            gg.toast("Freeze DISABLED")
            
        elseif menu == 3 then
            -- Exit
            freezeActive = false
            gg.toast("Script ended")
            break
        end
    end
end
wol()

I hope I understood correctly

My brother, this script applies the value you give and freezes it and stays like that until you cancel it, it does not change. Even you do not know what you want to do. What will we do with limited information?

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