Jump to content

SurikenTSD

Members
  • Posts

    8
  • Joined

  • Last visited

Everything posted by SurikenTSD

  1. I didn't know why, but the values was not frozen. Only changed. If I manually freeze them, everything is OK, if not, the values change immediately. However, I didn't despair and found a way out of the situation, I found what you missed in your example: I don't know how critical this is, but you didn't specify table ["freezeType"] = gg.FREEZE_NORMAL line and the most important thing is that you forgot about gg.addListItems (table) line. But the main thing - the direction was set and eventually I was able to figure it out on my own. Thanks a lot! function Flash() gg.searchNumber("17~20", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1) gg.refineAddress("6??????4", -1, gg.TYPE_DWORD, gg.SIGN_EQUAL, 0, -1) while gg.getResultsCount() > 2 do gg.processResume() gg.sleep(2000) gg.processPause() gg.searchFuzzy("-4~-1", gg.SIGN_FUZZY_EQUAL, gg.TYPE_DWORD, 0, -1) end local table = gg.getResults(10) for i = 1, #table do table[i]["value"] = -1 table[i]["freeze"] = true table[i]["freezeType"] = gg.FREEZE_NORMAL end gg.setValues(table) gg.addListItems(table) gg.toast('Done!') gg.setVisible(true) os.exit() end
  2. Hello! I am trying to write a small script, with lua familiar for the second day and have made some progress. In this function, I search for values and filter them out until there are exactly two left. Then I change them, but how do I freeze them? I tried to search for the answer using the example of other scripts, but most of them are encrypted, and in those that are not encrypted, I did not find the answer (or did not understand it). How do I use FREEZE_NORMAL correctly? Can someone help me with an example of my script? Thanks. function Flash() gg.searchNumber("17~20", gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1) while gg.getResultsCount() > 2 do gg.processResume() gg.sleep(1250) gg.processPause() gg.searchFuzzy("-3~-1", gg.SIGN_FUZZY_EQUAL, gg.TYPE_DWORD, 0, -1) end gg.getResults(10) gg.editAll('-1', gg.TYPE_DWORD) gg.FREEZE_NORMAL() -- Incorrect usage, but I don't know how to use it correctly. :( gg.toast('Done!') gg.setVisible(true) os.exit() end
×
×
  • 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.