-
Notifications
You must be signed in to change notification settings - Fork 2
/
magic.txt
565 lines (467 loc) · 33.3 KB
/
magic.txt
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
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
#( "======================================================================================================" )
#( "| This file three main parts: casting aliases, auto-casting actions and spell translation. |")
#( "| The translations seem to be partly broken, so working on that. Auto-spell is working well though! |")
#( "| If a caster, just type 'as' and this will automatically cast whatever has dropped (sx to recheck) |")
#( "| - See master.txt for examples of how to tell it which spells your character doesn't have |")
#( "======================================================================================================")
#alias sx={#var $armour=0;#var $shield=0;#var $shroud=0;#var $bless=0;#var $str=0;#var $pfe=0;#var $sensel=0;#var $detmagic=0; #var $detevil=0; #var $detinvis=0; #var $sanc=0; stat}
#alias mf={cast 'create food'}
#alias mm={mf;eat mushroom}
#alias mw={cast 'create water' $1}
#alias mwg={gb goblet; mw goblet; pb goblet}
#alias mws={mw flagon}
#action >+hungry1 ^You begin to feel hungry={#print ($RED+$DARK+"$0"+$NORM)}
#action >+hungry2 ^You are hungry={#print ($RED+"You are "+$ULINE+"hungry"+$NORM+".")}
#action >+thirsty1 ^You being to feel thirsty={#print ($RED+$DARK+"$0"+$NORM)}
#action >+thirsty2 ^You are thirsty={#print ($RED+"You are "+$ULINE+"thirsty"+$NORM+".")}
#action >-autofeed ^You are hungry={#print;precast;mm;postcast}
#action >-autodrink ^You are thirsty={#print;precast;dw;mw;deb;postcast}
#action >-void You have been idle, and are pulled into a void={precast;st;l;postcast}
#action >-autocure You bleed from open wounds={#print;precast;cc;postcast}
#alias stc={cast 'store' charm}
#alias store={cast 'store' $0}
#alias stq={cast 'store' earthquake}
#alias precast=stand
#alias postcast=rest
#alias restful={#alias precast=stand; #alias postcast={rest; #if (@afk) { #send ("act "+$afkact) } }; rest}
#alias sleepy={#alias precast=wa; #alias postcast=sleep;lead;sleep}
#alias bsle={lead;gs2;u1;us1;rem fur;rem cloak;rem mantle;gd blanket;wear blanket;i;sle;act wrapped up cozily in her blanket}
#alias bwa={act;wake;stand;rem blanket;pd blanket;wear cloak;wear fur;wear mantle;s1;gm}
#var @afkcast=0
#alias _afkcaston={#var @afkcast=1; cha linkdrop 120;#action -hungry2;#action -thirsty2;#action +autofeed;#action +autodrink;#action +void;autorebuffon;#action +autocure;#action +recharmuncharmed; message Away-$1 auto spell/recharm/drink/water/void: ON}
#alias aron={as;restful;_afkcaston rest}
#alias ason={as;sleepy;_afkcaston sleep;}
#alias asoff={ws;#var @afkcast=0; cha linkdrop 120;#action +hungry2;#action +thirsty2;#action -autofeed;#action -autodrink;#action -void;autorebuffoff;#action -autocure;#action -recharmuncharmed; sx;message Away-sleep/rest auto spell/recharm/drink/water/void: OFF}
#alias aroff=asoff
#alias blanky={bsle;ason}
#alias unblanky={bwa;asoff}
#alias autorebuffoff={#action -ashield;#action -asanc;#action -aarm;#action -ashroud1;#action -abless;#action -asensel;#action -astr;#action -apfe;#action -adetmagic;#action -adetevil;#action -adetinvis;#action -abob;#action +dshield;#action +dsanc;#action +darm;#action +dshroud1;#action +dbless;#action +dsensel;#action +dstr;#action +dpfe;#action +ddetmagic;#action +ddetevil;#action +ddetinvis;#action +dbob}
#alias autorebuffon={#action +ashield;#action +asanc;#action +aarm;#action +ashroud1;#action +abless;#action +asensel;#action +astr;#action +apfe;#action +adetmagic;#action +adetevil;#action +adetinvis;#action +abob;#action -dshield;#action -dsanc;#action -darm;#action -dshroud1;#action -dbless;#action -dsensel;#action -dstr;#action -dpfe;#action -ddetmagic;#action -ddetevil;#action -ddetinvis;#action -dbob}
#action >+mestartcast1 You start to concentrate={#print ($DARK+"$0"+$NORM)}
#action >+mestartcast2 You muster all of your concentration={#print ($DARK+"$0"+$NORM)}
#action >+mebackfire ^Your spell backfired&1={#print ($RED+"Your spell "+$BKRED+$WHITE+"backfired"+$NORM+$RED+"$1"+$NORM)}
/// Spell Timers and auto-recast
#var $SPELLUP_COL=($GREEN)
#var $SPELLDOWN_COL=($BOLD+$RED)
#var $sn_armour=("armour")
#var $sn_shield=("shield")
#var $sn_shroud=("shroud")
#var $sn_sanc=("sanctuary")
#var $sn_bless=("bless")
#var $sn_str=("strength")
#var $sn_pfe=("protection from evil")
#var $sn_sensel=("sense life")
#var $sn_detmagic=("detect magic")
#var $sn_detevil=("detect evil")
#var $sn_detinvis=("detect invisibility")
#var $sn_nvis=("night vision")
#var $sn_bob=("breath of briskness")
#var $sn_ork=("orkisk draught")
#var $sn_refresh=("refreshment")
#var $sn_antid=("antidote")
#var $sn_blind=("blindness")
#var $sn_seeing=("seeing")
#var $sn_shadow=("shadow world")
#var $sn_lref=("lightning reflection")
#var $sn_lethargy=("lethargy")
#var $sn_diso=("disorientation")
#var $sn_tired=("tiredness")
#var $sn_hagard=("hagardness")
#alias spelltimer_on={#print (attr "bold blue" + $last_line + noattr)}
#alias spell_up={#(@spelltimer_$1=timer);#print ($last_line+$DARK+" ("+$sn_$1+" "+$NORM+$SPELLUP_COL+"UP"+$NORM+$DARK+")"+$NORM);#var $$1=1}
#alias malus_up={#(@spelltimer_$1=timer);#print ($last_line+$DARK+" ("+$sn_$1+" "+$NORM+$SPELLDOWN_COL+"UP"+$NORM+$DARK+")"+$NORM);#var $$1=1}
/// If lastshortest < 0.5 lastlongest we're likely dealing with a spell such as shroud/armour, therefore use longest not shortest for colouring
/// " #if (!@spelltimer_$1) #(@spelltimer_$1=timer);" fixes stupidly long spelltimes after a reload -- doesnt work, shortest too short then on first login!
#alias spelltimer={#var $$1=1; #(@spelltimer=@spelltimer_$1); #(@spell_ms=(timer-@spelltimer)); _mstomins @spell_ms; #var $timercol=(""); #if ( @lastlongest_ms_$1 && @spell_ms>(@lastlongest_ms_$1*2/4) && @spell_ms>(@lastshortest_ms_$1*8/10) ) #var $timercol=($YELLOW); #if ( @lastlongest_ms_$1 && @spell_ms>(@lastlongest_ms_$1*3/4) && @spell_ms>(@lastshortest_ms_$1*9/10) ) #var $timercol=($RED); #print ($last_line+$DARK+" ("+$timercol+$mins+$NORM+$DARK+" / "+$lastshortest_$1+"-"+$lastlongest_$1+")"+$NORM); #var @spelltimer=;#var @spell_ms=;#var $timercol=}
/// #alias spelltimer={#var $$1=1; #if (!@spelltimer_$1) #(@spelltimer_$1=timer); #(@spelltimer=@spelltimer_$1); #(@spell_ms=(timer-@spelltimer)); _mstomins @spell_ms; #var $timercol=(""); #if ( @lastshortest_ms_$1>(@lastlongest_ms_$1*2/4) ) #var @lastmax_ms=@lastshortest_ms_$1; #else #var @lastmax_ms=@lastlongest_ms_$1; #if ( @lastlongest_ms_$1 && @spell_ms>(@lastmax_ms*8/10) ) #var $timercol=($YELLOW); #if ( @lastlongest_ms_$1 && @spell_ms>(@lastmax_ms*9/10) ) #var $timercol=($RED); #print ($last_line+$DARK+" ("+$timercol+$mins+$NORM+$DARK+" / "+$lastshortest_$1+"-"+$lastlongest_$1+")"+$NORM); #var @spelltimer=;#var @spell_ms=;#var $timercol=;#var @lastmax_ms=}
/// To avoid confusion from spells dropping when you first login, only activate after a minute
#var @ignorespelldown=1
#in ignorespelldown (60*1000) { #(@ignorespelldown=0) }
#alias spell_down=#if (@ignorespelldown) {#print ($last_line)}; #else {#var $$1=0;#(@spelltimer=@spelltimer_$1); #(@spell_ms=(timer-@spelltimer)); _mstomins @spell_ms; #print ($last_line+$DARK+" ("+$sn_$1+" "+$NORM+$SPELLDOWN_COL+"down"+$NORM+$DARK+", lasted "+$mins+", previous "+$lasttime_$1+")"+$NORM)); #($lasttime_$1=$mins); #if ( !@lastshortest_ms_$1 || (@spell_ms<@lastshortest_ms_$1) ) { #(@lastshortest_ms_$1=@spell_ms); #($lastshortest_$1=$mins) }; #if (!@lastlongest_ms_$1 || (@spell_ms>@lastlongest_ms_$1) ) { #(@lastlongest_ms_$1=@spell_ms) ; #($lastlongest_$1=$mins) }; #var @spelltimer=;#var @spell_ms=}
/// Convert $1 in milliseconds to a string of minutes:seconds ($mins)
#var $mins=("")
#alias _mstomins={ #(@secs=$1/1000%60); #if (@secs < 10) {#var $mins=(%($1/1000/60)+":0"+%(@secs))}; #else {#var $mins=(%($1/1000/60)+":"+%(@secs))}; #var @secs=}
#alias malus_down={#var $$1=0;#(@spelltimer=@spelltimer_$1);#(@spelltimer_sec=(timer-@spelltimer)/1000%60);#if (@spelltimer_sec < 10) {#var $sptime=(%((timer-@spelltimer)/1000/60)+":0"+%(@spelltimer_sec))}; #else {#var $sptime=(%((timer-@spelltimer)/1000/60)+":"+%(@spelltimer_sec))}; #print ($last_line+$DARK+" ("+$sn_$1+" "+$NORM+$SPELLUP_COL+"down"+$NORM+$DARK+", lasted "+$sptime+", previous "+$lasttime_$1+")"+$NORM)); #var $lasttime_$1=($sptime); #var @spelltimer=;#var @spelltimer_sec=}
/// #action >+setblesstimer1 You begin to feel the light of Aman shine upon you.={spelltimer_on;blesson}
/// #action >+setblesstimer2 You feel a renewed light shine upon you.={spelltimer_on;blesson}
/// #action >-showblesstimer ^- bless={spelltimer @spelltimer_bless}
/// #action >-blessdown The light of Aman fades away from you.={spelltimer_off @spelltimer_bless;blessoff}
/// #alias blesson={#(@spelltimer_bless=timer);#ac +setblesstimer2;#ac +showblesstimer;#ac +blessdown}
/// #alias blessoff={#var @spelltimer_bless=;#ac -setblesstimer2;#ac -showblesstimer;#ac -blessdown}
#alias _charmietimer={time; #ex ("message Charmie timer started for $1"); #ex ("#in charmiedespawn$1 (60*60*1000) {warning $1 will de-charm soon (1 hour passed)}")}
#action %+nrecharmsuccess1 ^A [a-zA-Z ,\\-]+ \\((tank[a-z]|parry[a-z]|basher[a-z])\\) starts following you.={#print ($MAGENTA+"$0"+$NORM); group $2; _charmietimer $2}
#action %+nrecharmsuccess2 Your control on [a-zA-Z ,\\-]+ \\((tank[a-z]|parry[a-z]|basher[a-z])\\) is renewed!={#print ($MAGENTA+"$0"+$NORM); _charmietimer $2}
#action >-recharmfail ^Nothing seems to happen.={#print; #ex ("cht "+$recharming)}
#action >-recharmsuccess1 ^A &1 (&2) starts following you.={#print ($MAGENTA+"$0"+$NORM); group $2; #3 order $2 sle; _recharmsuccess}
#action >-recharmsuccess2 Your control on &1 (&2) is renewed!={#print ($MAGENTA+"$0"+$NORM); _recharmsuccess}
#action >-recharmsuccess3 Nobody here by that name.={#print ($MAGENTA+"$0"+$NORM); _recharmsuccess}
#alias _abc_to_num={#var @abc_to_num=0; #for (\@0=1; \@0<=10; \@0++) { #if ($abc.\@0=="$1") #(@abc_to_num=\@0) } }
#alias _nextcharm={ #var $recharming=("$1"); #print (" Charming "+$ULINE+"$1"+$NORM+" next") }
#alias _calcnextcharm={#if ($recharming.<4=="tank") { _abc_to_num $recharming.5; #if ($abc_to_num>$tanks) $recharming="parrya" }; #else { #ex ("_nextcharm tank+"
#if ($recharming=="parry") { _nextcharm parryb }; #else { _nextcharm tank } } }
#alias _recharmsuccess={rest; #action -lostcontrol; #action -recharmfail; #action -recharmsuccess1; #action -recharmsuccess2; #action -recharmsuccess3; _calcnextcharm }
#var $recharming=("parrya")
/// #ex ("vb "+$recharming) - if this fails we get "Nothing seems to happen" which triggers another charm, which can cause loss of control just after we succeeded. Could
#alias lostrecharm={#print; #action -lostcontrol; #action +recharmfail; st; #ex ("cht "+$recharming) }
#action >-lostcontrol ^You lost control on &1 (&2)=lostrecharm
#action %-recharmuncharmed ^A [a-z ,\\-]+ \\((tank[a-z]|parry[a-z])\\) stops following you.={#print; #action +recharmsuccess1; #action +recharmsuccess2; #action -recharmsuccess3; #var $recharming=("$2"); lostrecharm}
#var @autorecharm=0
#alias autocharmon=#var @autorecharm=1
#alias autocharmoff=#var @autorecharm=0
#alias recharm=#if (@autorecharm) { #action +lostcontrol; #action +recharmsuccess1; #action +recharmsuccess2; #action +recharmsuccess3; st; #ex ("cht "+$recharming) }
#action >+qarm ^- armour={spelltimer armour}
#action >+qshield ^- shield={spelltimer shield}
#action >+qshroud ^- shroud={spelltimer shroud}
#action >+qsanc ^- sanctuary={spelltimer sanc}
#action >+qbless ^- bless={spelltimer bless}
#action >+qstr ^- strength={spelltimer str}
#action >+qpfe ^- protection from evil={spelltimer pfe}
#action >+qsensel ^- sense life={spelltimer sensel}
#action >+qdetmagic ^- detect magic={spelltimer detmagic}
#action >+qdetevil ^- detect evil={spelltimer detevil}
#action >+qdetinvis ^- detect invisibility={spelltimer detinvis}
#action >+qnvis ^- night vision={spelltimer nvis}
#action >+qbob ^- breath of briskness={spelltimer bob}
#alias afkcast={precast;$1;sx;train all;time;postcast}
#action >-aarm You feel less protected={#print;afkcast ba}
/// Use this as the timer to re-cast stuff that might have failed - can't do it as part of afkcast since it can trigger recasting all after recharm fail
#action >-ashield Your magical shield wears off={#print;as;afkcast bz}
#action >-asanc The white aura around your body fades.={#print;afkcast bx}
#action >-ashroud1 Your misty shroud dissolves={#print;afkcast bh}
#action >-ashroud2 You feel yourself exposed={#print;afkcast bh}
/// Use bless time (~8 mins) to alternately re-charm
#action >-abless The light of Aman fades away from you={#print;afkcast bb; recharm}
#action >-astr You feel weaker={#print;afkcast bst}
#action >-apfe You feel less righteous={#print;afkcast bpe}
#action >-asensel You feel less aware={#print;afkcast bsl}
#action >-adetmagic Your perception of magical auras wears off={#print;afkcast bdm}
#action >-adetevil You sense the red in your vision disappear.={#print;afkcast bde}
#action >-adetinvis The detect invisible wears off.={#print;afkcast bdi}
#action >-anvis Your vision blurs.={#print;afkcast bnv}
#action >-abob Your legs feel heavier={#print;afkcast bob}
/// Detect invisibility:
/// Up: Your eyes tingle.
/// Refresh: Your eyes tingle.
/// Down: The detect invisible wears off.
/// Night vision:
/// Up: Your eyes tingle.
/// Refresh: Your night vision is refreshed.
/// Down: Your vision blurs.
/// Seeing potion:
/// Up: The world now appears bathed in a soft glow.
/// Down: The glow within your eyes slowly vanishes.
#action >+uarm A blue transparent wall slowly appears around you.={spell_up armour}
#action >+ushield You feel protected.={spell_up shield}
#action >+usanc You start glowing.={spell_up sanc}
#action >+ushroud You are surrounded by a misty shroud.={spell_up shroud}
#action >+ubless You begin to feel the light of Aman shine upon you.={spell_up bless}
#action >+ustr You feel stronger.={spell_up str}
#action >+upfe You have a righteous feeling!={spell_up pfe}
#action >+usensel You feel your awareness improve.={spell_up sensel}
#action >+udetmagic You become sensitive of magical auras.={spell_up detmagic}
#action >+udetevil You feel aware of all that is foul and evil.={spell_up detevil}
/// Night vision and detect invis have the same message for when the spell starts. Det invis is rarely used, so disabling that one for now. Also same message when refreshed.
#action >-udetinvis Your eyes tingle.={spell_up detinvis}
#action >+unvis Your eyes tingle.={spell_up nvis}
#action >+ubob An energy begins to flow within your legs as your body becomes lighter.={spell_up bob}
#action >+rarm Your magic armour is revitalised.={spell_up armour}
#action >+rshield Your protection is revitalised.={spell_up shield}
#action >+rsanc Your aura glows more intensely.={spell_up sanc}
#action >+rshroud Your misty shroud is renewed.={spell_up shroud}
#action >+rbless You feel a renewed light shine upon you.={spell_up bless}
#action >+rstr The duration of the strength spell has been improved.={spell_up str}
#action >+rpfe You feel a renewed righteousness.={spell_up pfe}
#action >+rsensel Your awareness is refreshed.={spell_up sensel}
#action >+rdetmagic Your awareness of magical auras is renewed.={spell_up detmagic}
#action >+rdetevil Your awareness of evil is refreshed.={spell_up detevil}
#action >+nvis Your night vision is refreshed.={spell_up nvis}
#action >+rbob The energy in your legs is refreshed.={spell_up bob}
#action >+darm You feel less protected={spell_down armour}
#action >+dshield Your magical shield wears off={spell_down shield}
#action >+dsanc The white aura around your body fades.={spell_down sanc}
#action >+dshroud1 Your misty shroud dissolves={spell_down shroud}
#action >+dshroud2 You feel yourself exposed={spell_down shroud}
#action >+dbless The light of Aman fades away from you={spell_down bless}
#action >+dstr You feel weaker={spell_down str}
#action >+dpfe You feel less righteous={spell_down pfe}
#action >+dsensel You feel less aware={spell_down sensel}
#action >+ddetmagic Your perception of magical auras wears off.={spell_down detmagic}
#action >+ddetevil You sense the red in your vision disappear.={spell_down detevil}
#action >+ddetinvis The detect invisible wears off.={spell_down detinvis}
#action >+dnvis Your vision blurs.={spell_down nvis}
#action >+dbob Your legs feel heavier={spell_down bob}
#action >+uorkd The draught burns down your throat, and a fiery feeling fills your limbs.={spell_up ork}
#action >+qorkd ^- Orkish draught={spelltimer @spelltimer_ork}
#action >+dorkd As the warmth of the draught recedes from your limbs, you feel less energetic.={spell_down ork}
/// Seeing potion - swap night vision action for the time being
#action >+useeing The world now appears bathed in a soft glow.={spell_up seeing; #action +qseeing; #action -qnvis}
#action >-qseeing ^- night vision={spelltimer @spelltimer_seeing}
#action >+dseeing The glow within your eyes slowly vanishes={spell_down seeing; #action -qseeing; #action +qnvis}
/// Shadows potion
#action >+ushadow You feel partially drawn into the world of shadows.={spell_up shadow}
#action >-qshadow ^- shadow world={spelltimer @spelltimer_shadow}
#action >+dshadow You have completely returned from the realm of shadows.={spell_down shadow}
/// Lightning reflection (fragile scroll)
#action >+ulref A strange white globe expands from the scroll until it totally encloses you!={spell_up lref}
/// No status effect
#action >+lref The globe around you collapses, and the air shakes.={rem staff; wear buckler; wm; spell_down lref}
/// refreshment: can be "greater strength"/less healthy or "greater energy"/less focussed or ...
/// You feel less focused.
#action >+urefresh The effect of the fresh water begins in your toes and rises steadily through every limb={spell_up refresh}
#action >+qrefresh ^- refreshment={spelltimer refresh}
#action >+drefresh1 You feel less focused.={spell_down refresh}
#action >+drefresh2 You feel less healthy.={spell_down refresh}
#action >+drefresh3 You feel less energetic.={spell_down refresh}
/// Quaff potion, no poison: A warm feeling runs through your body.
/// Quaff potion, poisoned: A warm feeling runs through your body.
/// Cast remp when poisoned: A warm feeling runs through your body, you feel better.
/// Cast remp, not poisoned: A strange feeling runs through your body.
#action >+uanti A warm feeling runs through your body.={spell_up antid}
#action >+qanti ^- antidote={spelltimer antid}
#action >+danti You feel a strange taste in your mouth.={spell_down antid}
#action >+ublind You have been blinded!={#print (" "+$ULINE+$RED+$BOLD+"You have been BLINDED!"+$NORM+$DARK+" (blindness "+$NORM+$RED+"UP"+$NORM+$DARK+")"+$NORM);#(@spelltimer_blind=timer);#var $blind=1}
#action >+qblind ^- blindness={spelltimer blind}
#action >+dblind You feel a cloak of blindness dissolve.={malus_down blind}
#action >+udiso A haze seems to cloud your eyes, blurring your vision, making it difficult for you to see anything clearly.={malus_up diso}
#action >+qdiso ^- disorientation={spelltimer diso}
#action >+ddiso You feel less disoriented.={malus_down diso}
#action >+ulethargy You feel a sudden loss of energy as the power that once mingled with your own vanishes.={malus_up lethargy}
#action >+qlethargy ^- lethargy={spelltimer lethargy}
#action >+dlethargy You feel your magic energy coming back to you.={malus_down lethargy}
#action >+utired You feel your muscles relax and your pulse slow as the strength that welled within you subsides.={malus_up tired}
#action >+qtired ^- tiredness={spelltimer tired}
#action >+dtired You feel your muscles regain some of their former energy.={malus_down tired}
#action >+uhagard You feel a sudden flash of dizziness causing you to pause before getting your directional bearings back.={malus_up hagard}
#action >+qhagard ^- hagardness={spelltimer hagard}
#action >+dhagard You feel steadier now.={malus_down hagard}
/// TODO: Scout ring malus
/// Avim tells you 'You suddenly feel dizzy and nauseated.' - poison
/// You feel aware of this place.
/// [somewhere] Your awareness decreases.
/// - watch room (somewhere)
#action >+watchroom_drops ^You feel aware of this place.={#print ("$0 "+$DARK+" (watch room "+$NORM+$SPELLDOWN_COL+"down"+$NORM+$DARK+")"+$NORM)}
#action >+watchroom_drops ^[&1] Your awareness decreases.={#print ("$0 "+$DARK+" (watch room "+$NORM+$SPELLDOWN_COL+"down"+$NORM+$DARK+")"+$NORM)}
#( "watches for magic keys and writes them down, this saves ALL KEYS SEEN, and gets messy fast" )
#alias keyclear=#var $mkeys=
#alias keyview=#print ($mkeys)
#action >+suck-keys &1 - &2 key: '$3'={#print;#($mkeys+="$1 - $3\012");#var $descport=$1;#var $lastport=$3}
#action >+suck-keys-loc You feel the magic aura of this place: key: '$1'={#print;#($mkeys+="${thisroom} - $1\012");#var $descport=${thisroom};#var $lastport=$1}
#alias key={#if ("$0"!="") {#var $descport=Hand Set ($2);#var $lastport=$1};#print ("Current key for '" + $descport + "' is '" + $lastport + "'" )}
#alias loc={cast 'locate' $0}
#alias locl={cast 'locate life' $0}
#alias locm={cast 'locate magic' $0}
#alias locme={cast 'locate magic' evil}
#alias locmg={cast 'locate magic' good}
#alias scry={cast 'scry' $0}
#alias tp={cast 'teleport' $1}
#alias tpc={cast carefully 'teleport' $1}
#alias tpt={cast thoroughly 'teleport' $1}
#alias port={#send ("cast 'portal' $1 "+$lkey_${2})}
#alias ba={cast 'armour' $0}
#alias bb={cast 'bless' $0}
#alias bpe={cast 'protection from evil' $0}
#alias bs={cast 'strength' $0}
#alias bsc={cast care 'strength' $0}
#alias bst={cast thoroughly 'strength' $1}
#alias bsl={cast 'sense life' $0}
#alias bx={cast 'sanctuary' $0}
#alias bxc={cast care 'sanctuary' $0}
#alias bxt={cast tho 'sanctuary' $0}
#alias bz={cast 'shield' $0}
#alias bh={cast 'shroud' $0}
#alias bhm={bh mine;bh mineb}
#alias bdm=#if ($bdmamulet=="") { cast 'detect magic' }; #else { #send ("use "+$bdmamulet) }
#alias bde={cast 'detect evil' $0}
#alias bdi={cast 'detect invisibility' $0}
#alias bnv={cast 'night vision' $0}
#alias bld={cast 'block door' $0}
#alias bldt={cast tho 'block door' $0}
#alias bob={cast 'breath of briskness'}
#alias bobme={grm;grf;bob;grm;grf}
#alias brd={cast 'break door' $0}
#alias brdc={cast care 'break door' $0}
#alias brdt={cast tho 'break door' $0}
#in renewfam (-1) {warning Familiar will despawn soon; #if (@afkcast) { st; cast tho 'call familiar'; rest } }
#action %-callfam A ([a-z, ]+ )?([a-z]+) suddenly appears.={#print;time;label $3 fam; gr $3; #in renewfam (8*60*1000); #action -callfam}
#action >+famil2 Your control on your familiar is renewed!={#print; time; ; #action -callfam; #in renewfam (8*60*1000)}
#action >+famil1 Your familiar goes back from whence it once came={#print ($MOBCOL+$ULINE+"$0"+$NORM+"."); time}
#alias cf={#action +callfam; cast 'call familiar'}
#alias charm={#if ("$2"!="") cast $1 'charm' $2; #else #send ("cast $1 'charm' "+$mtarget) }
#alias ch={charm norm $1}
#alias chc={charm carefully $1}
#alias cht={charm thoroughly $1}
#alias chq={charm quick $1}
#alias cap={sc; #in hpsdel (1000) { #var @pre_hps=(@hps) }; #ex ("$1"); sc; #in capdelay (4000) { #ex ("notify HPs changed by "+%(@hps-@pre_hps) ) } }
#alias cb={cast 'cure blindness' $1}
#alias cd={cast 'cure disease' $1}
#alias cl={cast 'cure light' $1}
#alias cs={cast 'cure serious' $1}
#alias cc={cast 'cure critic' $1}
#alias crp={cast 'remove poison' $0}
#alias crc={cast 'remove curse' $0}
#alias h={cast 'heal' $0}
# ( " Semi-experimental actions to indicate to group which of 1./2. etc has been blinded - buggy! " )
#var $tgbl=0
#alias Xtgblindon={$tgbl=1}
#alias Xtgblindoff={$tgbl=0}
#action >-blind1a &1 (BLINDING) seems to be blinded!={#print ("$1 seems to be "+$BOLD+$GREEN+"BLINDED!"+$NORM); #send ("emote indicates that->"+$blinding+"<- has been blinded"); stopblind } }
#action >+blind1b &1 seems to be blinded!={#print ("$1 seems to be "+$BOLD+$GREEN+"BLINDED!"+$NORM) }
#action >-blind3a ^Your victim is already blind.={#print ("Your victim is "+$BOLD+GREEN+"already BLIND."+$NORM); #send (emote indicates that ->"+$blinding+"<- has already been blinded"); stopblind }
#action >+blind3b ^Your victim is already blind.={#print ("Your victim is "+$BOLD+GREEN+"already BLIND."+$NORM) }
#action >-blind4 ^Nothing seems to happen.={#print ("$0 (blinding "+$blinding+" "+$RED+"FAILED!"+$NORM+")"); #action -blind4 }
#alias stopblind={label remove BLINDING; #action -blind4}
#alias tgblindon={#alias blind=tgblind $1 $2; #action +blind 1a; #action -blind 1b; #action +blind 3a; #action -blind 3b}
#alias tgblindoff={#alias blind=normblind $1 $2; #action -blind 1a; #action +blind 1b; #action -blind 3a; #action +blind 3b}
#alias tgblind={#if ("$2"!="") { label $2 BLINDING; #var $blinding=$2; cast $1 'blindness' BLINDING; }; #else { #send ("label "+$mtarget+" BLINDING"); #var $blinding=($mtarget); #send ( "cast $1 'blindness' BLINDING") }; #action +blind4 }
#alias normblind={#if ("$2"!="") { cast $1 'blindness' $2; }; #else { #send ( "cast $1 'blindness' "+$mtarget) } }
#alias blind=normblind $1 $2
#alias vbq=blind quick $1
#alias vbf=blind fast $1
#alias vb=blind norm $1
#alias vbc=blind care $1
#alias vbt=blind thoro $1
#alias bqt=cast quick 'blindness' *troll*
#alias bft=cast fast 'blindness' *troll*
#alias bqo=cast quick 'blindness' *orc*
#alias bfo=cast fast 'blindness' *orc*
/// Quick key to nuke in PK. Should rewrite depending on char
#alias Q=dispel fast $1
#alias vf={cast 'fear'}
#alias vff={cast fast 'fear'}
#alias vfq={cast quick 'fear'}
#alias vfc={cast care 'fear'}
#alias dispel={#if ("$2"!="") cast $1 'dispel evil' $2; #else #send ("cast $1 'dispel evil' "+$mtarget) }
#alias vd=dispel norm $1
#alias vdf=dispel fast $1
#alias vdq=dispel quick $1
#alias vq=dispel fast $1
#alias harm={#if ("$2"!="") cast $1 'harm' $2; #else #send ("cast $1 'harm' "+$mtarget) }
#alias vh=harm norm $1
#alias vhf=harm fast $1
#alias ve={cast 'earthquake' $1}
#alias veq={cast quick 'earthquake' $1}
#alias vet={cast thoroughly 'earthquake' $1}
#alias vr={cast 'burning hands' $1}
#alias wor={cast 'word of recall'}
#alias cw={cast 'control weather' $0}
#alias cwt={cast tho 'control weather' $0}
#var $bless2=("")
#alias bb2=#var $bless2=$1
#var $abless=1; #var $astr=1; #var $apfe=1; #var $asensel=1; #var $adetmagic=1; #var $aarmour=1; #var $ashield=1; #var $adetevil=1; #var $adetinvis=0; #var $asanc=0; #var $ashroud=0
#alias as={#if ($sanc=="0" && $asanc=="1") bx; #if ($bless=="0" && $abless=="1") { bb; #if ($bless2!="") #exe ("bb "+$bless2) };#if ($str=="0" && $astr=="1") bst; #if ($pfe=="0" && $apfe=="1") bpe; #if ($sensel=="0" && $asensel=="1") bsl; #if ($detmagic=="0" && $adetmagic=="1") bdm; #if ($armour=="0" && $aarmour=="1") ba; #if ($shroud=="0" && $ashroud=="1") bh; #if ($shield=="0" && $ashield=="1") bz; #if ($detevil=="0" && $adetevil=="1") bde; #if ($detinvis=="0" && $adetinvis=="1") bdi}
#alias asall={#var $adetevil=1; #var $adetmagic=1; #var $asanc=1; #var $ashroud=1; message Auto-cast now in all mode (all spells enabled, including sanc & shroud)}
#alias asgen={#var $adetevil=1; #var $adetmagic=1; #var $asanc=0; #var $ashroud=0; message Auto-cast now in general solo/leader mode (most spells enabled)}
#alias asmin={#var $adetevil=0; #var $adetmagic=0; #var $asanc=0; #var $ashroud=0; message Auto-cast now in minimum mode (non-essentials disabled, eg. detect evil/magic)}
#action >+aura1 Traces of white tones form the aura of this place.=#print ($DARK+"Traces of "+$CYAN+"white tones"+$NORM+$DARK+" form the aura of this place."+$NORM)
#action >+aura2 Traces of &1 white tones form the aura of this place.=#print ($DARK+"Traces of "+$CYAN+"$1 white tones"+$NORM+$DARK+" form the aura of this place."+$NORM)
#action >+aura3 Traces of red tones form the aura of this place.=#print ($BKYELLOW+"Traces of "+$BOLD+$RED+"red tones"+$NORM+$BKYELLOW+" form the aura of this place."+$NORM)
#action >+aura4 Traces of &1 red tones form the aura of this place.=#print ($BKYELLOW+"Traces of "+$BOLD+$RED+"$1 red tones"+$NORM+$BKYELLOW+" form the aura of this place."+$NORM)
#action >+translatespell1 &1 utters the word '$2'={#if ($magical_${2}=="") #print;#else #print (""+\$1+" "+$BOLD+$MAGENTA+"utters the word '"+$magical_${2}+"'"+$NORM)}
#action >+translatespell2 &1 utters the words '$2 $3'={#if ($magical_${2}_${3}=="") #print; #else #print (""+\$1+" "+$BOLD+$MAGENTA+"utters the words '"+$magical_${2}_${3}+"'"+$NORM)}
#action >+translatespell3 &1 utters the words '$2 $3 $4'={#if ($magical_${2}_${3}_${4}=="") #print; #else #print (""+\$1+" "+$BOLD+$MAGENTA+"utters the words '"+$magical_${2}_${3}_${4}+"'"+$NORM)}
#($magical_abrawajf = "armour")
#($magical_bfzahp_ay_bfugtizgg = "breath of briskness")
#($magical_bfzat_eaaf = "break door")
#($magical_braqt_bfzahp = "black breath")
#($magical_braqt_eaaf = "block door")
#($magical_canduswazz_judifgz = "remove curse")
#($magical_canduswazz_saugai = "remove poison")
#($magical_diesilla_barh = "LIGHTNING BOLT")
#($magical_eabratizgg = "darkness")
#($magical_eugszr_waouq = "dispel magic")
#($magical_eugszr_zzur = "DISPEL EVIL")
#($magical_euzuiahuai = "divination")
#($magical_fido = "bless")
#($magical_gaiqhjabral = "sanctuary")
#($magical_ghafz = "store")
#($magical_ghcandusiohp = "strength")
#($magical_gjwwai = "summon")
#($magical_gpaqtuio_ofags = "SHOCKING GRASP")
#($magical_gpfaje = "shroud")
#($magical_gpuzre = "shield")
#($magical_gqfl = "scry")
#($magical_gruugz_oculoae = "raise dead")
#($magical_grzzs = "sleep")
#($magical_gunsogz_ruyz = "sense life")
#($magical_gurunsoqz = "silence")
#($magical_hgruigyzf = "transfer")
#($magical_hiqahz = "locate")
#($magical_hiqahz_ruyz = "locate life")
#($magical_hiqahz_waouq = "locate magic")
#($magical_hzrzsafh = "teleport")
#($magical_iuoph_zuguai = "night vision")
#($magical_judicandus_dies = "cure light")
#($magical_judicandus_gzfuajg = "cure serious")
#($magical_judicandus_noselacri = "cure blindness")
#($magical_judicandus_qfuhuq = "cure critic")
#($magical_judifgz = "curse")
#($magical_mosailla_paieg = "BURNING HANDS")
#($magical_noselacri = "blindness")
#($magical_oculoinfra_saugai = "detect poison")
#($magical_oculoinfra_uizuguburuhl = "detect invisibility")
#($magical_oculoinfra_waouq = "detect magic")
#($magical_oculoinfra_zzur = "detect evil")
#($magical_pabraw = "HARM")
#($magical_pare = "hold")
#($magical_pzar = "heal")
#($magical_qahijf_gsfal = "COLOUR SPRAY")
#($magical_qaihfar_xzahpzf = "control weather")
#($magical_qarr_diesilla = "CALL LIGHTNING")
#($magical_qfzahz_dies = "create light")
#($magical_qfzahz_xahzf = "create water")
#($magical_qfzahz_yaae = "create food")
#($magical_qpabraw = "charm")
#($magical_qpurr_hajqp = "CHILL TOUCH")
#($magical_safhar = "\033[1m\033[37m!PORTAL!\033[0m")
#($magical_saugai = "poison")
#($magical_sfahzqhuai_yfaw_zzur = "protection from evil")
#($magical_unsoqpaih = "enchant")
#($magical_unsozfol_efaui = "energy drain")
#($magical_uoculoihuyl = "identify")
#($magical_waouq_bragh = "magic blast")
#($magical_waouq_wuggurz = "MAGIC MISSILE")
#($magical_xafe_ay_candusqarr = "word of recall")
#($magical_xahqp_faaw = "watch room")
#($magical_yufzbarr = "FIREBALL")
#($magical_yuie_hpz_sahp = "find the path")
#($magical_yzabra = "fear")
#($magical_zabrahpdjatz = "EARTHQUAKE")
/// Scrolls etc
#var $SCROLLCOL=($MAGENTA)
#($scroll_azure = "Heal l10")
#($scroll_black = "Heal, Strength l20")
#($scroll_blue = "Heal l20")
#($scroll_purple = "Sanctuary l20")
#($scroll_vellum = "BOB l25")
#action %+scroll1 .*[a-z]+ (azure|black|blue|purple|vellum) scroll(s)?.*=#print ("$1 "+$DARK+"("+$SCROLLCOL+$scroll_$2+$NORM+$DARK+")"+$NORM)
#action >+fragparch &1fragile parchment&2=#print ("$0 "+$DARK+"("+$SCROLLCOL+"Lightning resistance"+$NORM +$DARK+")"+$NORM)
#action >+rockfrag &1twisted rock fragment&2=#print ("$0 "+$DARK+"("+$SCROLLCOL+"Break door"+$NORM +$DARK+")"+$NORM)
#action >+blackcandle &1black candle&2=#print ("$0 "+$DARK+"("+$SCROLLCOL+"AOE Sleep l14"+$NORM+$DARK+")"+$NORM)
#action >+greencup &1softly glowing green cup&2=#print ("$0 "+$DARK+"("+$SCROLLCOL+"Max mana & regen boost"+$NORM+$DARK+")"+$NORM)
#action >+smpouch a small pouch=#print ("$0 "+$DARK+"("+$SCROLLCOL+"AOE Paralyze"+$NORM+$DARK+")"+$NORM)
/// runes in deep ebony ink. A large glowing rune "N" is written on the top
/// runes in ebony ink. A large glowing rune "N" is written on the top of the
/// runes in ivory ink. A large glowing rune "E" is written on the top of the
#($scroll_ivory_E = "Heal + 2 others l20")
#($scroll_ivory_M = "Blindness, protection from evil, strength l20")
#($scroll_ivory_N = "Call lightning, cure light, and cure blindness l20")
#($scroll_ivory_O = "Breath of briskness, detect poison, and poison l20")
#($scroll_ivory_Q = "Silence, create water, and shroud l20")
#($scroll_ivory_Y = "Sanctuary, divination, and create food l20")
/// +Clear ivory scroll 25 Magic, Level 20 sanctuary, detect poison, and protection from evil, Nosell
#($scroll_ebony_E = "Heal, burning hands, and earthquake l20")
#($scroll_ebony_I = "Magic blast, chill touch, and bless l20")
#($scroll_ebony_N = "Call lightning, cure serious, and curse l20")
#($scroll_ebony_M = "Blindness, detect evil, and create water l20")
#($scroll_ebony_L = "Magic blast, detect poison, and sense life l20")
#($scroll_ebony_Q = "Silence, detect magic, create water l20")
#($scroll_ebony_Y = "Sanctuary, chill touch, and earthquake l20")
#($scroll_deepebony_I = "Magic blast, detect evil, and poison l20")
#($scroll_deepebony_M = "Blindness, shroud, and poison l20")
#($scroll_deepebony_N = "Call lightning, curse, and earthquake l20")
#($scroll_deepebony_Q = "Silence, night vision, and curse l20")
#($scroll_clearivory_E = "Heal + 2 others l20")
/// It has level twenty spells of heal, burning hands, and earthquake.
#action %+ivebscroll ^runes in (deep|clear)?( )?(ebony|ivory) ink\. A large glowing rune \"([A-Z])\" is written={#print; #print (" ("+$SCROLLCOL+$scroll_$2$4_$5+$NORM+")")}
#alias lscrolls=#for (\@0=1; \@0<=9; \@0++) { #ex ("look \@0.scroll") }
#print ($GREEN+" ==== magic.txt loaded ==== "+$NORM)