Jump to content

Coolsi

Members
  • Posts

    12
  • Joined

  • Last visited

Posts posted by Coolsi

  1. You say that to everyone. I am reading on lua. I'm learning everyday. I asked here for help. Anyways I realized what I should do now. I should make the function return the table and assign it to a variable. Thanks for nothing.

  2. Is there a way to make the parameter of a function a variable name? This is what I want to do:

    varname = {}
    varname[1] = {}
    varname[1].address = m3[1].address + offset
    varname[1].value = value
    varname[1].flags = flag
    gg.setValues(varname)

    I want to make that a function with varname as one of the parameters so that I could have different tables and I could remove from list specific tables later. Or is there a better way?

  3. Hi again sir eneby. I made a script that will edit a value everytime the gg icon is tapped. But it needs a kill switch and the one I wrote isn't working. It should end the script if the value becomes 808465012. Can you tell me what is wrong?

    if gg.isVisible then
    	gg.setVisible(false)
    end
    	
    gg.clearResults()
    	
    gg.searchNumber('808465268', gg.TYPE_DWORD)
    	if gg.getResultCount() == nil then
    		print('Go to home menu')
    		os.exit()
    	end
    m = gg.getResults(1)
    
    ::unlikey::
    	if gg.isVisible() then
    		gg.setVisible(false)
    		m[1].value = 808465268
    		gg.setValues(m)
    		gg.toast('Unlikey loaded', true)
    	end
    
    if m[1] == 808465012 then
    	os.exit()
    end
    
    goto unlikey

     

  4. Sir Eneby, I need help trying to figure this out. I've been trying to search for the address that defines the buffering state of the game. It's value at rest is 0 and ranges from 90k - 200k when it is buffering. I've written a script that searches while I do things in the game that will make it buffer and will stop if it finds less than 100 results. But I think it might take forever to finish. Could you help me find it? Sorry for the poor code. I just learned it a while ago.

    I should add that the buffering only lasts for one to three seconds.

    ::a::
    
    gg.sleep(1000)
    gg.searchNumber ('0', gg.TYPE_DWORD, false, gg.SIGN_GREATER_OR_EQUAL, 0, -1)
    
    if gg.isVisible()
    then
    
    gg.setVisible(false)
    end
    
    
    if gg.getResultCount() <= 100 then
    
    gg.alert('Done searching')
    gg.isVisible(true)
    
    os.exit()
    
    else goto a
    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.