Decided to work on something part time...
I really like my GBot project, decided it was time to play around with some ideas I've had.
This is the start of CervBot. Same basic idea, this one will be only a 2 client version. One master and a Bot. When certain conditions are met on the Main char, the Bot char will respond.
The GBot project was to teach me how to interact between clients using Global Variables. Now I want to see how quickly uoXL swap works. I'm pretty sure there will have to be some delays put in when swapping clients.
set %gheal 30
set %charID_1 #charID
repeat
if C in #charstatus && #charGhost = NO
{
uoXL swap
gosub castit 15 24 %charID_1 40
uoXL swap
}
if #hits < ( #maxhits - %gheal ) && #charGhost = NO
{
uoXL swap
gosub castit 15 28 %charID_1 40
uoXL swap
}
until #FALSE
;-------------------------------------
; %1 = Event Macro Param 1
; %2 = Event Macro Param 2
; %3 = Target ID or NONE
; %4 = Spell Delay
sub castit
if %3 = NONE
{
event macro %1 %2
wait %4
return
}
finditem %3 G_8
if #findkind = -1
return
set #ltargetID %3
set #ltargetKind 1
event macro %1 %2
target 5s
event macro 22 0
wait %4
return
Simple, yes? I'll include a menu for more controls over the Bot. I want to make this just like the GBot so that user's can just look at the code and configure it to their own needs. Same for the menu buttons, simple enough that someone can add their own (maybe even a button to add a new button to the menu??)
Updated 08/31/09 : added variable %charID_1
This works incredible. Really the better way to run a bot, just use one script. I didn't even have to add in any pauses at all. Next is including EN's slick client swap checker.