Post Reply Home » Forums » MMO Forums » Age of Conan » Age of Conan Discussions

Memory pointers : Age of Conan Discussions

Posted: July 5th, 2008
Total Posts:5 Joined:2005
Anyone know the current memory location for HP / MP / SP

Also if you have a pointer for the MOB level that you have as a target :).

I haven't had a chance to look myself yet but I expect some cleaver bloke has already done it.

My current bot uses PixelGetColor which works but will fail depending on your FPS.

As such before I pass it to anyone I want to change it to reference memory rather than screen.

Any help would be great here is my cal for HP and MP checks.
Cheers
-------- Start Code ---------
Func checkhpfast()
;###############
;# GET MY HP Function #
;###############

$hpred = PixelGetColor (734 , 1075)
if $hpred = 0xC60000 then
Call ("GetMP")
Else
$hpred = PixelGetColor (734 , 1075)
if $hpred = 0xC60000 then
sleep(75)
Call ("GetMP")
Else
ToolTip("Potting HP ",0,0)
send ("+6") ;Goto Attack Bar 6 and pot madly
Send ("1")
Sleep (95)
Send ("2")
Sleep (96)
Send ("3")
Sleep (99)
Send ("4")
Sleep (75)
Send ("+4")
Call ("GetMP")
EndIf

EndIf


EndFunc

Func GetMP()
;#############
;# GET MP Function #
;#############
$mpblue = PixelGetColor (775 , 1090)
if $mpblue = 0x426DBD then

Call ("Check4Mob")
Else
$mpblue = PixelGetColor (775 , 1090)
if $mpblue = 0x426DBD then
Call ("Check4Mob")
Else
ToolTip("Potting MP ",0,0)
send ("+6") ;Goto Attack Bar 6 and pot madly
Send ("5")
Sleep (81)
Send ("6")
Sleep (80)
Send ("7")
Sleep (82)
Send ("8")
Sleep (75)
Send ("+4")
Sleep (150)
Call ("Check4Mob")
EndIf

EndIf
EndFunc

-------- End Code ---------
Posted: July 8th, 2008
User avatar
administrator
Total Posts:29891 Joined:2002
I dont think your going to get any mem locs they are a pain to find and people tend to keep them hidden :)
Posted: July 8th, 2008
Total Posts:5 Joined:2005
This bot will log you on and off while in fight club this causes the Boss to re spawn. It will loot and over pot due to dropped frames.

If someone can show me a better way to capture HP / MP and SP then I'll improve it, else take a few extra pots.

This was an easy way for me to make gold while I slept and some levels.


Screen res is 1920 x 1200 the character it logs in is #1
You will need to put your password in the code it's up to you.
I picked fight club as my place to bot as it's private and the boss respawns at your level.

I would set your default chat channel to group as if you run the script twice by mistake you can cause it to display your password in chat ;)

----------------------Start Code-----------------------
;Written for Autoit
;Attack Bar is Bar 4
;Buff Bar is 5
;Pot Bar is Bar 6 (1-4 HP) (5-8 MP)

#include <file>
; Press Esc to terminate script, Pause/Break to "pause"
DIM $var, $MPVAL, $HPVAL, $HPpos, $MPpos, $mobhp1, $hpcheck2, $deathcheck, $hpred, $mpblue
Global $Paused
HotKeySet("{PAUSE}", "TogglePause")
HotKeySet("{ESC}", "Terminate")

#include <GUIConstantsEx>
#Include <Date>

$starttime = (@hour + 0)
$endttime = (@hour + 6)


WinActivate("Age of Conan")
ToolTip("Running",0,0)
Sleep (5500)
;Use Attack Bar 4
Sleep (2000)

Call ("login")


Func TogglePause()
;####################
;# Pause Function #
;####################
$Paused = NOT $Paused
While $Paused
; ToolTip('"Paused"',0,0)
Sleep(500)
WEnd
; ToolTip("Running",0,0)
Sleep(1000)
EndFunc

Func Terminate()
Exit 0
EndFunc

Func SelectMob()
;#######################
;# Select Mob Function #
;#######################
sleep (200)
ToolTip("Buffing ",0,0) ;Buff First
send("+5")
sleep(200)
Send ("1")
Sleep (2100)
Send ("2")
Sleep (2100)
Send ("3")
Sleep (2100)
Send ("4")
Sleep (2100)
Send ("5")
Sleep (2100)
Send ("6")
Sleep (2100)
Send ("7")
Sleep (2100)
Send ("8")
Sleep (5900)
Send ("9")
Sleep (2500)
Send ("+4")
Send ("{Tab}")
sleep(1000)

Send ("0") ; Demo AOE Pet
sleep (200)
MouseMove(870, 731)
sleep (100)
MouseClick("left")
sleep (1600)
Send ("0") ; Demo AOE Pet
sleep (200)
MouseMove(875, 770)
sleep (100)
MouseClick("left")
sleep (1600)
Call ("Masterattack")
EndFunc

