Mytz_321 Posted April 29, 2019 Share Posted April 29, 2019 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 More sharing options...
Administrators Enyby Posted April 29, 2019 Administrators Share Posted April 29, 2019 LUA scripting (#39a7bdrg) Link to comment Share on other sites More sharing options...
Mytz_321 Posted April 30, 2019 Author Share Posted April 30, 2019 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 More sharing options...
Question
Mytz_321
How to i can add revert value on my script
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
Archived
This topic is now archived and is closed to further replies.