gosub cast
sub cast
set %followers #followers
repeat
do all your casting stuff
gosub get_target_spot
until #followers > %followers
return
You can also include a gosub in the repeat to change target positions.
A real slick menu with check boxes to cast in the same area, or randomly around you... with a settable distance, would be nice ;)
set %CastTarget #false
While %Scotch_Tape > %Chuck_Norris
{
onhotkey F10 ctrl
gosub SetCastTarget
If %CastNF = Yes
gosub CastNF
If %CastEV = Yes
gosub castEV %targetX %targetY %targetZ 57
gosub HideSelf
gosub MenuUpdate
}
sub SetCastTarget
set %targetX #charPosX
set %targetY #charPosY
set %targetZ #charPosZ
wait 4s
set %CastTarget #true
Event sysmessage Casting target set
return
; ---------------------------------------------------
sub castEV
; gosub castEV %targetX %targetY %targetZ 57
repeat
event macro 15 %4
target 5s
set #lTargetX %1
set #lTargetY %2
set #lTargetZ %3
set #lTargetKind 2
event macro 22
wait 30
if #followers <= 4
set %1 ( %1 + 1 )
until #followers <= 4
return
heh, I wrote that back on uocoders. lol
Hey Scotch,
A couple observations:
Chooseskill has a 4 character parameter, so Spellweaving would be 'spel' - I didn't check if it really works as written.
I can't figure out a reason to lock the detect hidden skill, but it forces it to be locked.
Static wait times following casts regardless of your FCR. This makes it much slower casting that it must be.
The logic surrounding %manacost is not at all obvious:
before casting save your current mana
cast
wait 2 seconds after targetting (can be 0 to 1.5 seconds depending on FCR instead!) so some mana regenerates
set %manacost to how much was used - modified by how much has regenerated
if you cast naturesfury (mana cost is 24 unmodified by LMC)
set %manarequired to %manacost + 84% of %manacost
if you cast EV (mana cost is 50 unmodified by LMC)
set %manarequired to %manacost + 48% of %manacost
Those percentages would be different for each setup based on skills, stats and equipped items (meditation, focus, JOAT, intelligence, LMC and MR).
So 84% or 48% ... would change based on another setup to be close to being correct.
A more stable calculation would be to calculate suit LMC and apply it to the base mana cost for casting.
If you would like, I can share the routines I use to calculating suits and mana requirements.
Gaderian
set %ManaCost #Mana
event macro 15 %Cast
target 4s
set #LTARGETX %LTX
set #LTARGETY %LTY
set #LTARGETZ %LTZ
set #lTARGETKIND 2
event macro 22
wait 2s
}
set %ManaCost %ManaCost - #Mana
if %Cast = 606
set %manarequired %manacost + ( %manacost * 84 / 100 )
if %Cast = 57
set %manarequired %manacost + ( %manacost * 48 / 100 )