Post
by returnfire » Sun May 09, 2004 10:46 am
I have an addition to the cleric Genbot I have written for raids. When the raid pulls a ton of adds, clerics are expected to F8 and then assist... and see if PC the mob has targetted needs a heal. Carpal tunnel here I come.
So, I wrote something that gets a list of the closest 4 mobs in the area (less than 200 radius, non-dead). It checks their health (interesting issue here actually that appears to be a bug, see PS below) to ensure the mobhealth < 95% (to ensure tanks are sufficiently aggroed on them and then the program targets their target, healing as appropriate (the 95% thing is to stop me from healing the puller and getting mobbed on incoming from heal aggro). That way I can scan with my cleric the local pulls and watch over multiple tanks. Especially useful in trash mob clears.
Problem is that when I want to stop and go off auto-heal mode I just want to start moving the mouse. So I thought to write a little routine that stops the auto-pull if the mouse has NOT been in one position for less than two seconds. That is, if the mouse is changing position greater than a certain rate of time, it will pause the autoheal routine and let me take care of a certain buff manually.
So, basically, it is a crude interrupt routine. Is there a better interrupt routine for mouse events? "If mouse Move"? "IfMouseButtonDown"?
RF
ps- Minor issue-- I was scanning constructed list of local mobs using ${Spawn[array[x]].PctHPs and for some reason it does NOT update the PctHPs... I had to TARGET them before it would update. Still testing this to see if this is just my bad programming or not.