local turnOn = false
function notify(msg)
gg.toast(msg)
gg.clearResults()
end
function customRefine(option)
if option == 1 then
gg.refineNumber("100~65000;200~65000::9", gg.TYPE_WORD)
end
end
local scriptTitle = ""
local scanTemplate = {
className = ":pnfhfhakncl",
offsets = { 0x2A4, 0x2AC },
valueType = gg.TYPE_WORD,
newValue = 100
}
while true do
if gg.isVisible(true) then
gg.setVisible(false)
local menu = gg.choice({
"β
Champ booster reward",
"β
Animal/Npc idiot",
"β
Buff skill(co-op)",
"Exit Script"
},
nil,
[[
Gem reward Booster Script By noobz
Activate this script **inside a co-op or PvP room**.
It boosts the gem reward from killing any champion to **π60 gems**.
Both small and large champions will give the same reward.
]]
)
if menu == nil then
-- do nothing
elseif menu == 1 then
gg.toast("β³ Scanning pointer...")
gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber("h 01 20 10 00 0F 08 00 02", gg.TYPE_BYTE)
local anchor = gg.getResults(1)
if #anchor == 0 then
notify("β Not in Game / Pattern not found")
else
local offsetResults = {}
for i, v in ipairs(anchor) do
table.insert(offsetResults, {
address = v.address - 0x118,
flags = gg.TYPE_BYTE
})
end
local xResults = gg.getValues(offsetResults)
local baseAddr = xResults[1].address
gg.clearResults()
gg.searchNumber(tostring(baseAddr), gg.TYPE_QWORD)
local results = gg.getResults(gg.getResultCount())
if #results == 0 then
notify("β Base address reference not found!")
else
local pointerList = {}
for _, item in ipairs(results) do
for _, o in ipairs({ 0x14, 0x1C }) do
table.insert(pointerList, {
address = item.address + o,
flags = gg.TYPE_WORD
})
end
end
gg.clearResults()
gg.loadResults(pointerList)
customRefine(1)
local finalResults = gg.getResults(gg.getResultCount())
if #finalResults > 0 then
for i, addr in ipairs(finalResults) do
addr.value = 20000 .."+x2"
addr.freeze = false
end
gg.setValues(finalResults)
notify("π 60 Gems Boost [β
ON]")
turnOn = true
else
notify("β No matching address found")
end
end
end
elseif menu == 2 then
gg.setRanges(gg.REGION_ANONYMOUS)
gg.clearResults()
gg.searchNumber(":CombatAnimal.AI.BehaviorDesigner.CustomTasks.PlayerWithinDistance", gg.TYPE_BYTE)
gg.getResults(gg.getResultCount())
gg.editAll("1", gg.TYPE_BYTE)
gg.clearResults()
elseif menu == 3 then
gg.toast("π Scanning skill Buff signature...")
patchedCount = 0 -- reset setiap kali mulai patch
gg.setRanges(gg.REGION_OTHER)
gg.clearResults()
gg.searchNumber(scanTemplate.className, gg.TYPE_BYTE)
local result = gg.getResults(1)
gg.clearResults()
if #result == 0 then
gg.toast("β Skill signature not found.")
scriptTitle = "β‘ Buff Skill"
else
local baseAddr = result[1].address
gg.toast("β
Signature found at 0x" .. string.format("%X", baseAddr))
gg.toast("π Resolving skill pointer chain...")
gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber(baseAddr, gg.TYPE_QWORD)
local resPtr = gg.getResults(1)
gg.clearResults()
if #resPtr == 0 then
gg.toast("β Pointer not found.")
scriptTitle = "β‘ Buff Skill"
else
local ptrAddr = resPtr[1].address + 0x8
local val = gg.getValues({{address = ptrAddr, flags = gg.TYPE_QWORD}})[1].value
gg.searchNumber(val, gg.TYPE_QWORD)
local found = gg.getResults(gg.getResultsCount())
gg.toast("β
Skill pointer resolved (" .. #found .. " results)")
if #found > 0 then
local results = {}
for _, p in ipairs(found) do
for _, off in ipairs(scanTemplate.offsets) do
table.insert(results, {
address = p.address + off,
flags = scanTemplate.valueType
})
end
end
if #results == 0 then
gg.toast("β No offset found for Buff Skill.")
scriptTitle = "β‘ Buff Skill"
else
gg.loadResults(results)
gg.toast("βοΈ Refining valid skill values...")
gg.refineNumber("200~65000;200~65000::9", scanTemplate.valueType)
gg.sleep(200)
gg.refineNumber("0x2", scanTemplate.valueType)
local refined = gg.getResults(gg.getResultsCount())
if #refined == 0 then
gg.toast("β οΈ No matching skill values.")
scriptTitle = "β‘ Buff Skill"
else
gg.toast("π Boosting " .. #refined .. " skill addresses...")
local patched = {}
for _, v in ipairs(refined) do
table.insert(patched, {
address = v.address,
flags = scanTemplate.valueType,
value = scanTemplate.newValue .. "+x2"
})
end
gg.setValues(patched)
patchedCount = #patched
gg.toast("β‘ Buff Applied! (" .. patchedCount .. " patched)")
scriptTitle = "β‘ Buff Skill"
end
gg.clearResults()
end
end
end
end
elseif menu == 4 then
notify("π Script exited")
os.exit()
end
end
gg.sleep(100)
end