Back to "pets" tags

Make sure you have an earth pet and water pet (P) by Jaseowns

1# Make sure you have an earth pet and water pet by Jaseowns
2# UO Outlands
3if not listexists petNameList
4    createlist petNameList
5endif
6if list petNameList = 0
7    pushlist petNameList "jaseearth"
8    pushlist petNameList "jaseearthtwo"
9    pushlist petNameList "jasetwo"
10    pushlist petNameList "jasethree"
11endif
12
13if not varexist myEarthPet
14    @setvar! myEarthPet 0
15endif
16if not varexist myWaterPet
17    @setvar! myWaterPet 0
18endif
19
20if dead myEarthPet or not find myEarthPet ground -1 -1 12
21    if followers < 4
22    
23        while mana < 50
24            overhead "waiting for mana" 88
25            if not findbuff "Actively Meditating"
26                useskill "meditation"
27            endif
28            wait 200
29        endwhile
30        
31        cast "earth elemental"
32        wait 6000
33        if findtype "an earth elemental" ground -1 -1 2 as myPet
34            if noto myPet = "friend" and list petNameList > 0
35                foreach petName in petNameList
36                    rename myPet petName
37                    break
38                endfor
39                poplist petNameList "front"
40            endif
41            @setvar! myEarthPet myPet
42        endif
43        say "all guard me"
44    endif
45endif
46   
47if dead myWaterPet or not find myWaterPet ground -1 -1 12
48    if followers < 4
49    
50        while mana < 50
51            overhead "waiting for mana" 88
52            if not findbuff "Actively Meditating"
53                useskill "meditation"
54            endif
55            wait 200
56        endwhile
57        
58        cast "water elemental"
59        wait 6000
60        if findtype "a water elemental" ground -1 -1 2 as myPet
61            if noto myPet = "friend" and list petNameList > 0
62                foreach petName in petNameList
63                    rename myPet petName
64                    break
65                endfor
66                poplist petNameList "front"
67            endif
68            @setvar! myWaterPet myPet
69        endif
70        say "all guard me"
71    endif
72endif
73
74
75wait 1000
76replay
77
78//overhead myEarthPet
79//while not dead myEarthPet
80//    overhead "we have a tank" 88
81//  wait 1000
82//dwhile
83//overhead "Tank down" 34
84//skill 'meditation'
85//skill 'meditation'