Valhalla Legends Forums Archive | Battle.net Bot Development | [Resolved] [VB 6] Writing to the wrong section...

AuthorMessageTime
LockesRabb
I finally got the function to be able to write to the Timer offset, but there's only one problem. It's not writing the hex to the right place. In winhack, it shows the hex code I wrote in the right side pane, meaning-- the value is the hex, but the address is NOT in hex. See for yourself, I took a screen shot:

*Screenshot removed due to issue being resolved*

As you can see, it's writing to the wrong place... I want the hex code to be written to the hex address (left side pane), not as a value (right side pane)... So what am I doing wrong? This is driving me bonkers...   :-\ I'm including the function so you can examine it. Like always, thanks in advance for any and all assistance!
June 25, 2005, 12:42 AM
Kp
[quote author=Kyro link=topic=11960.msg117320#msg117320 date=1119660163]So what am I doing wrong?[/quote]

You're using VB.  I'm pretty sure I already advised you that this was a bad idea. :)
June 25, 2005, 1:33 AM
LockesRabb
[quote author=Kp link=topic=11960.msg117326#msg117326 date=1119663233]
[quote author=Kyro link=topic=11960.msg117320#msg117320 date=1119660163]So what am I doing wrong?[/quote]

You're using VB.  I'm pretty sure I already advised you that this was a bad idea. :)
[/quote]

Yes, I took that under advisement, and chose to continue on the path. In any case...

Problem solved. What had to be done was to seperate the hex code into 2's, and write each individual byte to memory, using this code:

WriteProcessMemory pHandle, lAddress, Chr$("&H" & Left(sData, 2)), 1, &H0

Credit goes to Dyndrilliac for assisting in this problem!
June 25, 2005, 1:36 AM

Search