Ghost42 GG Script
Ghost42 GG Script
-- Hello There, Die440 here, and i see you curios about my code lul
-- Just a note Curios Peoples, I will not obfuscate this code for a reason it
already
-- available on GameGuardian.net Thread, so i don't bother obfuscate it, since most
-- people already know about the pointers and such...
-- So yeah feel free to read the code and learn about it
-- I create this Script from my poorly learnt LUA.
-- Fun Fact, i created this after i learn LUA 3 days prior this script made.
--
--
-- This script will save the results on SaveList for manual use if you don't want
the
-- menu interfering with your queries and such...
--
-- Anyway Enjoy fellas
-- Infos
local Name = [=====[ReVoltEd]=====]
local Version = '2.0.0'
local Author = '🐺 Angel Wolf '
local AuthorGG = '(@die440 on GameGuardian.net)'
local Target = [=====[Day R Survival v.730+]=====]
-- init GG
gg.toast(Name..' v'..Version..' by '..Author..'\n for '..Target)
-- Utils Functions
function SpriteCheck(e)
if e == true then return "✅" else return "❌" end
end
function findByName(tabled, q)
tempr = {}
string.startswith = function(self, str)
return self:find('^' .. str) ~= nil
end
for _, v in ipairs(tabled) do
if type(v) == 'table' then
do
if v.name and v.name:startswith(q) then
tempr[#tempr+1] = v
end
end
end
end
return tempr
end
-- Main Functions
function Update(Query, t, newValue, valueType)
get_data = gg.getListItems()
filtered = findByName(get_data, Query)
gg.loadResults(filtered)
gg.getResults(t)
gg.editAll(newValue, valueType)
end
-- Init Scripts
AngelWolf = 1
HasBeenLoadedBefore = false
Level_Enabled = false
Carry_Enabled = false
Speed_Enabled = false
AmBroke_Enabled = false
NoLimit_Enabled = false
SaveListed = {
S_LV = false,
S_CW = false,
S_CS = false,
}
-- Cheat Names
Cheat_Level = "Instant_Leveling"
Cheat_Carry = "Carry_Capacity"
Cheat_Speed = "Player_Speed"
Cheat_AmBroke = "AB_"
Cheat_NoLimit = "NL_"
-- Le Menu
function menu()
AngelWolf = 0
I_Level = SpriteCheck(Level_Enabled)
I_Carry = SpriteCheck(Carry_Enabled)
I_Speed = SpriteCheck(Speed_Enabled)
I_Currs = SpriteCheck(AmBroke_Enabled)
I_Needs = SpriteCheck(NoLimit_Enabled)
CheatMenu = gg.choice({
"[] Information",
"["..I_Level.."] Instant Leveling",
"["..I_Carry.."] Infinite Carry Capacity",
"["..I_Speed.."] Player SpeedHack",
"["..I_Currs.."] Base Currency Hack",
"[] Uncapped Needs",
"[] Battle Hacks",
"[🔓] Remove MiniLoc Locks",
"[🔎] 100%+ Search Chance",
"[🦊] Pet Swapper ✪",
"[🔜] In-Dev Hacks",
"[🚪] Exit",
},nil,Name.." By "..Author..AuthorGG)
--✪
if CheatMenu == 1 then
s = gg.alert("This is script for Day R Survival\nAny hacks options that
ends with ✪ is VIP hacks and it's require VIP version.\nFor Now VIP version isn't
available yet.\n\nSupport me By Donating Here:\nhttps://paypal.me/alixymizuki",
"Donate", "Ok")
if s == 1 then
gg.copyText("https://paypal.me/alixymizuki")
gg.toast("Paypal Link Copied to Clipboard")
end
end
if CheatMenu == 2 then EditLevel() end
if CheatMenu == 3 then EditCarry() end
if CheatMenu == 4 then EditSpeed() end
if CheatMenu == 5 then EditAmBroke() end
if CheatMenu == 6 then
gg.clearResults()
gg.searchNumber("327,613,640", gg.TYPE_DWORD)
FS = gg.getResults(1)
gg.clearResults()
gg.searchNumber(FS[1].address - 0xC, gg.TYPE_QWORD)
SHTable = gg.getResults(gg.getResultsCount())
for i, v in ipairs(SHTable) do
v.address = v.address + 0x20
v.flags = gg.TYPE_DOUBLE
end
gg.loadResults(SHTable)
gg.refineNumber("100", gg.TYPE_DOUBLE)
reb = gg.getResults(100)
for i, v in ipairs(reb) do
v.address = v.address + 0x70
v.flags = gg.TYPE_DOUBLE
end
gg.loadResults(reb)
gg.refineNumber("100", gg.TYPE_DOUBLE)
rx = {}
fin = gg.getResultsCount()
if fin > 0 then
final = gg.getResults(1)
rx[1]= { address= final[1].address - 0x70, flags= gg.TYPE_DOUBLE }
rx[2]= { address= final[1].address, flags= gg.TYPE_DOUBLE }
rx[3]= { address= rx[2].address + 0x70, flags= gg.TYPE_DOUBLE }
rx[4]= { address= rx[3].address + 0x70, flags= gg.TYPE_DOUBLE }
gg.loadResults(rx)
gg.getResults(gg.getResultsCount())
gg.editAll("1.8E100", gg.TYPE_DOUBLE)
gg.toast('Player Stats is Uncapped')
end
end
if CheatMenu == 7 then
BattleChoice = gg.multiChoice({
"Bring more than 1 Pets",
"Bring more than 3 Weapons",
"1000 Starting AP",
"1000 AP Refill",
"1000 AP Limit",
}, {}, 'Selected Hacks: ')
gg.loadResults(ctx)
gg.refineNumber('1', gg.TYPE_DOUBLE)
fc = gg.getResultsCount()
if fc > 0 then
gg.getResults(1)
gg.editAll("1000", gg.TYPE_DOUBLE)
gg.toast("Starting AP is now 1000", false)
break
end
end
end
if BattleChoice[4] then
gg.clearResults()
gg.searchNumber("1470116942", gg.TYPE_DWORD)
APRStatic = gg.getResults(gg.getResultsCount())
for i,v in ipairs(APRStatic) do
gg.clearResults()
gg.searchNumber(v.address - 0xC, gg.TYPE_QWORD)
rcount = gg.getResultsCount()
ctx = gg.getResults(rcount)
for i,v in ipairs(ctx) do
v.address = v.address + 0x30
v.flags = gg.TYPE_DOUBLE
end
gg.loadResults(ctx)
gg.refineNumber('1', gg.TYPE_DOUBLE)
fc = gg.getResultsCount()
if fc > 0 then
gg.getResults(fc)
gg.editAll("1000", gg.TYPE_DOUBLE)
gg.toast("AP now refill by 1000", false)
else
gg.toast("ERR: Cannot find AP Refill", false)
end
end
end
if BattleChoice[5] then
gg.clearResults()
gg.searchNumber("327613635", gg.TYPE_DWORD)
SAPStatic = gg.getResults(gg.getResultsCount())
for i,v in ipairs(SAPStatic) do
gg.clearResults()
gg.searchNumber(v.address - 0xC, gg.TYPE_QWORD)
rcount = gg.getResultsCount()
ctx = gg.getResults(rcount)
for i, v in ipairs(ctx) do
v.address = v.address + 0x20
v.flags = gg.TYPE_DOUBLE
end
gg.loadResults(ctx)
gg.refineNumber('3', gg.TYPE_DOUBLE)
fc = gg.getResultsCount()
if fc > 0 then
gg.getResults(fc)
gg.editAll("1000", gg.TYPE_DOUBLE)
gg.toast("AP Limit is now 1000", false)
break
end
end
end
return gg.clearResults()
--]==]
end
end
if CheatMenu == 8 then
gg.clearResults()
gg.searchNumber("283147209", gg.TYPE_DWORD)
FS = gg.getResults(1)
gg.clearResults()
gg.searchNumber(FS[1].address - 0xC, gg.TYPE_QWORD)
SHTable = gg.getResults(gg.getResultsCount())
for i, v in ipairs(SHTable) do
v.address = v.address + 0x18
v.flags = gg.TYPE_DOUBLE
end
-- Filter Mult
gg.loadResults(SHTable)
gg.refineNumber("5", gg.TYPE_DOUBLE)
tabl = gg.getResults(gg.getResultsCount())
gg.editAll("0", gg.TYPE_DOUBLE)
-- Filter Energy
gg.clearResults()
for _,v in ipairs(tabl) do
v.address = v.address + 0x28
end
gg.loadResults(tabl)
gg.sleep(200)
gg.refineNumber('5~60', gg.TYPE_DOUBLE)
Bob = gg.getResults(gg.getResultsCount())
gg.editAll("0", gg.TYPE_DOUBLE)
gg.loadResults(tabl)
gg.sleep(200)
gg.refineNumber('15~90', gg.TYPE_DOUBLE)
Bob = gg.getResults(gg.getResultsCount())
gg.editAll("0", gg.TYPE_DOUBLE)
gg.toast("All Done")
end
if CheatMenu == 9 then
gg.clearResults()
gg.searchNumber("227220", gg.TYPE_DWORD)
count = gg.getResultsCount()
res = gg.getResults(count)
gg.clearResults()
for i,v in ipairs(res) do
gg.searchNumber(v.address - 0xC, gg.TYPE_QWORD)
rcount = gg.getResultsCount()
ctx = gg.getResults(rcount)
for i, v in ipairs(ctx) do
v.address = v.address + 0x10
v.flags = gg.TYPE_DOUBLE
end
gg.loadResults(ctx)
gg.refineNumber('-0.95', gg.TYPE_DOUBLE)
fc = gg.getResultsCount()
if fc > 0 then
gg.getResults(fc)
gg.editAll("1000", gg.TYPE_DOUBLE)
gg.toast("Search Chance Now 100000%")
break
end
end
end
if CheatMenu == 10 then
gg.alert('VIP')
end
if CheatMenu == 11 then
haks = gg.choice({
"Item Swapper",
"Weapon Damage Hacks",
"Armor Hacks",
"Teleports",
},nil,"Stuffies that will be added on later, No ETA, some Option
probably be in VIP list")
if haks ~= nil then gg.alert('Coming Soon, gotta wait yk') end
end
if CheatMenu == 12 then
gg.alert('Thanks for using the Script and all used values saved on the
List to be use for manual use.')
print("Script was made By "..Author)
os.exit()
end
end
gg.clearResults()
gg.searchNumber(FS[1].address - 0xC, gg.TYPE_QWORD)
PFS = gg.getResultsCount()
SHTable = gg.getResults(PFS)
for i, v in ipairs(SHTable) do
v.address = v.address + 0x20
v.flags = gg.TYPE_DOUBLE
end
gg.loadResults(SHTable)
gg.refineNumber("0.85", gg.TYPE_DOUBLE)
reb = gg.getResults(1000)
for i,v in ipairs(reb) do
v.name = Cheat_Speed
end
gg.addListItems(reb)
end
function LoadCC()
gg.clearResults()
gg.searchNumber("281013069", gg.TYPE_DWORD)
count = gg.getResultsCount()
res = gg.getResults(count)
gg.clearResults()
for i,v in ipairs(res) do
gg.searchNumber(v.address - 0xC, gg.TYPE_QWORD)
rcount = gg.getResultsCount()
ctx = gg.getResults(rcount)
for i, v in ipairs(ctx) do
v.address = v.address - 0x10
v.flags = gg.TYPE_DOUBLE
end
function LoadLevel()
gg.clearResults()
gg.searchNumber("304590354", gg.TYPE_DWORD)
count = gg.getResultsCount()
res = gg.getResults(count)
gg.clearResults()
for i,v in ipairs(res) do
gg.searchNumber(v.address - 0xC, gg.TYPE_QWORD)
rcount = gg.getResultsCount()
ctx = gg.getResults(rcount)
for i, v in ipairs(ctx) do
v.address = v.address + 0x10
v.flags = gg.TYPE_DOUBLE
end
function LoadAmBroke()
gg.clearResults()
gg.searchNumber("-108,476,332", gg.TYPE_DWORD)
FS = gg.getResults(1)
gg.clearResults()
gg.searchNumber(FS[1].address - 0xC, gg.TYPE_QWORD)
PFS = gg.getResultsCount()
SHTable = gg.getResults(PFS)
for i, v in ipairs(SHTable) do
v.address = v.address + 0x18
v.flags = gg.TYPE_DOUBLE
end
gg.loadResults(SHTable)
gg.refineNumber("0.25", gg.TYPE_DOUBLE)
con = gg.getResultsCount()
reb = gg.getResults(1)
get_data = gg.getListItems()
filtered = findByName(get_data, "Player_")
gg.loadResults(filtered)
gg.getResults(50)
Speed_Enabled = true
if sphx == 1 then gg.editAll("10", gg.TYPE_DOUBLE) gg.toast('Player
Speed is set to 10x') end
if sphx == 2 then gg.editAll("25", gg.TYPE_DOUBLE) gg.toast('Player
Speed is set to 25x') end
if sphx == 3 then gg.editAll("50", gg.TYPE_DOUBLE) gg.toast('Player
Speed is set to 50x') end
if sphx == 4 then
input=gg.prompt({'Input your value below'}, {[1]='0.85'},
{[1]='number'})
if input ~= nil then
gg.editAll(input[1], gg.TYPE_DOUBLE) gg.toast('Player Speed
is set to '..input[1]..'x')
else
Speed_Enabled = false gg.alert('You have cancelled the
changes')
end
end
end
end
function EditCarry()
if Carry_Enabled == false then
Update(Cheat_Carry, 50, "1.8E307", gg.TYPE_DOUBLE)
gg.toast('Carry Capacity is Changed to Infinite')
Carry_Enabled = true
else
Update(Cheat_Carry, 50, "0.05", gg.TYPE_DOUBLE)
gg.toast('Carry Capacity is Reverted to Normal')
Carry_Enabled = false
end
end
function EditAmBroke()
if AmBroke_Enabled == false then
choco = gg.choice({"Inflates Currency", "Everything Cheap"})
if choco == 1 then
Update(Cheat_AmBroke, 50, "0.001", gg.TYPE_DOUBLE)
gg.alert('Base Currency now Inflated, good for quest reward')
AmBroke_Enabled = true
end
if choco == 2 then
Update(Cheat_AmBroke, 50, "5000", gg.TYPE_DOUBLE)
gg.alert('Survivor Base Now Cheap, good for buying and fixing stuff')
AmBroke_Enabled = true
end
else
choco = gg.choice({"Inflates Currency", "Everything Cheap", "Revert"})
if choco == 1 then
Update(Cheat_AmBroke, 50, "0.001", gg.TYPE_DOUBLE)
gg.alert('Base Currency now Inflated, good for quest reward')
AmBroke_Enabled = true
end
if choco == 2 then
Update(Cheat_AmBroke, 50, "5000", gg.TYPE_DOUBLE)
gg.alert('Survivor Base Now Cheap, good for buying and fixing stuff')
AmBroke_Enabled = true
end
if choco == 3 then
Update(Cheat_AmBroke.."Iron", 1, "0.25", gg.TYPE_DOUBLE)
Update(Cheat_AmBroke.."Black", 1, "0.5", gg.TYPE_DOUBLE)
Update(Cheat_AmBroke.."Hall", 1, "1", gg.TYPE_DOUBLE)
Update(Cheat_AmBroke.."Ration", 1, "0.25", gg.TYPE_DOUBLE)
gg.toast('Currency Modifier reverted"')
AmBroke_Enabled = false
end
end
end
-- I like Wolf :3