Jump to content

ItsSC

VIP+
  • Posts

    706
  • Joined

  • Last visited

  • Days Won

    36

Posts posted by ItsSC

  1. Oops yes I missed the save value. 
     

    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 This is not needed since already declare that freeze = true
    end
    gg.addListItems(table)
    gg.setValues(table)
    gg.toast('Done!')
    gg.setVisible(true)
    os.exit()
    end

    Add list before set the value.

  2. Welcome to learn Lua scripting. Try to use table if you failed this, it's a powerful feature.

    https://www.lua.org/pil/2.5.html

    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
    local table = gg.getResults(10)
    for i = 1, #table do
    	table[i]["value"] = -1
    	table[i]["freeze"] = true
    end
    gg.setValues(table)
    gg.toast('Done!')
    gg.setVisible(true)
    os.exit()
    end
  3. 2 hours ago, ExtremeBoy said:

    Can someone teach me, how to make online translation in lua script

    
    Function Main()
    menu = gg.choice({
    'Hack 1', -- This menu will translate
    'Hack 2'}, -- This menu will translate
     
    nil,'test')

    And auto check lang_code

    TranslateApi | Google Translate in GameGuardian ! (#qvyjmgp)

     

    You can refer to @saiaapiz 's demo script. Note : Use a vpn to run your script if you want to add translation. Google translate will ban your ip for requesting too much connection and malicious action.

  4. Someone forced me to delete. In future, I will just show what my previous script can't do. 

    Unlock everything with just one click. I will not add this to any script anymore, and don't ask for tutorial.

  5. F[9] is an array of table F.
    ; is a string, when concatenate a array and a string, use ".." also you must add quotation marks to differentiate string.

    ";" instead of ;

    Solution:

    gg.searchNumber(F[9]..";1;"..F[1]..";2;"..F[3]..";3;"..F[7]..";4;"..F[5]..";5;"..F[10]..";6;"..F[2]..";7;"..F[4]..";8;"..F[8]..";9;"..F[6]..";10;"..F[14]..";11;"..F[11]..";12;"..F[12]..";13;"..F[13].."::105",gg.TYPE_DWORD) 

    It's awful and many works. Do this 

    function generate(tab)
        local str = ""
        for i = 1, #tab do
            str = str .. F[i] .. ";" .. i .. ";"
            if i == #tab then
                str = str .. F[i] .. "::" .. tostring(i * 4 - 3)
            end
        end
      	return str
    end
    
    F = gg.prompt({"Question 1 ","Question 2"},{},{"number","number"})
    gg.searchNumber(generate(F),4)

    For second method, you need to rearrange your question so that it will become F[1] 1 F[2] 2 F[3] 3 ...

  6. 7 minutes ago, zam535582 said:

    so i had this code = 0;2;800;0::13

    want to change = 2;800 

    i want to give user to change =  2 to any value they like

    but change = 800 to a fixed value.

    how can i do that??

    use prompt for help and do the same as the iterate, just v.value = prompt[1]

  7. 6 minutes ago, Enyby said:

    No. Any loop work one-by-one. But you do same work again and again.

    You can compile both examples to LASM and compare count of instructions.

    You will be unpleasantly surprised by the number of instructions in your code.

    
    for i = 1 ,#t1 do
    if(t1[i].value==1014350479)then -- get t1[i]
        t1[i].value = 1011011011 -- get t1[i] again
        elseif(t1[i].value==1050253722 or t1[i].value ==1031127695)then -- get t1[i] two times
        t1[i].value = 1 -- get t1[i] again
    	end
    end

    Lua do not optimize any code. So if you write get same value few times - lua do it for you. With decrease performance, because it is pointless work.

    Aight, this refreshed my knowledge of how the loop actually works. Thanks

  8. 1 minute ago, Enyby said:

    this line erase element from table. So setValues do not re-set values and we avoid possibility erase changed value with old one.

    Also this operation really fast if run on list table (array-like table, called sequence in lua manual). And this is not rebuild table or reallocate memory, just exclude one value.

    So this way really fast. But if you try (after few remove) add to table some new value, or remove value from hash part - it can call rebuild table with memory reallocation, which is slow.

    So basically, it runs checking for all results at once, while my method is checking one by one? 

  9. Didn't notice that 

    gg.setRanges(gg.REGION_ANONYMOUS)
    gg.searchNumber('1014350479;1012202996;1083179008;1050253722;1031127695;1065353216;1065353216;1067282596:61', 4) -- search
    local t1 = gg.getResults(5000)
    for i = 1 ,#t1 do
    if(t1[i].value==1014350479)then
        t1[i].value = 1011011011
        elseif(t1[i].value==1050253722 or t1[i].value ==1031127695)then
        t1[i].value = 1
    	end
    end
    gg.setValues(t1)

     

  10. As a noob, here is my solution.

    gg.setRanges(gg.REGION_ANONYMOUS)
    gg.searchNumber('1014350479;1012202996;1083179008;1050253722;1031127695;1065353216;1065353216;1067282596:61', 4) -- search
    gg.getResults(5000)
    gg.searchNumber("1014350479;1050253722;1031127695",4)-- refine the three values that you want to edit
    gg.editAll("1011011011;1;1",4) -- edit all of them individually

     

  11. 8 minutes ago, NoFear said:

    I have a routine.

    Dword -> Double -> Float -> UTF (8/16) -> Encrypted Dword -> XOR Dword

    When they all fail, I do unknown changed/unchanged (very time consuming)...

    For me, it depends on how the game look like, some games looks not easy to hack, so straight use UTF hack, if it look easy, sure goes to DWORD search and memory hack.

  12. 3 minutes ago, NoFear said:

    I should've known you would've got it 😉

    I only sent in private message to someone how 😛

     

     

    Sure, you taught me this method. So I always use this method for the first try. 😍

  13. Just now, zam535582 said:

    jeez....i was just like the first guy...tried everything i know..but no success.

    guess like...i need get back to kindergarden....learn ABC....again.

     

    It's okay to try everything slowly. But since this guy told us what not work, so we need to think some ways that he didn't make. 😉

  14. ;rad_protect (Drink)
    11;6357106;6226020;7471216;7602287;6488165;116::25

    ;rad_reduce_pills (pill obviously)
    16;6357106;6226020;6619250;7667812;6619235;7340127;7077993;7536748::33

    @Ashish15 here you go

  15. Just now, zam535582 said:

    yup..for the Hazmat suits.

    but AntiRad(drink) and Anti Radiation Pills...still not found.

    I found that drink before... damn no record also. I guess ;food_rad something

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