Checking a value of a double-pointer with RomBot

Ask questions about cheating in any games you would like. Does not need to pertain to MicroMacro.
Post Reply
Message
Author
User avatar
gloover
Posts: 304
Joined: Wed Jul 07, 2010 4:31 am

Checking a value of a double-pointer with RomBot

#1 Post by gloover » Thu Dec 26, 2013 8:43 am

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!

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

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

#2 Post by rock5 » Thu Dec 26, 2013 9:32 am

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.
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

User avatar
gloover
Posts: 304
Joined: Wed Jul 07, 2010 4:31 am

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

#3 Post by gloover » Thu Dec 26, 2013 9:54 am

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.

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

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

#4 Post by rock5 » Thu Dec 26, 2013 12:34 pm

Sorry, I meant memoryReadIntPtr.
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests