Hi, I have to use lua.

I want to print the value at 0x80000048 everytime it is written to!

My basic code is like this. But I don't want to continually print the value when it is not changing!

I only want to print that value when it is written to (when it changes)!

How to do this? Hope you can help!!

Code:
l = 0;
 while l < 1000 do
print(memory.readdword(0x80000048));
      l = l + 1;
   end