Jump to content

Question

Posted

Hello.  

Quote

gg.searchNumber("95;75;3;200;1;130;9;1,075,419,546;26;1,065,353,216;26;1,094,713,344;26:49", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1, 0)

local results = gg.getResults(100) 

 

for i, v in ipairs(results) do

  if v.value == '75' then

    v.value = '85'

end

  if v.value == '26' then

    v.value = '4000'

end

   if v.value == '130' then

    v.value = '1400'

end

    if v.value == '9' then

    v.value = '400'

end 

gg.clearResults()

end

This is part of a larger script , and the script runs fine , no errors , but doesn't actually search and replace.  

I'm sure the answer must be staring me in the face .....but I've got nfi 🙄😢

Recommended Posts

  • 0
Posted (edited)
local gg = gg
gg.setRanges(32)

gg.searchNumber("95;75;3;200;1;130;9;1,075,419,546;26;1,065,353,216;26;1,094,713,344;26::49", 4)
gg.refineNumber("75;130;9;26")
local results = gg.getResults(10) 

for i,v in pairs(results) do
     if v.value == 75 then
        v.value = 85
     end
     if v.value == 130 then
        v.value = 1400
     end
     if v.value == 9 then
        v.value = 400
     end
     if v.value == 26 then
        v.value = 4000
     end 
gg.setValues(results)
--gg.addListItems(results)
gg.clearResults()
gg.toast("Done")
end

 

Edited by MonkeySAN
typo
  • 0
Posted
local gg = gg
gg.setRanges(32)

gg.searchNumber("95;75;3;200;1;130;9;1,075,419,546;26;1,065,353,216;26;1,094,713,344;26::49", 4)
gg.refineNumber("75;130;9;26")
local results = gg.getResults(10) 

for i,v in pairs(results) do
     if v.value == 75 then
        v.value = 85
     end
     if v.value == 130 then
        v.value = 1400
     end
     if v.value == 9 then
        v.value = 400
     end
     if v.value == 26 then
        v.value = 4000
     end 
end
gg.setValues(results)
--gg.addListItems(results)
gg.clearResults()
gg.toast("Done")
--end

 

  • 0
Posted
2 minutes ago, MonkeySAN said:

local gg = gg
gg.setRanges(32)

gg.searchNumber("95;75;3;200;1;130;9;1,075,419,546;26;1,065,353,216;26;1,094,713,344;26::49", 4)
gg.refineNumber("75;130;9;26")
local results = gg.getResults(10) 

for i,v in pairs(results) do
     if v.value == 75 then
        v.value = 85
     end
     if v.value == 130 then
        v.value = 1400
     end
     if v.value == 9 then
        v.value = 400
     end
     if v.value == 26 then
        v.value = 4000
     end 
end
gg.setValues(results)
--gg.addListItems(results)
gg.clearResults()
gg.toast("Done")
--end

 

Thanks. 

I see I made a few rookie mistakes.  

Is it necessary to refine the results before giving them new values ?

  • 0
Posted (edited)

nice work.

My script requires no user input.

Also reload at 9999 is probably a bad thing 🤣

 

Thanks again for your advice...... i'm obviously learning slower than i hoped 🙂

Edited by sodaface
  • 0
Posted

only 1 value changed to max all of that..but it actually didnt work

..only visuals.

😅😅😅😅😅😅😅😅😅

its yours that really work.

btw im guess you got HP hack too??

  • 0
Posted

Haven't looked at that yet. 

Wanted to get the first part sorted.  

Is HP possible ?

  • 0
Posted

yup..its really posibble and easy.

HP and Defense.

1378529388_Screenshot_20210325-194843_ParallelSpace.thumb.jpg.86d369b52f82673c8bc64c73c716672c.jpg

20210325_195051.thumb.jpg.ad5dc4802dc7b649cb5d64ecfde9f921.jpg

one is in Dword and the other is Float..

search either one of them... go up or down...you sure will find the other one.

or just search both at the same time.

which is which and which one come first that.. im sure you can figure it out.

  • 0
Posted (edited)

🤣

Right.  Well.  

I'll add more to my script I guess 😃

 

------

Oh that was easy.  

And all these hacks work in PvP too.  

Oh dear.  

Edited by sodaface
  • 0
Posted
11 hours ago, MonkeySAN said:

local gg = gg
gg.setRanges(32)

gg.searchNumber("95;75;3;200;1;130;9;1,075,419,546;26;1,065,353,216;26;1,094,713,344;26::49", 4)
gg.refineNumber("75;130;9;26")
local results = gg.getResults(10) 

for i,v in pairs(results) do
     if v.value == 75 then
        v.value = 85
     end
     if v.value == 130 then
        v.value = 1400
     end
     if v.value == 9 then
        v.value = 400
     end
     if v.value == 26 then
        v.value = 4000
     end 
end
gg.setValues(results)
--gg.addListItems(results)
gg.clearResults()
gg.toast("Done")
--end

 

why dont you use elseif statement ?

  • 0
Posted

obviously you can..

local gg = gg
gg.setRanges(32)

gg.searchNumber("95;75;3;200;1;130;9;1,075,419,546;26;1,065,353,216;26;1,094,713,344;26::49", 4)
gg.refineNumber("75;130;9;26")
local results = gg.getResults(10) 

for i,v in pairs(results) do
     if v.value == 75 then
        v.value = 85
     elseif
        v.value == 130 then
        v.value = 1400
     elseif
        v.value == 9 then
        v.value = 400
     elseif
        v.value == 26 then
        v.value = 4000
     end 
end
gg.setValues(results)
--gg.addListItems(results)
gg.clearResults()
gg.toast("Done")
--end

 

  • 0
Posted

bruh

local x = [=[STARTED]=]

gg.toast(x)

a = 7.31

b = -1

gg.searchNumber(a, gg.TYPE_FLOAT)

gg.getResults(88888)

gg.editAll(b, gg.TYPE_FLOAT)

local y = [=[Activated]=]

gg.alert(y)

local z = [=[END]=]

print(z)

 

 

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.