Merhaba arkadaşlar arm64 içinden bir kaç veri değiştirmek için aşağıdaki gibi bir kod yazdım fakat çalıştıramadım bilgisi olan yardımcı olabilir mi lütfen.
Kod:
local menu = {
"Zoom Control",
"EagleEye Hack",
"Exit"
}
local HexTest = {
ZoomControl = {
arm64 = {
Off = nil,
["1"] = 0x1E2E3001,
["2"] = 0x1E2E5001,
["3"] = 0x1E2E7001,
["4"] = 0x1E2EB001,
["5"] = 0x1E2F1001,
["6"] = 0x1E2F9001,
["7"] = 0x1E201001,
["8"] = 0x1E229001,
["9"] = 0x1E235001,
["10"] = 0x1E241001
},
offset = 0x589738
},
EagleEye = {
arm64 = {
On = 0x1E27D000,
Off = nil
},
offset = 0x5AF678
}
}
-- Function to apply the modifications based on user selection
local function applyFeature(feature, state)
if not HexTest[feature] or not HexTest[feature].arm64 then
gg.alert("Feature not available: " .. feature)
return
end
local values = HexTest[feature].arm64[state]
local offset = HexTest[feature].offset
if not values then
gg.alert("State not available: " .. state)
return
end
if type(values) == "table" then
for i, v in ipairs(values) do
local address = offset and (offset[i] + 0) or 0
gg.setValues({{address = address, flags = gg.TYPE_DWORD, value = v}})
end
else
local address = offset and (offset + 0) or 0
gg.setValues({{address = address, flags = gg.TYPE_DWORD, value = values}})
end
gg.toast(feature .. " set to " .. state)
end
-- Main menu loop with multiple feature selection
while true do
local choices = gg.multiChoice(menu, nil, "HexTest Features Menu")
if choices == nil then
gg.alert("No option selected. Returning to menu.")
else
if choices[1] then
local zoomLevels = {"Off", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10"}
local zoomChoice = gg.choice(zoomLevels, nil, "Select Zoom Level")
if zoomChoice then
applyFeature("ZoomControl", zoomLevels[zoomChoice])
end
end
if choices[2] then
local states = {"On", "Off"}
local stateChoice = gg.choice(states, nil, "EagleEye Hack")
if stateChoice then
applyFeature("EagleEye", states[stateChoice])
end
end
if choices[3] then
gg.alert("Exiting menu.")
break
end
end
end