CO2 Memory Addresses and Examples

12/05/2006 16:45 ColdStart#31
Quote:
Originally posted by DM2000@Dec 4 2006, 23:27
#move CO2 Exploits, Hacks & Tools
#pinned

@ColdStart, thank you for your great contribution. :)
We are proud of you !

DM
Thank you for the pin and thanks for the compliment, DM. I will be sure to continue to contribute to the ElitePvPer's community even further.
12/05/2006 17:57 Christoph_#32
For Archers ;)

0051970C (4 Byte), Number of Speedarrowpacks in Inventory.
01540620 (4 Byte), Number of equipped Arrows.

I think both are static. Someone test them and see if they work for him.
12/05/2006 22:04 ColdStart#33
Quote:
Originally posted by Christoph_@Dec 5 2006, 11:57
For Archers ;)

0051970C (4 Byte), Number of Speedarrowpacks in Inventory.
01540620 (4 Byte), Number of equipped Arrows.

I think both are static. Someone test them and see if they work for him.
The number of equipped Arrows looks like a non-static address. It is out of the common static range and seems to be in a dynamic area. None the less, someone should test them out.
12/07/2006 13:22 at10ti0n#34
Quote:
Originally posted by ColdStart+Dec 5 2006, 22:04--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>QUOTE (ColdStart @ Dec 5 2006, 22:04)</td></tr><tr><td id='QUOTE'> <!--QuoteBegin--Christoph_@Dec 5 2006, 11:57
For Archers ;)

0051970C (4 Byte), Number of Speedarrowpacks in Inventory.
01540620 (4 Byte), Number of equipped Arrows.

I think both are static. Someone test them and see if they work for him.
The number of equipped Arrows looks like a non-static address. It is out of the common static range and seems to be in a dynamic area. None the less, someone should test them out. [/b][/quote]
could you give some vb.net or c# examples of co2 memory addresses?
12/07/2006 15:25 stillnoob#35
Nice topic. Congratz...

Can you make an MemWrite function in AutoIt3 ?
12/08/2006 00:51 Christoph_#36
Autoit does not support multithreading. I would not use it to write anything to the memory.
12/08/2006 01:26 yokoyoko#37
another question: how do I set up a keypress detect system so I can terminate the script at anytime like in MacroExpress?
I see there aren't event functions in autohotkey's documention
12/08/2006 07:42 Enki#38
Great tutorial, thx for this info ColdStart.

at10ti0n, here is a good example on c#

[Only registered and activated users can see links. Click Here To Register...]

thx to peach.

Here is a better way to get the strings, you need the source of PMRL from peach too.
12/09/2006 03:25 ColdStart#39
Quote:
Originally posted by stillnoob@Dec 7 2006, 09:25
Nice topic. Congratz...

Can you make an MemWrite function in AutoIt3 ?
Here is a modified version of the MemWrite function from the UDF that Christoph_ had mentioned earlier. It is meant to be compatible with my previous memory functions.

Code:
;Write to a Process Handle Returned by MemOpen at a Certain Address with an Injection and Type
Func MemWrite&#40; &#036;ah_Mem, &#036;i_Address, &#036;v_Inject, &#036;s_Type &#41;
If &#036;s_Type = '' Then
&#036;v_Inject = StringSplit&#40;&#036;v_Inject, ''&#41;
Local &#036;v_Struct = DllStructCreate&#40;'byte&#91;' & &#036;v_Inject&#91;0&#93; + 1 & '&#93;'&#41;
For &#036;i = 1 To &#036;v_Inject&#91;0&#93;
DllStructSetData&#40;&#036;v_Struct, 1, Asc&#40;&#036;v_Inject&#91;&#036;i&#93;&#41;, &#036;i&#41;
Next
Else
Local &#036;v_Struct = DllStructCreate&#40;&#036;s_Type&#41;
DllStructSetData&#40;&#036;v_Struct, 1, &#036;v_Inject, 1&#41;
EndIf
&#036;av_Call = DllCall&#40;&#036;ah_Mem&#91;0&#93;, 'int', 'WriteProcessMemory', 'int', &#036;ah_Mem&#91;1&#93;, 'int', &#036;i_Address, 'ptr', DllStructGetPtr&#40;&#036;v_Struct&#41;, 'int', DllStructGetSize&#40;&#036;v_Struct&#41;, 'int', ''&#41;
Return &#036;av_Call&#91;0&#93;
EndFunc
[Only registered and activated users can see links. Click Here To Register...]

Here is an example usage (using the previous memory functions):
Code:
;Get the Process ID of Conquer.exe
&#036;pid=ProcessExists&#40;&#34;Conquer.exe&#34;&#41;

;Check if Conquer.exe is Running
If &#036;pid Then
;Open the Process for memory Handling
&#036;mem=MemOpen&#40;&#036;pid&#41;

If Not @error Then
;Set the Amount of Gold &#40;Client Side&#41; to 100,190
MemWrite&#40;&#036;mem, 0x004FF1E0, 100190, &#34;int&#34;&#41;

;Close the Memory Access and Process Handle
MemClose&#40;&#036;mem&#41;
EndIf
EndIf
12/09/2006 11:10 stillnoob#40
Thx for kick response. Works great! ^^
New possibilities for my mem based bots now. +k
12/10/2006 02:04 ColdStart#41
Quote:
Originally posted by yokoyoko@Dec 7 2006, 19:26
another question: how do I set up a keypress detect system so I can terminate the script at anytime like in MacroExpress?
I see there aren't event functions in autohotkey's documention
To terminate the entire script, try something like this...
Code:
^!{Esc}&#58;&#58;ExitApp
This binds the command ExitApp, which exits the entire script unconditionally, to Ctrl-Alt-Esc
12/10/2006 02:51 yokoyoko#42
ahh, i really feel like a real noob now... never thot of that lol, i was just thinking of it in terms of regular coding (everything goes in a flow and you assign functions to event handlers to detect keys)

ok I'll try that, thx. I guess this is just the wierd aspect of a macro language.
12/10/2006 05:28 ColdStart#43
Quote:
Originally posted by yokoyoko@Dec 9 2006, 20:51
I guess this is just the wierd aspect of a macro language.
Nope. Actually this is just another stupid piece of syntax brought to you by AutoHotKey. All of the macro commands and variable assignments are supposed to follow a specific pattern, yet throughout they are inconsistent and hard to work with. I much prefer AutoIt3.
12/10/2006 05:35 yokoyoko#44
yea i know what you mean, like you don't use () for a lot of the functions, strings aren't enclosed in quotes, and pct signs for variables... and use := for assignment... rofl at these "childish" syntax haha... does autoit3 support multithreading? a GUI designer? maybe i'll switch if it's not too hard to learn...
12/10/2006 06:13 ColdStart#45
Quote:
Originally posted by yokoyoko@Dec 9 2006, 23:35
does autoit3 support multithreading? a GUI designer? maybe i'll switch if it's not too hard to learn...
There is no "true" multi-threading, but there are a few UDFs on the AutoItScript forum that have pseudo code for such things. There is a GUI designer, it is called Koda.
The language makes much more sense than AutoHotKey and is Basic-like. AutoHotKey really ripped off of AutoIt and did a bad job.