Back to "b" tags

Bapeth's Leather / Plate Hot swapping script by barryroser

Description: Use this when you want to avoid Mind Blast damage, or auto swap between leather/plate for any reason

1# Bapeths Leather / Plate Hotswapping
2#
3# Upload Date : December 30th 2024
4#
5# This script will toggle leather or plate on in a single press
6# It requires that you have two sets of armor on your person, one leather and one plate
7#
8# Use this when you want to avoid Blast damage, or auto swap between leather/plate for any reason
9#
10# Script starts here...
11
12clearall 
13while queued
14    //donothing
15endwhile
16
17if not find "NoMBchest" self
18    hotkey "Set Last Target"
19    wft 500
20    overhead "Set Plate Chest..." 88
21    while targetexists 
22        //do nothing
23    endwhile
24    @setvar "NoMBchest" lasttarget 
25    getlabel "NoMBchest" desc
26    if "platemail chest" in desc
27        //donothing
28    else 
29        @unsetvar "NoMBchest"
30        replay
31    endif
32endif
33if not find "NoMBleggings" self
34    hotkey "Set Last Target"
35    wft 500
36    overhead "Set Plate Leggings..." 88
37    while targetexists 
38        //donothing
39    endwhile
40    @setvar "NoMBleggings" lasttarget 
41    getlabel "NoMBleggings" desc
42    if "platemail leggings" in desc
43        //donothing
44    else 
45        @unsetvar "NoMBleggings"
46        replay
47    endif
48endif
49if not find "NoMBgloves" self
50    hotkey "Set Last Target"
51    wft 500
52    overhead "Set Plate Gloves..." 88
53    while targetexists 
54        //donothing
55    endwhile
56    @setvar "NoMBgloves" lasttarget 
57    getlabel "NoMBgloves" desc
58    if "platemail gloves" in desc
59        //donothing
60    else 
61        @unsetvar "NoMBgloves"
62        replay
63    endif
64endif
65if not find "NoMBarms" self
66    hotkey "Set Last Target"
67    wft 500
68    overhead "Set Plate Arms..." 88
69    while targetexists 
70        //donothing
71    endwhile
72    @setvar "NoMBarms" lasttarget 
73    getlabel "NoMBarms" desc
74    if "platemail arms" in desc
75        //donothing
76    else 
77        @unsetvar "NoMBarms"
78        replay
79    endif
80endif
81if not find "NoMBgorget" self
82    hotkey "Set Last Target"
83    wft 500
84    overhead "Set Plate Gorget..." 88
85    while targetexists 
86        //donothing
87    endwhile
88    @setvar "NoMBgorget" lasttarget 
89    getlabel "NoMBgorget" desc
90    if "platemail gorget" in desc
91        //donothing
92    else 
93        @unsetvar "NoMBgorget"
94        replay
95    endif
96endif
97
98if not find "MBchest" self
99    hotkey "Set Last Target"
100    wft 500
101    overhead "Set Leather Chest..." 78
102    while targetexists 
103        //do nothing
104    endwhile
105    @setvar "MBchest" lasttarget 
106    getlabel "MBchest" desc
107    if "leather chest" in desc
108        //donothing
109    else 
110        @unsetvar "MBchest"
111        replay
112    endif
113endif
114if not find "MBleggings" self
115    hotkey "Set Last Target"
116    wft 500
117    overhead "Set Leather Leggings..." 78
118    while targetexists 
119        //donothing
120    endwhile
121    @setvar "MBleggings" lasttarget 
122    getlabel "MBleggings" desc
123    if "leather leggings" in desc
124        //donothing
125    else 
126        @unsetvar "MBleggings"
127        replay
128    endif
129endif
130if not find "MBgloves" self
131    hotkey "Set Last Target"
132    wft 500
133    overhead "Set Leather Gloves..." 78
134    while targetexists 
135        //donothing
136    endwhile
137    @setvar "MBgloves" lasttarget 
138    getlabel "MBgloves" desc
139    if "leather gloves" in desc
140        //donothing
141    else 
142        @unsetvar "MBgloves"
143        replay
144    endif
145endif
146if not find "MBarms" self
147    hotkey "Set Last Target"
148    wft 500
149    overhead "Set Leather Arms..." 78
150    while targetexists 
151        //donothing
152    endwhile
153    @setvar "MBarms" lasttarget 
154    getlabel "MBarms" desc
155    if "leather arms" in desc
156        //donothing
157    else 
158        @unsetvar "MBarms"
159        replay
160    endif
161endif
162if not find "MBgorget" self
163    hotkey "Set Last Target"
164    wft 500
165    overhead "Set Leather Gorget..." 78
166    while targetexists 
167        //donothing
168    endwhile
169    @setvar "MBgorget" lasttarget 
170    getlabel "MBgorget" desc
171    if "leather gorget" in desc
172        //donothing
173    else 
174        @unsetvar "MBgorget"
175        replay
176    endif
177endif
178
179if not timerexists pvparon
180    overhead "Equipping Leather" 88
181    createtimer pvparon
182    removetimer pvparoff
183    while find "MBchest" backpack
184        dclick "MBchest"
185        while queued
186            //donothing
187        endwhile
188    endwhile
189    while find "MBgloves" backpack
190        dclick "MBgloves"
191        while queued
192            //donothing
193        endwhile
194    endwhile
195    while find "MBleggings" backpack
196        dclick "MBleggings"
197        while queued
198            //donothing
199        endwhile
200    endwhile
201    while find "MBarms" backpack
202        dclick "MBarms"
203        while queued
204            //donothing
205        endwhile
206    endwhile
207    while find "MBgorget" backpack
208        dclick "MBgorget"
209        while queued
210            //donothing
211        endwhile
212    endwhile
213    stop
214endif  
215
216if not timerexists pvparoff
217    overhead "Equipping Plate" 38
218    createtimer pvparoff
219    removetimer pvparon
220    while find "NoMBchest" backpack
221        dclick "NoMBchest"
222        while queued
223            //donothing
224        endwhile
225    endwhile
226    while find "NoMBgloves" backpack
227        dclick "NoMBgloves"
228        while queued
229            //donothing
230        endwhile
231    endwhile
232    while find "NoMBleggings" backpack
233        dclick "NoMBleggings"
234        while queued
235            //donothing
236        endwhile
237    endwhile
238    while find "NoMBarms" backpack
239        dclick "NoMBarms"
240        while queued
241            //donothing
242        endwhile
243    endwhile
244    while find "NoMBgorget" backpack
245        dclick "NoMBgorget"
246        while queued
247            //donothing
248        endwhile
249    endwhile
250    stop
251endif