Thank you Maddog and dxrom. I'll check both of these out and put up the results tonight.
Post Merge: December 28, 2012, 07:30:50 PM
Suggestion for something I noticed...
You have the line:
if #hits < 114
Most likely this means that 114 is perhaps your maximum HP minus 20 (or something similar). Instead of putting in a hard-coded value (like 114), you may want it to work with different characters that have a different amount of HP. So I would recommend using:
if #hits < ( #maxhits - 20 )
Ok Made this change. Went with ( #maxHit - 10 ) though. Thank you!
Casa
Post Merge: December 28, 2012, 05:34:41 PM
When casting you want to be careful. You don't want to overcast spells and get caught in a fizzle loop. You also want to make sure to scan for fizzles.
Something like uh...
set %dmgBeforeHeal 25
set %spellTimer #scnt2
if #hits < (#maxhits - %dmgBeforeHeal) && ( %spellTimer < #scnt2 )
gosub castHeal
sub castHeal
event macro 15 202
set %spelltimer #scnt2 + %safety
gosub fizzleCheck
if %fizzled = #true
return
else
event macro 23 0
return
sub fizzleCheck
;insert some journal scanner here to check for fizzles.
return
Just something to get you started.
Okay. I'm trying to look into the journal scanning stuff using the easyuo wiki... It's a bit beyond my newb level but I'm gonna take a swing at it.... Standby! Haha
Casa