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 -------------------