-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsvo (enchanter).xml
1317 lines (1236 loc) · 40.7 KB
/
svo (enchanter).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
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
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE MudletPackage>
<MudletPackage version="1.0">
<TriggerPackage/>
<TimerPackage/>
<AliasPackage>
<AliasGroup isActive="yes" isFolder="yes">
<name>svo Enchanter</name>
<script>-------------------------------------------------
-- Originally made by Jenny --
-- Updated/Corrected by Jukilian --
-------------------------------------------------
</script>
<command></command>
<packageName></packageName>
<regex></regex>
<Alias isActive="yes" isFolder="no">
<name>enchant</name>
<script>svo.parse_enchant_arguments(matches[2])</script>
<command></command>
<packageName></packageName>
<regex>^enchant (.+)$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>repeat the last order</name>
<script>svo.reenchant()</script>
<command></command>
<packageName></packageName>
<regex>^reenchant$</regex>
</Alias>
</AliasGroup>
</AliasPackage>
<ActionPackage/>
<ScriptPackage>
<ScriptGroup isActive="yes" isFolder="yes">
<name>svo Enchanter</name>
<packageName></packageName>
<script>-------------------------------------------------
-- Originally made by Jenny --
-- Updated/Corrected by Jukilian --
-- Rewritten by Keneanung --
-------------------------------------------------
</script>
<eventHandlerList/>
<Script isActive="yes" isFolder="no">
<name>script</name>
<packageName></packageName>
<script>local ourobori_data = {
[18864] = { "ouroboros60684", "ouroboros203598" },
[21191] = { "ouroboros34462", "ouroboros49014" },
[21192] = { "ouroboros191596", "ouroboros191631" },
[47270] = { "ouroboros36673", "ouroboros36838" },
[47271] = { "ouroboros23502", "ouroboros57255" },
[47272] = { "ouroboros1263", "ouroboros30460" },
[47301] = { "ouroboros205397", "ouroros219350" },
[11016] = { "ouroboros71982", "ouroboros94567" },
[11014] = { "ouroboros54000", "ouroboros27606" },
[11018] = { "ouroboros48748", "ouroboros69603" },
[11017] = { "ouroboros105971", "ouroboros106382" },
[12518] = { "ouroboros77138", "ouroboros159812" },
[42336] = { "ouroboros133228", "ouroboros204600" }
}
-- Keep track if we are already ennchating
local enchanting = false
-- Queue of items we want to create. The item we are currently making is not in here.
local enchantmentQueue = {}
-- Queue of actions we need to do for the current enchantment
local enchantmentActions = {}
-- Flag for checking the IDs of the ourobori in the current room
local checking_ourobori = false
-- Keeps track if we need to put up selfishness again after enchanting
local hadSelfishness = false
-- Keeps track if we need to put up riding again after enchanting
local hadRiding = false
-- The string command of the last order in case we want to repeat it
local lastOrder = ""
-- The ouroboros we work with
local ouroboros1, ouroboros2
-- Hard coded list of known enchantments. Structure of each item:
--[[
fullname: Name that is used in the begin command
type: Type of Enchantment. Possible values: "creation" and "enchantment"
nameToGet: (creation only) name that will be used when getting the item from the ouroboros
ingredients: Name - value table. Name is the ingredient that goes into the ouroboros, value is the number for one item
otherItems: Other items needed, that go not into the ouroboros. Currently the number of kola nuts and if a coin is needed
actions: Ordered list of actions to create the item
--]]
local enchantments = {
purity = {
fullname = "necklace of purity",
type = "creation",
nameToGet = "necklace",
ingredients = {
ice = 4,
goldbar = 1,
dust = 1,
},
otherItems = {},
actions = {
"bang drum",
"ring bell",
"burn the polygon",
"burn the polygon",
"burn the polygon",
"wave arms",
"play horn",
"play horn",
"play horn",
"play horn",
"burn incense",
"light candle",
"square the circle",
"square the circle",
"square the circle"
}
},
pestilence = {
fullname = "ring of pestilence",
type = "creation",
nameToGet = "ring",
ingredients = {
goldbar = 1,
silverbar = 2,
staghorn = 1,
},
otherItems = {
gold = true
},
actions = {
"strum lute",
"flipcoin",
"bang drum",
"wave arms",
"square the circle",
"wave feather",
"burn incense",
"point sword",
"burn the polygon",
"burn the polygon",
"burn the polygon",
"play horn",
"play horn",
"play horn",
"ring bell",
"ring bell",
"ring bell",
"bang drum",
"square the circle",
"strum lute"
}
},
negation = {
fullname = "gem of negation",
type = "creation",
nameToGet = "ring",
ingredients = {
goldbar = 1,
},
otherItems = {
kola = 1
},
actions = {
"ring bell",
"ring bell",
"ring bell",
"light candle",
"crush kola",
"burn the polygon",
"point sword",
"chant zool ekilthia requi oben"
}
},
dreamcatcher = {
fullname = "dreamcatcher",
type = "creation",
nameToGet = "dreamcatcher",
ingredients = {
goldbar = 2,
silverbar = 2,
staghorn = 1,
},
otherItems = {},
actions = {
"wave arms",
"burn incense",
"square the circle",
"light candle",
"strum lute",
"strum lute",
"strum lute",
"ring bell",
"ring bell",
"ring bell",
"point sword",
"point sword",
"strum lute",
"strum lute",
"strum lute"
}
},
bauble = {
fullname = "bauble",
type = "creation",
nameToGet = "bauble",
ingredients = {
dust = 1,
},
otherItems = {
kola = 1
},
actions = {
"crush kola",
"burn the polygon",
"clap hands",
"square the circle",
"chant disei stalla rapwah cosoth tu"
}
},
fresist = {
fullname = "fire resistance",
type = "enchantment",
ingredients = {
ice = 1,
silverbar = 2,
},
otherItems = {},
actions = {
"ring bell",
"ring bell",
"light candle",
"light candle",
"play horn",
"play horn",
"light candle",
"light candle",
"bang drum",
"bang drum",
"clap hands",
"clap hands",
"strum lute",
"strum lute",
"clap hands",
"clap hands",
"bang drum",
"bang drum",
"light candle",
"light candle"
}
},
concealment = {
fullname = "orb of concealment",
type = "creation",
nameToGet = "concealment",
ingredients = {
goldbar = 1,
silverbar = 5,
},
otherItems = {
gold = true
},
actions = {
"wave feather",
"wave arms",
"flipcoin",
"play horn",
"point sword",
"clap hands",
"spin around thrice",
"chant aisyalam",
"spin around thrice",
"clap hands",
"point sword",
"play horn",
"flipcoin",
"wave arms",
"wave feather"
}
},
icewall = {
fullname = "icewall",
type = "enchantment",
ingredients = {
ice = 1,
dust = 1,
},
otherItems = {},
actions = {
"chant incula cela ecta",
"play horn",
"play horn",
"play horn",
"bang drum",
"bang drum",
"square the circle",
"point sword",
"spin around thrice",
"burn the polygon"
}
},
comprehension = {
fullname = "necklace of comprehension",
type = "creation",
nameToGet = "necklace",
ingredients = {
ice = 2,
silverbar = 4,
staghorn = 3,
goldbar = 3,
},
otherItems = {
kola = 1,
},
actions = {
"play horn",
"play horn",
"play horn",
"burn incense",
"wave feather",
"ring bell",
"roll dice",
"roll dice",
"spin around thrice",
"burn incense",
"crush kola"
}
},
whirlwind = {
fullname = "whirlwind of vastar",
type = "creation",
nameToGet = "whirlwind",
ingredients = {
silverbar = 1,
staghorn = 1,
dust = 1,
},
otherItems = {},
actions = {
"spin around thrice",
"spin around thrice",
"spin around thrice",
"spin around thrice",
"wave feather",
"burn incense",
"spin around thrice",
"spin around thrice",
"spin around thrice",
"spin around thrice"
}
},
magic = {
fullname = "magical resistance",
type = "enchantment",
ingredients = {
silverbar = 2,
staghorn = 5,
goldbar = 1,
},
otherItems = {
gold = true
},
actions = {
"burn the polygon",
"burn the polygon",
"strum lute",
"strum lute",
"wave feather",
"wave feather",
"strum lute",
"strum lute",
"burn incense",
"burn incense",
"flipcoin",
"flipcoin",
"square the circle",
"square the circle",
"flipcoin",
"flipcoin",
"burn incense",
"burn incense",
"strum lute",
"strum lute"
}
},
brooch = {
fullname = "brooch of thoth",
type = "creation",
nameToGet = "brooch",
ingredients = {
silverbar = 2,
staghorn = 1,
dust = 2,
ice = 1,
},
otherItems = {},
actions = {
"chant mortis troy tenkla",
"chant mortis troy tenklu",
"chant mortis troy tenkli",
"clap hands",
"clap hands",
"clap hands"
}
},
firewall = {
fullname = "firewall",
type = "enchantment",
ingredients = {
silverbar = 3,
staghorn = 3,
dust = 1,
},
otherItems = {},
actions = {
"chant firth ilith rhedo een",
"burn the polygon",
"spin around thrice",
"point sword",
"square the circle",
"bang drum",
"bang drum",
"play horn",
"play horn",
"play horn"
}
},
electric = {
fullname = "electrical resistance",
type = "enchantment",
ingredients = {
goldbar = 5,
},
otherItems = {
gold = true,
kola = 2
},
actions = {
"light candle",
"light candle",
"burn incense",
"burn incense",
"flipcoin",
"flipcoin",
"burn incense",
"burn incense",
"burn the polygon",
"burn the polygon",
"play horn",
"play horn",
"crush kola",
"crush kola",
"play horn",
"play horn",
"burn the polygon",
"burn the polygon",
"burn the polygon",
"burn the polygon"
}
},
cold = {
fullname = "cold resistance",
type = "enchantment",
ingredients = {
goldbar = 2,
horn = 2,
dust = 2,
},
otherItems = {
gold = true
},
actions = {
"bang drum",
"bang drum",
"burn the polygon",
"burn the polygon",
"flipcoin",
"flipcoin",
"burn the polygon",
"burn the polygon",
"light candle",
"light candle",
"point sword",
"point sword",
"roll dice",
"roll dice",
"point sword",
"point sword",
"light candle",
"light candle",
"burn the polygon",
"burn the polygon"
}
},
orb = {
fullname = "orb sigil",
type = "creation",
nameToGet = "orbsigil",
ingredients = {
dust = 1,
},
otherItems = {},
actions = {
"chant solip preena het epi re enla",
"chant solip preena het epi re enla",
"chant solip preena het epi re enla",
"ring bell"
}
},
cube = {
fullname = "cube sigil",
type = "creation",
nameToGet = "cube",
ingredients = {
silverbar = 2,
},
otherItems = {},
actions = {
"chant dara acti me prishna eni not",
"chant dara acti me prishna eni not",
"chant dara acti me prishna eni not",
"ring bell"
}
},
mushroom = {
fullname = "mushroom sigil",
type = "creation",
nameToGet = "mushroom",
ingredients = {
ice = 1,
},
otherItems = {},
actions = {
"chant mil usra shal hract reed oom oon mez",
"chant mil usra shal hract reed oom oon mez",
"chant mil usra shal hract reed oom oon mez",
"ring bell"
}
},
monolith = {
fullname = "monolith sigil",
type = "creation",
nameToGet = "monolith",
ingredients = {
silverbar = 1,
goldbar = 1
},
otherItems = {},
actions = {
"chant me ol nok oloth lilo ib te het",
"chant me ol nok oloth lilo ib te het",
"chant me ol nok oloth lilo ib te het",
"ring bell"
}
},
knife = {
fullname = "knife sigil",
type = "creation",
nameToGet = "knife",
ingredients = {
silverbar = 1,
},
otherItems = {},
actions = {
"chant keef nitash idca feef enla",
"chant keef nitash idca feef enla",
"chant keef nitash idca feef enla",
"ring bell"
}
},
key = {
fullname = "key sigil",
type = "creation",
nameToGet = "key",
ingredients = {
goldbar = 1
},
otherItems = {},
actions = {
"chant krolop escit yall",
"chant krolop escit yall",
"chant krolop escit yall",
"ring bell"
}
},
flame = {
fullname = "flame sigil",
type = "creation",
nameToGet = "flame",
ingredients = {
silverbar = 1,
},
otherItems = {},
actions = {
"chant flet lhar abe minlo eec",
"chant flet lhar abe minlo eec",
"chant flet lhar abe minlo eec",
"ring bell"
}
},
fist = {
fullname = "fist sigil",
type = "creation",
nameToGet = "fist",
ingredients = {
silverbar = 1,
staghorn = 2,
},
otherItems = {},
actions = {
"chant fartak ishla spooz tran",
"chant fartak ishla spooz tran",
"chant fartak ishla spooz tran",
"ring bell"
}
},
hearing = {
fullname = "hearing",
type = "enchantment",
ingredients = {
silverbar = 3,
horn = 4,
},
otherItems = {
kola = 1
},
actions = {
"bang drum",
"clap hands",
"play horn",
"strum lute",
"clap hands",
"play horn",
"bang drum",
"strum lute",
"strum lute",
"play horn",
"clap hands",
"bang drum",
"bang drum",
"crush kola",
"ring bell"
}
},
eye = {
fullname = "eye sigil",
type = "creation",
nameToGet = "eye",
ingredients = {
obsidian = 1,
},
otherItems = {},
actions = {
"square the circle",
"ring bell",
}
},
worrystone = {
fullname = "worrystone",
type = "creation",
nameToGet = "worrystone",
ingredients = {
ice = 1,
goldbar = 1,
silverbar = 1,
horn = 1,
dust = 1,
},
otherItems = {
gold = true
},
actions = {
"roll dice",
"roll dice",
"roll dice",
"roll dice",
"roll dice",
"flipcoin",
"flipcoin",
"flipcoin",
"flipcoin",
"flipcoin",
"spin around thrice",
"wave feather",
"square the circle"
}
},
meteor = {
fullname = "meteor",
type = "creation",
nameToGet = "meteor",
ingredients = {
dust = 1,
arrow = 1,
},
otherItems = {},
actions = {
"wave arms",
"wave feather",
"chant minlo ecta tu ecta oloth rhedo",
"bang drum"
}
},
waterwalking = {
fullname = "walk on water",
type = "enchantment",
ingredients = {
silverbar = 1,
goldbar = 2,
ice = 1,
},
otherItems = {
kola = 1
},
actions = {
"square the circle",
"wave arms",
"wave arms",
"wave arms",
"point sword",
"point sword",
"strum lute",
"bang drum",
"bang drum",
"bang drum",
"bang drum",
"roll dice",
"crush kola"
}
},
scabbard = {
fullname = "stasis",
type = "enchantment",
ingredients = {
silverbar = 2,
goldbar = 3,
ice = 3,
dust = 3,
horn = 3,
},
otherItems = {
kola = 1
},
actions = {
"wave feather",
"wave feather",
"roll dice",
"roll dice",
"roll dice",
"wave arms",
"wave arms",
"crush kola",
"chant drabbacs statorium",
"strum lute",
"wave feather",
"wave feather",
"square the circle",
"square the circle",
"square the circle",
"wave feather"
}
},
stasis = {
fullname = "bag of stasis",
type = "creation",
nameToGet = "bag",
ingredients = {
ice = 3,
goldbar = 4,
silverbar = 1,
dust = 2,
horn = 3,
},
otherItems = {
kola = 2
},
actions = {
"wave feather",
"wave feather",
"bang drum",
"spin around thrice",
"light candle",
"ring bell",
"chant stasis statorium",
"spin around thrice",
"clap hands",
"clap hands",
"square the circle",
"square the circle",
"square the circle",
"wave feather",
"roll dice",
"roll dice",
"roll dice",
"roll dice",
"roll dice",
"roll dice",
"crush kola",
"crush kola"
}
},
firelash = {
fullname = "firelash",
type = "enchantment",
ingredients = {
silverbar = 1,
goldbar = 1,
dust = 2,
},
otherItems = {},
actions = {
"bang drum",
"clap hands",
"burn incense",
"point sword",
"light candle",
"chant fo icti re eschle lok ast suh hrat",
"ring bell",
"spin around thrice",
"burn the polygon",
"roll dice",
"roll dice",
"roll dice"
}
},
star = {
fullname = "star sigil",
type = "creation",
nameToGet = "star",
ingredients = {
silverbar = 1,
goldbar = 2,
},
otherItems = {},
actions = {
"strum lute",
"ring bell"
}
},
}
-- Starts the check for oroboros
local function getOIDs()
checking_ourobori = true
svo.echof( "Don't know the ourobori IDs for this room, so going to check..." )
sendGMCP( "Char.Items.Room" )
send("\n")
end
-- Repeats the last order
local function reenchant()
enchant(enchanting[1], enchanting[2])
end
local function addToActionQueue(command, balanceful)
enchantmentActions[#enchantmentActions + 1] = {
command = command,
balanceful = (balanceful or false) }
end
-- Queues the actions needed for the next item in the queue
local function enchantNextItem()
local queueItem = enchantmentQueue[1]
-- No first item anymore? We are done!
if not queueItem then
return false
end
-- remove the item from queue
table.remove(enchantmentQueue, 1)
-- get the descriptive object for the enchantment
local what = enchantments[queueItem.what]
-- determine, how many items we want to create
local amount
if what.type == "creation" then
amount = tonumber(queueItem.arg) or 1
else
amount = 1
end
-- retrieve ingredients and put them into the ouroboros
for name, per in pairs(what.ingredients) do
local totalAmount = per * amount
if name == "arrow" then
addToActionQueue("outq " .. totalAmount .. " " .. name, true)
-- lets handle arrows differently. Since 'arrow' also applies to meteors, we will need special encoding
if totalAmount == 1 then
addToActionQueue("put @an arrow@ in " .. ouroboros1, false)
else
addToActionQueue(string.format("put group @a group of %d arrows@ in %s", totalAmount, ouroboros1), false)
end
else
addToActionQueue("outr " .. totalAmount .. " " .. name, false)
addToActionQueue("put " .. (totalAmount > 1 and "group " or "") .. name .. " in " .. ouroboros1, false)
end
end
-- retrieve other items needed
local kola = what.otherItems.kola
if kola then
addToActionQueue("outr " .. kola .. " kola", false)
end
local gold = what.otherItems.gold
if gold then
svo.conf.enchantgetgold:gsub("([^$]+)", addToActionQueue)
end
-- start enchantment
if what.type == "enchantment" then
addToActionQueue("put " .. queueItem.arg .. " in " .. ouroboros2, false)
addToActionQueue("begin enchantment of " .. queueItem.arg .. " with " .. what.fullname, false)
else
addToActionQueue("begin creation of " .. amount .. " " .. what.fullname, false)
end
--queue actions
for _, action in ipairs(what.actions) do
addToActionQueue(action, true)
end
-- end the ritual
addToActionQueue("end ritual", false)
if what.type == "creation" then
addToActionQueue("get " .. (amount > 1 and (amount .. " ") or "") .. what.nameToGet .. " from " ..ouroboros2, amount > 1)
else
addToActionQueue("get " .. queueItem.arg .. " from " .. ouroboros2, false)
end
if gold then
svo.conf.enchantputgold:gsub("([^$]+)", addToActionQueue)
end
return true
end
-- Full order done. Clean up and tell the user.
local function endEnchanting()
enchanting = false
svo.removebalanceful("enchantment step")
svo.defs.keepup("selfishness", hadSelfishness, svo.defs.mode, false)
svo.defs.keepup("riding", hadRiding, svo.defs.mode, false)
svo.echof("Enchantment order done!")
return hadSelfishness and hadRiding
end
-- Run the next step(s) in queue
local function enchantmentStep()
local step
-- run all steps that don't need balance at once. Needs a little less time, less spam and doesn't break svo.addbalanceful.
repeat
-- enchantmentActions empty? Try to fill it from the queue
-- if there's nothing, we're done.
if #enchantmentActions == 0 and not enchantNextItem() then
return endEnchanting()
end
step = enchantmentActions[1]
table.remove(enchantmentActions, 1)
-- replace special stuff for meteors enchantment
local command = step.command:gsub("@(.+)@", function(what)
for _, item in ipairs(svo.me.inventory) do
if what == item.name then
return item.id
end
end
end)
svo.sendc(command)