Back to "necromancy" skill

Train Herding, Spirit Speak and Necromancy from 80 to 120 by DoubleDuke

1# Train Herding, Spirit Speak and Necromancy from 80 to 120 by DoubleDuke
2# Based on a script by Jaseowns
3# First version 1.0 2023/05/04
4#
5# What to expect:
6#   training herding, spirit speak and necromancy from 80 to 120
7# What you need:
8#   a book of necromancy, a shepherds crook,
9#   a spellbook with Fireball and Fire Elemental,
10#   at least 80 Magery to cast Fire Elemental (better 100),
11#   a lot of black pearls to cast a lot of fireballs,
12#   100 of bloodmoss, mandrake root, spider silk and sulfurous ash for fire elemental.
13#   restock reagents manually if needed.
14# Ho to use:
15#   Have 100 INT, 100 Magery, and 80 Herding-SpiritSpeak-Necromancy before starting is suggested.
16#   80 Meditation at least.
17#   Go to prevalia zoo, or your preferred training spot, and start the script.
18#   Target your desired creature.
19#   If you want your skill to train until 100: modify the script to desire.
20#
21# for UO Outlands
22
23if not varexist myNecroTrainTarget or not find myNecroTrainTarget ground -1 -1 12
24    overhead "Set your Necro Training Target" 2843
25    @setvar! myNecroTrainTarget
26endif
27
28if skill "Herding" = 120 and skill "Spirit Speak" = 120 and skill "Necromancy" = 120
29    overhead "Maxed Skills, ending script..." 88
30    say 'all release'
31    waitforgump 931181454
32    gumpresponse 1
33    stop
34endif
35
36if mana < 20 and not findbuff "actively meditating"
37    while mana < 85
38    overhead "Meditating..." 88
39        hotkey "Meditation"
40        wait 10250
41        say "guards"
42        wait 250
43    endwhile
44elseif mana > 20
45    if followers < 2
46        overhead "Summoning 2 Lichs" 88
47        say "[vengefulspirit"
48        wait 600
49        if skill "Necromancy" > 90
50            say "[wither"
51            wait 600
52            cast 'Fire Elemental'
53            wait 3500
54            cast 'Fire Elemental'
55            wait 3500
56        else
57            cast 'Fire Elemental'
58            wait 3500
59            hotkey "Meditation"
60            wait 10250
61        endif
62        say "all kill"
63        waitfortarget
64        target myNecroTrainTarget
65        wait 250
66    elseif followers < 4
67        overhead "Summoning 1 Lich"
68        say "[vengefulspirit"
69        wait 600
70        cast 'Fire Elemental'
71        wait 3500
72        say "all kill"
73        waitfortarget
74        target myNecroTrainTarget
75        wait 250
76    endif
77    if skill "herding" < 120
78        if findtype "shepherd's crook" backpack as crook
79            dclick crook
80            wft 500
81            target myNecroTrainTarget
82        else
83            overhead "Need a crook!" 34
84            wait 1000
85        endif
86    elseif skill "herding" = 120 and skill "Spirit Speak" < 120
87        hotkey "Spirit Speak"
88        wait 250
89    endif
90    if findtype "Black Pearl%s%"
91        if skill "spirit speak" < 120  or skill "Necromancy" < 120
92            cast "Fireball"
93            waitfortarget 
94            target myNecroTrainTarget
95            wait 2500
96        endif
97    else
98        overhead "Check reagents: Black Pearls!" 34
99    endif
100endif
101replay