Jump to content
  • 0

Hey guys help me with revert


Mytz_321

Question

How to i can add revert value on my script

 

function mroom() 
gg.setRanges(gg.REGION_C_ALLOC | gg.REGION_C_HEAP | gg.REGION_ANONYMOUS)
gg.searchNumber('65536;194',gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
revert = gg.getResults(999)
gg.editAll('65536',gg.TYPE_DWORD)
t = gg.getResults(999)
gg.addListItems(t)
gg.clearResults()
gg.toast('Anti mushroom selesai')
end

function fhydrant() 
gg.setRanges(gg.REGION_C_ALLOC | gg.REGION_C_HEAP | gg.REGION_ANONYMOUS)
gg.searchNumber('65536;1002',gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
revert = gg.getResults(999)
gg.editAll('65536',gg.TYPE_DWORD)
t = gg.getResults(999)
gg.addListItems(t)
gg.clearResults()
gg.toast('Anti fire hydrant selesai')
end

if revert ~= nil then setValues(revert) end

 

This only can revert last value help me pls i want make revert because if people reenter world the game will crash or can get auto banned

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

 

function mroom() 
gg.setRanges(gg.REGION_C_ALLOC | gg.REGION_C_HEAP | gg.REGION_ANONYMOUS)
gg.searchNumber('65536;194',gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
revert = gg.getResults(999)
gg.editAll('65536',gg.TYPE_DWORD)
t = gg.getResults(999)
gg.addListItems(t)
gg.clearResults()
gg.toast('Anti mushroom selesai')
end

function fhydrant() 
gg.setRanges(gg.REGION_C_ALLOC | gg.REGION_C_HEAP | gg.REGION_ANONYMOUS)
gg.searchNumber('65536;1002',gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
revert1 = gg.getResults(999)
gg.editAll('65536',gg.TYPE_DWORD)
t = gg.getResults(999)
gg.addListItems(t)
gg.clearResults()
gg.toast('Anti fire hydrant selesai')
end

function reset()
if revert ~= nil then gg.setValues(revert) end
if revert1 ~= nil then gg.setValues(revert1) end
end

Help me short this pls

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.