Jump to content
  • 0

make a func for revert & remove values on 'saved tab'?


nio04

Question

7 answers to this question

Recommended Posts

You need to explain the concept of your script so you can get something that fit.

[added 3 minutes later]

And also the values need to be equal, or the function will be more complicated to write

Link to comment
Share on other sites

 

10 hours ago, nio04 said:

i want to hav a function for revert & remove values which are saved in SavedTab. but i cant make it, cause im noob😂

 

so, plz help me

Use gg.saveVariable to save original value.

Use gg.getValues for check value.

Use gg.setValues for change value.

Use gg.removeListItems for remove value in tab save.

Sooo It's that simple 🤣☺️😂🤣

Link to comment
Share on other sites

16 hours ago, HEROGAMEOfficial said:

 

Use gg.saveVariable to save original value.

Use gg.getValues for check value.

Use gg.setValues for change value.

Use gg.removeListItems for remove value in tab save.

Sooo It's that simple 🤣☺️😂🤣

Theorie is always simple,

Link to comment
Share on other sites

On 7/23/2021 at 5:52 AM, HEROGAMEOfficial said:

 

Use gg.saveVariable to save original value.

Use gg.getValues for check value.

Use gg.setValues for change value.

Use gg.removeListItems for remove value in tab save.

Sooo It's that simple 🤣☺️😂🤣

brother, can u write the code for it?

 

sorry for this long delay comments. i was busy to make my game - antiBan😐

Link to comment
Share on other sites

gg.searchNumber("1234", gg.TYPE_DWORD)
if gg.getResultsCount() > 1 then
	local found = gg.getResults(gg.getResultsCount())
	gg.saveVariable(found, gg.EXT_CACHE_DIR.."/Original.value")
	gg.clearResults()
	for a, b in next, found do
		if b.flags == gg.TYPE_DWORD then
			b.value = b.value--Value to change
		elseif b.flags == gg.TYPE_BYTE then
			b.value = b.value--Value to change
		end
		b.freeze = true
	end
	gg.addListItmes(found)
	gg.toast("Hack success"}
	gg.removeListItems(found)
	local check = loadfile(gg.EXT_CACHE_DIR.."/Original.value")
	if check then
		local a = check ()
		local b = gg.getValues(a)
		for a, b in next, b do
			--do what you want
		end
		gg.setValues(a)--revert to original
	end
end

Simple, you can develop it.

Link to comment
Share on other sites

27 minutes ago, HEROGAMEOfficial said:

gg.searchNumber("1234", gg.TYPE_DWORD)
if gg.getResultsCount() > 1 then
	local found = gg.getResults(gg.getResultsCount())
	gg.saveVariable(found, gg.EXT_CACHE_DIR.."/Original.value")
	gg.clearResults()
	for a, b in next, found do
		if b.flags == gg.TYPE_DWORD then
			b.value = b.value--Value to change
		elseif b.flags == gg.TYPE_BYTE then
			b.value = b.value--Value to change
		end
		b.freeze = true
	end
	gg.addListItmes(found)
	gg.toast("Hack success"}
	gg.removeListItems(found)
	local check = loadfile(gg.EXT_CACHE_DIR.."/Original.value")
	if check then
		local a = check ()
		local b = gg.getValues(a)
		for a, b in next, b do
			--do what you want
		end
		gg.setValues(a)--revert to original
	end
end

Simple, you can develop it.

wow! super! thanks a hundred ☺️

 

u use telegram?

Link to comment
Share on other sites

 

On 7/26/2021 at 6:00 AM, HEROGAMEOfficial said:
gg.searchNumber("1234", gg.TYPE_DWORD)
if gg.getResultsCount() > 1 then
	local found = gg.getResults(gg.getResultsCount())
	gg.saveVariable(found, gg.EXT_CACHE_DIR.."/Original.value")
	gg.clearResults()
	for a, b in next, found do
		if b.flags == gg.TYPE_DWORD then
			b.value = b.value--Value to change
		elseif b.flags == gg.TYPE_BYTE then
			b.value = b.value--Value to change
		end
		b.freeze = true
	end
	gg.addListItmes(found)
	gg.toast("Hack success"}
	gg.removeListItems(found)
	local check = loadfile(gg.EXT_CACHE_DIR.."/Original.value")
	if check then
		local a = check ()
		local b = gg.getValues(a)
		for a, b in next, b do
			--do what you want
		end
		gg.setValues(a)--revert to original
	end
end

Simple, you can develop it.

It is not an efficient way to save a values. You could just store store them into a variable, instead of creating a file which of course much slower, and what if you want to do that a hundred times. That's gonna be time consuming.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

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