Func login()
;##############
;# Login in Function #
;#############
MouseMove(864, 317)
sleep (100)
MouseClick("left")
Send ("PASSWORD") ;Set your Password here.
sleep (1000)
send ("{enter}")
sleep (15000)
send ("{enter}")
sleep (10000)
Call ("Selectmob")
EndFunc

Func Logout()
;################
;# Login out Function #
;##############
$chk4mob = PixelSearch( 1111, 1060, 1290, 1074, 0xB41D1D)
If Not @error Then
Call ("Masterattack")

Else
send ("{enter}")
sleep (200)
send ("/camp")
sleep (500)
send ("{enter}")
Sleep (33000)
Call ("login")
EndIf
EndFunc

Func buff()
$buffcheck = PixelSearch( 809, 39, 1056, 71, 0x740A04, 5)
If Not @error Then
ToolTip("Buffing ",0,0)
send("+5")
sleep (200)
Send ("1")
Sleep (2100)
Send ("2")
Sleep (2100)
Send ("3")
Sleep (2100)
Send ("4")
Sleep (2100)
Send ("5")
Sleep (2100)
Send ("6")
Sleep (2100)
Send ("7")
Sleep (2100)
Send ("8")
Sleep (5900)
Send ("9")
Sleep (2000)
send("+4")
Call ("Masterattack")
EndIf
EndFunc

Func Check4Mob()
;###################
;# Check for Mob Function #
;#################
ToolTip("Check for Mob",0,0)
sleep (100)
Send ("{TAB}")
sleep(200)
$chk4mob = PixelSearch( 1111, 1025, 1290, 1056, 0xB41D1D)
If Not @error Then
Call ("Masterattack")

Else
Call("Loot")
EndIf

EndFunc

Func Masterattack()
;#############
;# Attack Function #
;############

Send ("{Tab}")
sleep(100)
send ("4")
sleep (400)
sleep (400)
Send ("4")
sleep (400)
sleep (400)
Send ("4")
Send ("9")
sleep (500)
Call ("checkhpfast")
EndFunc

Func checkhpfast()
;###############
;# GET MY HP Function #
;###############
;If PixelGetColor (925 , 615) = 0xC60000 Then

$hpred = PixelGetColor (734 , 1075)
if $hpred = 0xC60000 then
Call ("GetMP")
Else
$hpred = PixelGetColor (734 , 1075)
if $hpred = 0xC60000 then
sleep(75)
Call ("GetMP")
Else
ToolTip("Potting HP ",0,0)
send ("+6")
Send ("1")
Sleep (95)
Send ("2")
Sleep (96)
Send ("3")
Sleep (99)
Send ("4")
Sleep (75)
Send ("+4")

Call ("GetMP")
EndIf

EndIf


EndFunc

Func GetMP()
;#############
;# GET MP Function #
;#############
$mpblue = PixelGetColor (775 , 1090)
if $mpblue = 0x426DBD then

Call ("Check4Mob")
Else
$mpblue = PixelGetColor (775 , 1090)
if $mpblue = 0x426DBD then
Call ("Check4Mob")
Else
ToolTip("Potting MP ",0,0)
send ("+6")
Send ("5")
Sleep (81)
Send ("6")
Sleep (80)
Send ("7")
Sleep (82)
Send ("8")
Sleep (75)
Send ("+4")
Sleep (150)
Call ("Check4Mob")
EndIf

EndIf
EndFunc

Func Loot()
;############
;# Loot Function #
;############
$chk4mob = PixelSearch( 1111, 1060, 1290, 1074, 0xB41D1D)
If Not @error Then
Call ("Masterattack")
Else
$chk4loot = PixelSearch( 948, 1091, 971, 1113, 0xA8A4A0)
Sleep (1000)
Send ("+u")
sleep (1000)
MouseMove(1036, 505)
sleep (1000)
MouseClick("left")
sleep (500)
MouseMove(1119, 509)
sleep (500)
MouseClick("left")
sleep (500)
MouseMove(1036, 505)
sleep (300)
MouseClick("left")
MouseMove(1119, 509)
sleep (300)
MouseClick("left")
sleep (300)
Call ("Dead") ;CHANGE TO LOG OUT.
EndIf
EndFunc

Func Dead()
;#############
;# Am I dead #
;#############
$deathcheck = PixelSearch( 925, 615, 983, 617, 0x9C1B20)
If $endttime = $starttime Then
Send ("{alt}{f4}")
Send ("{alt}{f4}")
Exit 0
Else
Call ("Logout")
EndIf
EndFunc

--------------------------End Code -------------------
Posted: July 9th, 2008
Total Posts:154 Joined:2006
.
Ready to join the community? Click here and see all of the benefits!
blue large dotWho is online
Users browsing this forum: No registered users and 1 guest
Post Reply