Jump to content
  • 0

LUA script to look at a value at a certain memory address


kuruvita

Question

I'd like to make a script that does an action depending on the value at a memory address.

Say, if i want to check the value at memory location 8888888 how to I go about it?

e.g. if 8888888=25 then

Is there a LUA command for this?

Thanks.

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • Administrators
1 hour ago, kuruvita said:

Say, if i want to check the value at memory location 8888888 how to I go about it?

getValues: https://gameguardian.net/help/classgg.html#aae2b60904e15c3612a0d2d6385e0e3e3

local t = {}
t[1] = {}
t[1].address = 0x8888888 -- some desired address
t[1].flags = gg.TYPE_DWORD
t = gg.getValues(t)
print(t)

 

1 hour ago, kuruvita said:

e.g. if 8888888=25 then

Is there a LUA command for this?

Yes. Read: http://www.lua.org/docs.html

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.