Back to "spiritspeak" tags

Re-summon Earth Elemental by initsu

Related: SpiritSpeak

Description: This 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.

1cast "Earth elemental"
2wait 2100
3if followers >= 4
4    // unsummoning old tank just in time
5    menu earthOne 9
6    while not dead
7        if not find earthOne 
8            overhead "Old tank is gone"
9            break
10        endif
11        wait 100
12    endwhile
13    @setvar earthOne 0
14else
15    if not dead earthOne
16        @setvar earthTwo earthOne
17        rename earthTwo "oldtank"
18        @setvar earthOne 0
19    endif
20endif
21while not dead
22    @clearignore
23    while findtype 14|158 ground any 1 4 as summon
24        if summon == earthTwo
25        elseif noto summon == "friend"
26            @setvar earthOne summon
27            overhead "New tank set"
28            break
29        endif
30        @ignore summon
31    endwhile
32    if earthOne == 0
33        // unable to set earthOne. trying again...
34        wait 250
35    else
36        break
37    endif
38endwhile
39@clearignore