Re-summon Earth Elemental by initsu
Related: SpiritSpeak
Description from the author:
cast "Earth elemental"
wait 2100
if followers >= 4
// unsummoning old tank just in time
menu earthOne 9
while not dead
if not find earthOne
overhead "Old tank is gone"
break
endif
wait 100
endwhile
@setvar earthOne 0
else
if not dead earthOne
@setvar earthTwo earthOne
rename earthTwo "oldtank"
@setvar earthOne 0
endif
endif
while not dead
@clearignore
while findtype 14|158 ground any 1 4 as summon
if summon == earthTwo
elseif noto summon == "friend"
@setvar earthOne summon
overhead "New tank set"
break
endif
@ignore summon
endwhile
if earthOne == 0
// unable to set earthOne. trying again...
wait 250
else
break
endif
endwhile
@clearignoreThis will summon a new Earth Elemental and release the previous one as late as possible. If there is room for more followers, it will rename the old Earth Elemental instead of releasing it.
The script uses the same variable names as the Auto Mage. (Your tank summon is expected to be set as the earthOne variable.)
Update 2024-01-24: Fix for Focus Aggression being removed - which changed the menu numbers.