Necromancer Leveling BOT
Posted: August 6th, 2007, 3:36 pm
If I can get this working properly it will be an Auto Level Bot for Necromancers.
Once I have this one written I will be able to get one made for EVERY class and will be posting them all here.
Here is the list of problems I have identified so far:
The script consists of 5 "while" loops.
The first loop is SUPPOSE to monitor my pet's health and if the life bar is not green, cast the heal pet spell. It does not. Any ideas as to why?
The second loop is a loop to insure I have a valid target. And again..It is not working. Any ideas as to what I can do different?
Loops 3, 4, and 5 are identical. They are working...sorta. It does not seem to be selecting the correct loop...It just kinda randomly selects one on its own based on no identifiable criteria...And once it enters the loop it refuses to exit it. Any ideas? The script is posted below.
Constants
XLocT=0
YLocT=0
XLocP=0
YLocP=0
End
//--------------------------------------------------
//The locations that AC Tool will be checking for pixel colors
//Current Target
Compute XLocT={WindowLeft}+487
Compute YLocT={WindowTop}+154
//Pet Health
Compute XLocP={WindowLeft}+287
Compute YLocP={WindowTop}+129
//--------------------------------------------------
//"Target Nearest NPC" (Hotkey defined in EQ2)
Keys Q
//--------------------------------------------------
//If Pet Life Bar <> Green then Heal Pet
LoadRGB $XLocP, $YLocP
If {RGBRed}= 64 //Green
Keys 5
Delay 6500
While {RGBRed}= 64 //Green
Keys 6500
End
End
//--------------------------------------------------
//If Current Target is something OTHER than a mob, switch to "Next NPC" (Defined Hotkey in EQ2)
LoadRGB $XLocT, $YLocT
If {RGBGreen}= 0 //Invalid Target
Keys V
While {RGBGreen}= 0 //Invalid Target
Keys V
End
End
//--------------------------------------------------
//If current target is a Green CON mob, cast these spells in this order. (According to hotbar setup)
LoadRGB $XLocT, $YLocT
If {RGBRed} = 64 //Green
Keys 1
Delay 4000
Keys 2
Delay 5000
While {RGBRed} = 64 //Green
Keys 3
Delay 2500
Keys 4
Delay 3000
Keys 1
Delay 3000
Keys 4
Delay 3500
End
Restart
End
//--------------------------------------------------
//If current target is a Blue CON mob, cast these spells in this order. (According to hotbar setup)
LoadRGB $XLocT, $YLocT
If {RGBRed} = 0 //Blue
Keys 1
Delay 4000
Keys 2
Delay 5000
While {RGBRed} = 0 //Blue
Keys 3
Delay 2500
Keys 4
Delay 3000
Keys 1
Delay 3000
Keys 4
Delay 3500
End
Restart
End
//--------------------------------------------------
//If current target is a White CON mob, cast these spells in this order. (According to hotbar setup)
LoadRGB $XLocT, $YLocT
If {RGBRed} = 255 //White
Keys 1
Delay 4000
Keys 2
Delay 5000
While {RGBRed} = 255 //White
Keys 3
Delay 2500
Keys 4
Delay 3000
Keys 1
Delay 3000
Keys 4
Delay 3500
End
Restart
End
Restart
Once I have this one written I will be able to get one made for EVERY class and will be posting them all here.
Here is the list of problems I have identified so far:
The script consists of 5 "while" loops.
The first loop is SUPPOSE to monitor my pet's health and if the life bar is not green, cast the heal pet spell. It does not. Any ideas as to why?
The second loop is a loop to insure I have a valid target. And again..It is not working. Any ideas as to what I can do different?
Loops 3, 4, and 5 are identical. They are working...sorta. It does not seem to be selecting the correct loop...It just kinda randomly selects one on its own based on no identifiable criteria...And once it enters the loop it refuses to exit it. Any ideas? The script is posted below.
Constants
XLocT=0
YLocT=0
XLocP=0
YLocP=0
End
//--------------------------------------------------
//The locations that AC Tool will be checking for pixel colors
//Current Target
Compute XLocT={WindowLeft}+487
Compute YLocT={WindowTop}+154
//Pet Health
Compute XLocP={WindowLeft}+287
Compute YLocP={WindowTop}+129
//--------------------------------------------------
//"Target Nearest NPC" (Hotkey defined in EQ2)
Keys Q
//--------------------------------------------------
//If Pet Life Bar <> Green then Heal Pet
LoadRGB $XLocP, $YLocP
If {RGBRed}= 64 //Green
Keys 5
Delay 6500
While {RGBRed}= 64 //Green
Keys 6500
End
End
//--------------------------------------------------
//If Current Target is something OTHER than a mob, switch to "Next NPC" (Defined Hotkey in EQ2)
LoadRGB $XLocT, $YLocT
If {RGBGreen}= 0 //Invalid Target
Keys V
While {RGBGreen}= 0 //Invalid Target
Keys V
End
End
//--------------------------------------------------
//If current target is a Green CON mob, cast these spells in this order. (According to hotbar setup)
LoadRGB $XLocT, $YLocT
If {RGBRed} = 64 //Green
Keys 1
Delay 4000
Keys 2
Delay 5000
While {RGBRed} = 64 //Green
Keys 3
Delay 2500
Keys 4
Delay 3000
Keys 1
Delay 3000
Keys 4
Delay 3500
End
Restart
End
//--------------------------------------------------
//If current target is a Blue CON mob, cast these spells in this order. (According to hotbar setup)
LoadRGB $XLocT, $YLocT
If {RGBRed} = 0 //Blue
Keys 1
Delay 4000
Keys 2
Delay 5000
While {RGBRed} = 0 //Blue
Keys 3
Delay 2500
Keys 4
Delay 3000
Keys 1
Delay 3000
Keys 4
Delay 3500
End
Restart
End
//--------------------------------------------------
//If current target is a White CON mob, cast these spells in this order. (According to hotbar setup)
LoadRGB $XLocT, $YLocT
If {RGBRed} = 255 //White
Keys 1
Delay 4000
Keys 2
Delay 5000
While {RGBRed} = 255 //White
Keys 3
Delay 2500
Keys 4
Delay 3000
Keys 1
Delay 3000
Keys 4
Delay 3500
End
Restart
End
Restart