-
Notifications
You must be signed in to change notification settings - Fork 3
/
Potman.xml
434 lines (402 loc) · 9.26 KB
/
Potman.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE muclient>
<!-- Saved on Saturday, March 18, 2017, 2:19 AM -->
<!-- MuClient version 4.98 -->
<!-- Plugin "potman" generated by Plugin Wizard -->
<muclient>
<plugin
name="potman"
author="Lunk"
id="fbab1e58a30ef08fcecd3d9f"
language="Lua"
purpose="potion management"
save_state="y"
date_written="2017-03-18 02:03:25"
requires="4.98"
version="1.1"
>
<description trim="y">
<![CDATA[
potman help
potman ---> displays potman bag and potions
potman bag * ---> sets potions bag to *
pheal * ---> sets healing potion to *
plotus * ---> sets mana potion to *
prefresh * ---> sets refresh potion to *
phb ---> puts all heal potions in potions bag
plb ---> puts all lotus potions in potions bag
prb ---> puts all refresh potions in potions bag
pshb ---> puts all shadowbane potions in potions bag
pwob ---> puts all eyes of the wolf potions in potions bag
palb ---> puts all eyes of allegiance potions in potions bag
psib ---> puts all sight beyond sight potions in potions bag
pgrb ---> puts all griffons blood potions in potions bag
pclb ---> puts all clear elixir potions in potions bag
qp ---> gets a heal potion from potions bag and quaffs it
ql ---> gets a lotus potion from potions bag and quaffs it
qr ---> gets a refresh potion from potions bag and quaffs it
qsh ---> gets a shadowbane potion from potions bag and quaffs it
qwo ---> gets an eyes of the wolf potion from potions bag and quaffs it
qal ---> gets an eyes of allegiance potion from potions bag and quaffs it
qsi ---> gets a sight beyond sight potion from potions bag and quaffs it
qgr ---> gets a griffons blood potion from potions bag and quaffs it
qcl ---> gets a clear elixir potion from potions bag and quaffs it
sell hp ---> gets all heal potions from potions bag and sells them
sell mn ---> gets all lotus potions from potions bag and sells them
sell mv ---> gets all refresh potions from potions bag and sells them
sell sh ---> gets all shadowbane potions from potions bag and sells them
sell wo ---> gets all eyes of the wolf potions from potions bag and sells them
sell al ---> gets all eyes of allegiance potions from potions bag and sells them
sell si ---> gets all sight beyond sight potions from potions bag and sells them
sell gr ---> gets all griffon's blood potions from potions bag and sells them
sell cl ---> gets all clear elixir potions from potions bag and sells them
]]>
</description>
</plugin>
<!-- Get our standard constants -->
<include name="constants.lua"/>
<!-- Aliases -->
<aliases>
<alias
match="potman bag *"
enabled="y"
send_to="12"
sequence="100"
>
<send>SetVariable ("potion_bag", "%1")
ColourNote ("red", "blue", "potman bag set to : %1")</send>
</alias>
<alias
match="potman"
enabled="y"
send_to="12"
sequence="100"
>
<send>
ColourNote("yellow", "", "potman bag : " .. GetVariable("potion_bag"))
ColourNote("yellow", "", "potman heal potion : " .. GetVariable("potion_heal"))
ColourNote("yellow", "", "potman lotus potion : " .. GetVariable("potion_lotus"))
ColourNote("yellow", "", "potman refresh potion : " .. GetVariable("potion_refresh"))</send>
</alias>
<alias
match="pheal *"
enabled="y"
send_to="12"
sequence="100"
>
<send>SetVariable ("potion_heal", "%1")
ColourNote ("red", "blue", "potman heal potion set to : %1")</send>
</alias>
<alias
match="plotus *"
enabled="y"
send_to="12"
sequence="100"
>
<send>SetVariable ("potion_lotus", "%1")
ColourNote ("red", "blue", "potman lotus potion set to : %1")</send>
</alias>
<alias
match="prefresh *"
enabled="y"
send_to="12"
sequence="100"
>
<send>SetVariable ("potion_refresh", "%1")
ColourNote ("red", "blue", "potman refresh potion set to : %1")</send>
</alias>
<alias
match="pclb"
enabled="y"
expand_variables="y"
sequence="100"
>
<send>put all.clear @potion_bag</send>
</alias>
<alias
match="phb"
enabled="y"
expand_variables="y"
sequence="100"
>
<send>put all.@potion_heal @potion_bag</send>
</alias>
<alias
match="plb"
enabled="y"
expand_variables="y"
sequence="100"
>
<send>put all.@potion_lotus @potion_bag</send>
</alias>
<alias
match="palb"
enabled="y"
expand_variables="y"
sequence="100"
>
<send>put all.allegiance @potion_bag</send>
</alias>
<alias
match="lpb"
enabled="y"
expand_variables="y"
sequence="100"
>
<send>examine @potion_bag</send>
</alias>
<alias
match="prb"
enabled="y"
expand_variables="y"
sequence="100"
>
<send>put all.@potion_refresh @potion_bag</send>
</alias>
<alias
match="pshb"
enabled="y"
expand_variables="y"
sequence="100"
>
<send>put all.shadowbane @potion_bag</send>
</alias>
<alias
match="psib"
enabled="y"
expand_variables="y"
sequence="100"
>
<send>put all.sight @potion_bag</send>
</alias>
<alias
match="pgrb"
enabled="y"
expand_variables="y"
sequence="100"
>
<send>put all.griffon @potion_bag</send>
</alias>
<alias
match="pwob"
enabled="y"
expand_variables="y"
sequence="100"
>
<send>put all.wolf @potion_bag</send>
</alias>
<alias
match="qcl"
enabled="y"
expand_variables="y"
sequence="100"
>
<send>get clear @potion_bag
quaff clear</send>
</alias>
<alias
match="qal"
enabled="y"
expand_variables="y"
sequence="100"
>
<send>get allegiance @potion_bag
quaff allegiance</send>
</alias>
<alias
match="ql"
enabled="y"
expand_variables="y"
sequence="100"
>
<send>get @potion_lotus @potion_bag
quaff @potion_lotus</send>
</alias>
<alias
match="qp"
enabled="y"
expand_variables="y"
sequence="100"
>
<send>get @potion_heal @potion_bag
quaff @potion_heal</send>
</alias>
<alias
match="qr"
enabled="y"
expand_variables="y"
sequence="100"
>
<send>get @potion_refresh @potion_bag
quaff @potion_refresh</send>
</alias>
<alias
match="qsh"
enabled="y"
expand_variables="y"
sequence="100"
>
<send>get shadowbane @potion_bag
quaff shadowbane</send>
</alias>
<alias
match="qgr"
enabled="y"
expand_variables="y"
sequence="100"
>
<send>get griffon @potion_bag
quaff griffon</send>
</alias>
<alias
match="qsi"
enabled="y"
expand_variables="y"
sequence="100"
>
<send>get sight @potion_bag
quaff sight</send>
</alias>
<alias
match="qwo"
enabled="y"
expand_variables="y"
sequence="100"
>
<send>get wolf @potion_bag
quaff wolf</send>
</alias>
<alias
match="sell cl"
enabled="y"
expand_variables="y"
sequence="100"
>
<send>get all.clear @potion_bag
sell all.clear</send>
</alias>
<alias
match="sell hp"
enabled="y"
expand_variables="y"
sequence="100"
>
<send>get all.@potion_heal @potion_bag
sell all.@potion_heal</send>
</alias>
<alias
match="sell gr"
enabled="y"
expand_variables="y"
sequence="100"
>
<send>get all.griffon @potion_bag
sell all.griffon</send>
</alias>
<alias
match="sell al"
enabled="y"
expand_variables="y"
sequence="100"
>
<send>get all.allegiance @potion_bag
sell all.allegiance</send>
</alias>
<alias
match="sell mn"
enabled="y"
expand_variables="y"
sequence="100"
>
<send>get all.@potion_lotus @potion_bag
sell all.@potion_lotus</send>
</alias>
<alias
match="sell mv"
enabled="y"
expand_variables="y"
sequence="100"
>
<send>get all.@potion_refresh @potion_bag
sell all.@potion_refresh</send>
</alias>
<alias
match="sell sh"
enabled="y"
expand_variables="y"
sequence="100"
>
<send>get all.shadowbane @potion_bag
sell all.shadowbane</send>
</alias>
<alias
match="sell si"
enabled="y"
expand_variables="y"
sequence="100"
>
<send>get all.sight @potion_bag
sell all.sight</send>
</alias>
<alias
match="sell wo"
enabled="y"
expand_variables="y"
sequence="100"
>
<send>get all.wolf @potion_bag
sell all.wolf</send>
</alias>
</aliases>
<!-- Variables -->
<variables>
<variable name="potman_bag">1766659164 </variable>
</variables>
<!-- Plugin help -->
<aliases>
<alias
script="OnHelp"
match="potman help"
enabled="y"
>
</alias>
</aliases>
<script>
<![CDATA[
function OnPluginInstall ()
OnPluginEnable ()
end
function OnPluginEnable ()
potion_bag = GetVariable ("potion_bag")
if potion_bag == nil then
SetVariable ("potion_bag", "bag")
end
potion_refresh = GetVariable ("potion_bag")
potion_heal = GetVariable ("potion_heal")
if potion_heal == nil then
SetVariable ("potion_heal", "heal")
end
potion_heal = GetVariable ("potion_heal")
potion_lotus = GetVariable ("potion_lotus")
if potion_lotus == nil then
SetVariable ("potion_lotus", "lotus")
end
potion_lotus = GetVariable ("potion_lotus")
potion_refresh = GetVariable ("potion_refresh")
if potion_refresh == nil then
SetVariable ("potion_refresh", "refresh")
end
potion_refresh = GetVariable ("potion_refresh")
end
function OnPluginSaveState ()
SetVariable ("potion_bag", potion_bag)
SetVariable ("potion_heal", potion_heal)
SetVariable ("potion_lotus", potion_lotus)
SetVariable ("potion_refresh", potion_refresh)
end
function OnHelp ()
world.Note (world.GetPluginInfo (world.GetPluginID (), 3))
end
]]>
</script>
</muclient>