Page 1 of 1

Checking a value of a double-pointer with RomBot

Posted: Thu Dec 26, 2013 8:43 am
by gloover
Hi Admin, lisa rock.

I have a double pointer and want to change the value with rombot. So I found a static (green) pointer with CE.

The strukcture is: Address 009E261C with Offset 813 (static pointer) points to another address 02E8A725 which contains the value 45983.

So closings the game (runes of magic), restarting, changing a char - everytime CE prints the right value but triying this in rombot:

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints>
<onLoad>

Ptr1 = 0x9E261C
	Ptr1_offset = 0x813


	function CheckValue()
		local Testvalue = memoryReadInt(getProc(),Ptr1 + Ptr1_offset);
		cprintf(cli.white, "Testvalue: %s\n", Testvalue)
	end;
	
	CheckValue()	


	player:sleep()
</onLoad>
</waypoints>
prints everytime the wrong value. Whats wrong on this. Any special syntax in reading the addresses. 009E261C instead of 0x9E261C doesnt solve the problem.

Please help.

thx in advance!

Re: Checking a value of a double-pointer with RomBot

Posted: Thu Dec 26, 2013 9:32 am
by rock5
I suspect it should be something like

Code: Select all

memoryReadInt(getProc(),0x9E261C, {0x813,0x0})
But if that doesn't work try sending a picture of address as it looks when you edit it.

Re: Checking a value of a double-pointer with RomBot

Posted: Thu Dec 26, 2013 9:54 am
by gloover
Thank u for the fast reply rock.


trying with

Code: Select all

memoryReadInt(getProc(),0x9E250C, {0x710,0x0});
prints

Code: Select all

3:50pm - [string "..."]:8: Wrong number of parameters supplied to memoryReadInt().
EDIT: shame on me! I've used memoryReadInt instead of memoryReadIntPtr.

thx @ all - have solved the problem.

Re: Checking a value of a double-pointer with RomBot

Posted: Thu Dec 26, 2013 12:34 pm
by rock5
Sorry, I meant memoryReadIntPtr.