Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Programming
You last visited: Today at 16:40

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Autoit]Char co-ords?

Discussion on [Autoit]Char co-ords? within the CO2 Programming forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
|Jonny|'s Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 81
Received Thanks: 480
[Autoit]Char co-ords?

What I want to do is get my chars co-ords and click on co-ords to get my char to move(obviously) I have searched for this and what i found didn't seem to work for me. Could anyone help, maybe write a small guide or an example code?
|Jonny| is offline  
Old 05/27/2009, 18:07   #2
 
|Jonny|'s Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 81
Received Thanks: 480
bump

so now i know how to get the memory address and to read it but i still don't understand.

for example:
Code:
WinActivate("[Conquer2.0]")
$ID=_MemoryOpen(ProcessExists("conquer.exe"))
$X=0x02A90954
$Y=0x02A90958
$HP=0x11F1BBB

$CurrentX=_MemoryRead($X, $ID)
$CurrentY=_MemoryRead($Y, $ID)
but then i don't know how to click an actual X/Y position within the game.

Like lets say $X is 300 and $Y is 350 how do i make it click X 301 and Y 351?

I can't figure it out any advice?
|Jonny| is offline  
Old 05/27/2009, 19:13   #3
 
clintonselke's Avatar
 
elite*gold: 0
Join Date: Feb 2007
Posts: 348
Received Thanks: 2,175
BTW those are dynamic memory addresses, when u restart conquer and run it again, they will no longer be at the same address.

(The memory addresses obtained from IAmHawtness's thread "Lets talk about the new changes")

$ID=_MemoryOpen(ProcessExists("conquer.exe"))
$PlayerBase = _MemoryRead(0x0064FF48, $ID)
$X=0x0298
$Y=0x029C

$CurrentX=_MemoryRead($PlayerBase + $X, $ID)
$CurrentY=_MemoryRead($PlayerBase + $Y, $ID)

The HP value will always change too, but i dont know an easy way to obtain that using only memory reads.

What it looks like u wanna do is convert map coordinates into mouse coordinates?, so u click in the right spot to jump to the right map coords?

What i would do is from ur player coords calculate the delta to the map coords u wanna move to.

deltaX = mapX - playerX
deltaY = mapY - playerY

And then try and convert those Delta map coordinates into Delta screen coordinates (using the centre of the screen as a reference).

One thing u know is a (0,+a) delta screen coords, causes a (+c,+c) delta map coords AND a (+b,0) delta screen coords, causes a (+d,-d) delta map coordinates... which means its possible to convert from delta screen coords to delta map coords, and what u need to do is convert it backwards (possibly by solving some linear equation).

Let dx be map delta x
Let dy be map delta y
Let mdx be mouse delta x (mouse x minus center x of screen)
Let mdy be mouse delta y (mouse y minus center y of screen)

dx = Q*mdx + R*mdy
dy = Q*mdx - R*mdy

so now take 2 sample datas from conquer in order to solve for Q & R

now after u have solved Q & R u can produce the following matrix formula.

PHP Code:
dx ]    [ Q    R ]    [ mdx ]
dy ] = [ Q   -mdy 
and solving for the inverse of the following matrix...

PHP Code:
Q   R]
Q  -R
u can use the inverse matrix to move from delta map coordinates to delta mouse coordinates and thus find out where u need to click in order to move to a certain map coordinate.

PHP Code:
         ( [ Q  R ] )                           [ R    R ]
inverse( [ -] ) =  (/ (2*Q*R)) Q  -
and forgive me if there are any errors... its 4am in the morning xD

Edit: I've done a similar thing b4

The matrix equations might like look a bit crazy... they never seem to line up properly
clintonselke is offline  
Thanks
2 Users
Old 05/27/2009, 19:36   #4
 
|Jonny|'s Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 81
Received Thanks: 480
thanks for your reply, i think i'll give that delta idea a go though, probably take a hell of a long time tho. and about what you said about the thread "Lets talk about the new changes" if i do the $X an $Y like that, is it static?
|Jonny| is offline  
Old 05/27/2009, 19:43   #5
 
clintonselke's Avatar
 
elite*gold: 0
Join Date: Feb 2007
Posts: 348
Received Thanks: 2,175
Quote:
Originally Posted by |Jonny| View Post
thanks for your reply, i think i'll give that delta idea a go though, probably take a hell of a long time tho. and about what you said about the thread "Lets talk about the new changes" if i do the $X an $Y like that, is it static?
yeap thats static from that thread. It will only change if TQ patch their conquer.exe.
clintonselke is offline  
Thanks
2 Users
Old 05/28/2009, 17:22   #6
 
clintonselke's Avatar
 
elite*gold: 0
Join Date: Feb 2007
Posts: 348
Received Thanks: 2,175
$ID=_MemoryOpen(ProcessExists("conquer.exe"))
$PlayerBase = _MemoryRead(0x0064FF48, $ID)

$Base2 = _MemoryRead($PlayerBase + 0x800, $ID)

$CurrentHP = _MemoryRead($Base2 + 0x1D00, $ID)

that worked on my conquer when i opened and closed it a few times, i think its static accessing it that way.
clintonselke is offline  
Thanks
2 Users
Old 05/29/2009, 12:25   #7
 
|Jonny|'s Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 81
Received Thanks: 480
Quote:
Originally Posted by clintonselke View Post
$ID=_MemoryOpen(ProcessExists("conquer.exe"))
$PlayerBase = _MemoryRead(0x0064FF48, $ID)

$Base2 = _MemoryRead($PlayerBase + 0x800, $ID)

$CurrentHP = _MemoryRead($Base2 + 0x1D00, $ID)

that worked on my conquer when i opened and closed it a few times, i think its static accessing it that way.
oh thanks i'm glad you found that, i needed it to finish a few of my bots off i don't like using pixels to pot


and jonny999 isnt me :/
|Jonny| is offline  
Reply


Similar Threads Similar Threads
CO-ORDS
04/27/2008 - Silkroad Online - 5 Replies
Hi again, I was wandering if someone could please tell me some X+Y coordinates for: Roc/Rok mountain inside the Ch'in tomb takla makan and the 2 euro cities. Please whoever has any of these coordinates put a reply in here or pm me. I need ASAP.
PC Mine Co-Ords
11/24/2006 - CO2 Guides & Templates - 18 Replies
Righty o guys.. this is from personal experience.. im just trying to help with abit of mining in Phoenix castle mine.. this ISINT a gurantee but its from my personal experiences.. With the following co-ordinates in Pheonix Castle mine i have found that with my char which is a Water/Water tao I have mined a few quality gems on the first set of co-ordinates im gunna give.. on the second lot i have mined a few normal gems. Just this night alone i have mined a Refined Phoenix Gem, a Refined...
Scarlet Monastery Farming (With Co-ords)
05/16/2005 - WoW Guides & Templates - 2 Replies
People post all these great 40g an hour exploits for the monastery and dont tell you the co-ords, how you earn 40g or anything... ridiculous, lol. The 40g an hour exploit down in SM is 20g off, maybe for a level 60 rogue earning 40g an hour would be easy (doubtful) but I ran it for an hour and came out 20g richer, ran it for another hour and came out 60g richer because I made the strategy change a little Im an enchantedr so basically I disenchanted every blue, 95% of blues in Scarlet...



All times are GMT +1. The time now is 16:40.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.