Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public Point ContainerWindowPosition()
- {
- int x, y;
- int num = Core.client.Memory.ReadInt32(Adresses.Client.GuiAddress);
- x = Core.client.Memory.ReadInt32(num + 0x14);
- y = Core.client.Memory.ReadInt32(num + 0x18);
- num = Core.client.Memory.ReadInt32(num + 0x38);// points to containerwindow
- x += Core.client.Memory.ReadInt32(num + 0x14);
- y += Core.client.Memory.ReadInt32(num + 0x18);
- num = Core.client.Memory.ReadInt32(num + 0x24);// points to first child
- x += Core.client.Memory.ReadInt32(num + 0x14);
- y += Core.client.Memory.ReadInt32(num + 0x18);
- return new Point(x, y);
- }
- private int GetContainerGuiAdr(int number)
- {
- int num = Core.client.Memory.ReadInt32(Adresses.Client.GuiAddress);
- num = Core.client.Memory.ReadInt32(num + 0x38);
- num = Core.client.Memory.ReadInt32(num + 0x24);
- for (int i = 0; i < 20; i++)
- {
- int num1 = Core.client.Memory.ReadInt32(num + 0x2c);
- int ContIndex = num1 - 0x40;
- if (ContIndex == number)
- {
- return num;
- }
- num = Core.client.Memory.ReadInt32(num + 0x10);
- }
- return 0;
- }
- private void label1_Click(object sender, EventArgs e)
- {
- int x, y;
- int containerIndex = 0;
- Point ContainerWindow = ContainerWindowPosition();
- int ContainerAdr = GetContainerGuiAdr(containerIndex);
- x = Core.client.Memory.ReadInt32(ContainerAdr + 0x14);
- y = Core.client.Memory.ReadInt32(ContainerAdr + 0x18);
- Cursor.Position = new Point(ContainerWindow.X + x, ContainerWindow.Y + y);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement