Back to "safe space" tags

Loot / Check Buffs by Brozan (Syal)

1if not timerexists 'bardLock'
2    createtimer 'bardLock'
3    settimer 'bardLock' 300000 
4endif
5
6#Check for a ship hold
7if findtype '16019' ground any any 2 true as found
8    dclick found
9    wait 250
10    restock 2
11    wait 250
12    target found
13endif
14if findtype '16046' ground any any 2 true as found
15    dclick found
16    wait 250
17    restock 2
18    wait 250
19    target found
20endif
21if findtype '15973' ground any any 2 true as found
22    dclick found
23    wait 250
24    restock 2
25    wait 250
26    target found
27endif
28if findtype '16057' ground any any 2 true as found
29    dclick found
30    wait 250
31    restock 2
32    wait 250
33    target found
34endif
35
36#check for corpses
37if findtype 0x2006 'ground' 'any' 1 2
38    #Check for a blade
39    if findtype '11552' backpack
40        dclicktype '11552'
41        waitfortarget
42        hotkey 'Target Self'
43    else
44        #No blade, open corpses
45        @clearignore
46        while findtype 0x2006 'ground' 'any' 1 2 as 'found'
47            dclick 'found'
48            pause 400
49            @ignore 'found'
50        endwhile
51    endif
52endif
53
54#SS if we are not necro
55wait 700
56if skill 'Spirit Speak' > 25 
57    hotkey 'Spirit Speak'
58    wait 1050
59endif
60
61#check buffs
62#Food check
63if not findbuff 'food satisfaction'
64    if not findtype tray backpack
65        overhead   "I am out of food!"
66        wait 500
67        overhead  "I am out of food!"
68        wait 500
69    else
70        dclicktype tray backpack
71        wait 350
72    endif
73endif
74#Bless
75if skill 'Magery' > 50 and not findbuff 'Strength' 
76    overhead 'Bless time'
77    cast 'Bless'
78    wft 2500
79    target self
80    wait 500
81endif
82#Protection
83if skill 'Magery' > 50 and not findbuff 'Protection' 
84    overhead 'Protection time'
85    cast 'Arch Protection'
86    wft 2500
87    target self
88    wait 500
89endif
90if 'lockDisco' = 0 and skill "discordance" > 50 and timer "bardLock" > 10000 
91    overhead "Disco Buff"
92    skill "discordance" 
93    wft 2500
94    targettype "backpack"
95    settimer "bardLock" 0
96    setvar 'lockDisco' 1
97endif
98if  'lockProv' = 0 and skill "provocation" > 50 and timer "bardLock" > 10000
99    overhead "Provo Buff"
100    skill "provocation" 
101    wft 2500
102    targettype "backpack"
103    settimer "bardLock" 0
104    setvar 'lockProv' 1
105endif
106if 'lockPeace' = 0  and skill "Peacemaking" > 50 and timer "bardLock" > 10000
107    overhead "Peace Buff"
108    skill "peacemaking" 
109    wft 2500
110    targettype "backpack"
111    settimer "bardLock" 0
112    setvar 'lockPeace' 1
113endif
114if timer 'bardLock' > 12000
115    #We did not update any timers so we have cycled all
116    @setvar 'lockProv' 0
117    @setvar 'lockDisco' 0
118    @setvar 'lockPeace' 0
119endif
120if skill "taste identification" > 50 and not findbuff "Herbal Poultice" 
121    overhead "tasteidentification Buff"
122    skill "tasteid"
123    wft 2500
124    targettype "backpack" backpack
125    wait 700
126endif
127if skill "camping" > 50 and not findbuff "Campfire Visit"
128    overhead "Need camping buff!"
129    wait 500
130    overhead "Need camping buff!"
131    wait 500
132    overhead "Need camping buff!"
133    wait 500
134endif
135script "stayalive2"