just made this eq2 hunting bot for eq2 I love the mage class so this bot was designed for my warlock however it could be easaly adapted for any class by simply aranging the primary hot bar for a set of attacks
in short this bot works in 1152 by 864 resolution with eq2 maximized
the bot checks my profit ui health bar for a min of 80% showing in a green health bar also checking my mana of min 80% by searching for the blue mana bar pixle. also it checks for a target health bar and mana bar ensuring it has health and mana would asume it is a good target not a harvest node or quest giver etc. if all is true and it has found a good target it then checks the pixel color of my range spell if the spell is washed out in a red color the target is out of range and it will not attack the spell just happens to be green so it looks for the green spell if it shows green then it attacks
starting with my root spell it cycles a list of spells I set up at the end of my 6 spell cycle it checks to see if it still has a target if yes then it cycles up to 4 times if the target dies with in these cycles it will lose it's target and stop the attack then cast an invis spell to help avoid agg and being spoted as a boter.
also I have not had it work yet but I put in a few lines to alow the bot to shut down at a given time thow the timing did not work last night while I had it running
this is my first post on the forum my first success with actool and I would like some input if anyone has anything to add that might make it better.
CODE
//================================================================================
=================
//
// hunting bot 1.1
//
//
//================================================================================
=================
SetActiveWindow EverQuest II*
Delay 3000
constants
//=============================================================
// set y to = time to camp in military time
y = 10:00
//=============================================================
x = 0
end
// camps to desk top at preset time of y
FormatDateTime x = {now}, h:n
if $x = $y
delay 500
MousePos 318, 675
LeftClick
delay 500
MousePos 370, 578
leftclick
delay 500
MousePos 501, 321
leftclick
//=============================
// disconect internet
//=============================
delay 500
MousePos 1059, 847
RightClick
delay 500
MousePos 909, 768
LeftClick
ELSE
Keys {f8}
getblue 458, 18 = 76 // checks for target window frame if no window then no target
isgreen 620, 782 // checks my spell at pos 619, 682 to make sure it is not washed in red indicating out of range
getblue 130, 73 = 164 // check my mana
getblue 447, 70 = 164 // check for target mana if yes contiue attacking. insuring target has mana unlike harvest nodes
isgreen 128, 37 // check my health then attack. green would be full ranging down to yellow and last red
// root spell
keys 1
//nil distortion
keys 4
delay 3 sec
// null absolution
keys 3
delay 4 sec
//curse of darkness
keys 2
delay 3 sec
// flashfreeze
keys 9
delay 3 sec
//grievous blast
keys 0
delay 3 sec
//noxious bolt
keys -
// clear mouse of hot bar avoiding spell pop up discription
MousePos 922, 433
delay 3 sec
//================================================================================
========================
// check for target 2nd time if yes attack again
getblue 458, 18 = 76
// root spell
keys 1
//nil distortion
keys 4
delay 3 sec
// null absolution
keys 3
delay 4 sec
//curse of darkness
keys 2
delay 3 sec
// flashfreeze
keys 9
delay 3 sec
//grievous blast
keys 0
delay 3 sec
//noxious bolt
keys -
// clear mouse of hot bar avoiding spell pop up discription
MousePos 922, 433
delay 3 sec
else
// if no I killed target restart to find new target
keys 5
restart
end
//================================================================================
=========================
// check for target 3rd time if yes attack again
getblue 458, 18 = 76
// Do these commands if I have a target
// root spell
keys 1
//nil distortion
keys 4
delay 3 sec
// null absolution
keys 3
delay 4 sec
//curse of darkness
keys 2
delay 3 sec
// flashfreeze
keys 9
delay 3 sec
//grievous blast
keys 0
delay 3 sec
//noxious bolt
keys -
// clear mouse of hot bar avoiding spell pop up discription
MousePos 922, 433
delay 3 sec
else
// if no I killed target restart to find new target
keys 5
restart
end
//================================================================================
=========================
// check for target 4th time if yes attack again
getblue 458, 18 = 76
// Do these commands if I have a target
// root spell
keys 1
//nil distortion
keys 4
delay 3 sec
// null absolution
keys 3
delay 4 sec
//curse of darkness
keys 2
delay 3 sec
// flashfreeze
keys 9
delay 3 sec
//grievous blast
keys 0
delay 3 sec
//noxious bolt
keys -
// clear mouse of hot bar avoiding spell pop up discription
MousePos 922, 433
delay 3 sec
else
// if no I killed target restart to find new target
keys 5
restart
end
// attack done hopfully your target is dead
//================================================================================
==
else
restart
end
//+++++++++++++++++++++++++++\\
Else
Restart
end
//+++++++++++++++++++++++++++++++\\
else
restart
end
//++++++++++++++++++++++++++++++++++++\\
Else
restart
end
//+++++++++++++++++++++++++++++++++++\\
Else
Restart
End
//++++++++++++++++++++++++++++++++++++++++++++\\
end // ends set time to shut down
restart