Lua code on Cheat Engine, Nice!
I fugured it out.
Code:
Process tibia = Process.GetProcessesByName("Tibia")[0];
ProcessModule module = tibia.MainModule;
Handle = tibia.Handle;
//base address
int baseAdr = module.BaseAddress.ToInt32();
Console.WriteLine("Base address : " + baseAdr.ToString("X"));
//experience addres -> working!
int xpAddr = 0x534660;
Console.WriteLine("Experience (working) : " + Convert.ToString(ReadInt32(xpAddr + baseAdr)));
//gui pointer from MemoryScanner of
int guiAdr = 0x534970;
Console.WriteLine("Gui pointer address : " + guiAdr.ToString("X"));
//get the valus (pointer?) inside guiAdr + the value inside baseAddr
guiAdr = ReadInt32(guiAdr + baseAdr);
Console.WriteLine("Gui pointer value : " + guiAdr.ToString("X"));
//game window container
int gWindowContainer = ReadInt32(guiAdr + 0x30);
Console.WriteLine("gWindow Container address : " + gWindowContainer.ToString("X"));
Console.WriteLine("|-----------------------------------------------------------");
Console.WriteLine("|-------------------- Gui dimensions -----------------------");
Console.WriteLine("|-----------------------------------------------------------");
//read offsets {0x1c, 0x20, 0x30, 0x34, 0x38, 0x3c};
//Game window container width
int gWindowContainerWidth = ReadInt32(gWindowContainer + 0x1c);
Console.WriteLine("Game window container width : " + gWindowContainerWidth);
//Game window container height
int gWindowContainerHeight = ReadInt32(gWindowContainer + 0x20);
Console.WriteLine("Game window container height: " + gWindowContainerHeight);
//Game window container top offset
int gWindowContainerTopOffset = ReadInt32(gWindowContainer + 0x30);
Console.WriteLine("Game window container top : " + gWindowContainerTopOffset);
//Game window container left offset
int gWindowContainerLeftOffset = ReadInt32(gWindowContainer + 0x34);
Console.WriteLine("Game window container left : " + gWindowContainerLeftOffset);
//game window width
int gWindowWidth = ReadInt32(gWindowContainer + 0x38);
Console.WriteLine("Game width : " + gWindowWidth);
//game window height
int gWindowHeight = ReadInt32(gWindowContainer + 0x3c);
Console.WriteLine("Game height : " + gWindowContainerHeight);
Console.ReadLine();