-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.json
1133 lines (1133 loc) · 36.9 KB
/
settings.json
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
{
"Name": "settings.json",
"General": {
"AlwaysOnTop": true,
"LightLevel": 0,
"ActionDelay": true,
"ActionDelayMS": 500,
"Debug": false,
"SysTray": false,
"Filters": [
{
"Name": "ClassicAssist.Data.Filters.WeatherFilter",
"Enabled": true
},
{
"Name": "ClassicAssist.Data.Filters.SeasonFilter",
"Enabled": false
},
{
"Name": "ClassicAssist.Data.Filters.LightLevelFilter",
"Enabled": true
},
{
"Name": "ClassicAssist.Data.Filters.RepeatedMessagesFilter",
"Enabled": false,
"Options": {
"SendToJournal": false,
"MessageLimit": 5,
"TimeLimit": 5,
"BlockedTime": 5
}
},
{
"Name": "ClassicAssist.Data.Filters.ClilocFilter",
"Enabled": false,
"Options": {
"Filters": []
}
},
{
"Name": "ClassicAssist.Data.Filters.SoundFilter",
"Enabled": false,
"Options": {
"Items": []
}
}
]
},
"Options": {
"UseOnce": {
"Persist": false
},
"UseDeathScreenWhilstHidden": false,
"CommandPrefix": 61,
"RangeCheckLastTarget": false,
"RangeCheckLastTargetAmount": 11,
"UseExperimentalFizzleDetection": false,
"UseObjectQueue": false,
"UseObjectQueueAmount": 5,
"QueueLastTarget": false,
"MaxTargetQueueLength": 1,
"SmartTargetOption": "None",
"LimitMouseWheelTrigger": true,
"LimitMouseWheelTriggerMS": 200,
"AutoAcceptPartyInvite": false,
"AutoAcceptPartyOnlyFromFriends": false,
"PreventTargetingInnocentsInGuardzone": false,
"PreventAttackingInnocentsInGuardzone": false,
"LastTargetMessage": "[Last Target]",
"FriendTargetMessage": "[Friend]",
"EnemyTargetMessage": "[Enemy]",
"DefaultMacroQuietMode": true,
"GetFriendEnemyUsesIgnoreList": false,
"AbilitiesGump": true,
"AbilitiesGumpX": 47,
"AbilitiesGumpY": 778,
"SetUOTitle": true,
"ShowProfileNameWindowTitle": false,
"SortMacrosAlphabetical": true,
"ShowResurrectionWaypoints": true,
"RehueFriends": false,
"RehueFriendsHue": 35,
"CheckHandsPotions": false,
"MacrosGump": true,
"MacrosGumpX": 1727,
"MacrosGumpY": 778,
"ChatWindowWidth": 650.0,
"ChatWindowHeight": 350.0,
"EntityCollectionViewerOptions": {
"AlwaysOnTop": true,
"ShowChildItems": false
},
"ExpireTargetsMS": -1
},
"Hotkeys": {
"Commands": [],
"Spells": [],
"Masteries": []
},
"Macros": {
"LeftColumnWidth": 200.0,
"Groups": [
{
"Name": "Combat"
},
{
"Name": "Crafting"
},
{
"Name": "Skill Training"
}
],
"Macros": [
{
"Name": "All Attack",
"Loop": false,
"DoNotAutoInterrupt": false,
"Macro": "Msg(\"All Attack\")\r\nWaitForTarget(1000)\r\nTarget(\"enemy\")",
"PassToUO": true,
"Keys": {
"Keys": 0,
"SDLModifier": 0,
"Mouse": 7
},
"IsBackground": false,
"IsAutostart": false,
"Disableable": true,
"Group": "Combat",
"Aliases": []
},
{
"Name": "AutoBandage",
"Loop": true,
"DoNotAutoInterrupt": false,
"Macro": "if DiffHitsPercent(\"self\") > 25 or Poisoned(\"self\"):\r\n\tBandageSelf()\r\n\tPause(6000)\r\nelse:\r\n\tPause(2000)",
"PassToUO": true,
"Keys": {
"Keys": 0,
"SDLModifier": 0,
"Mouse": 7
},
"IsBackground": true,
"IsAutostart": false,
"Disableable": true,
"Group": "Combat",
"Aliases": []
},
{
"Name": "Blacksmith bullk order",
"Loop": false,
"DoNotAutoInterrupt": false,
"Macro": "from Assistant import Engine\r\nimport common\r\nimport blacksmith\r\nimport bulkOrder\r\nimport items\r\n\r\n\r\ncommon.checkOrMakeAlias(\"salvage bag\")\r\ncommon.checkOrMakeAlias(\"complete bag\")\r\n# backpack is a default alias\r\nbackpackId = GetAlias(\"backpack\")\r\n\r\n# instatiate objects\r\nbulkOrderGumpId = 0x5afbd742\r\nbulkOrderDict = {\"combine\": 2}\r\ncraft = BlacksmithCrafting()\r\nbulkOrderNav = GumpNavigation(bulkOrderGumpId, bulkOrderDict)\r\n\r\n# define helper methods\r\ndef getItemToCreate():\r\n\treturn bulkOrderNav.getElementTextByXY(75, 96)\r\n\t\r\ndef getAmountToMake():\r\n\tresult = bulkOrderNav.getElementTextByXY(275, 48)\r\n\treturn int(result)\r\n\r\ndef getAmountCompleted():\r\n\tresult = bulkOrderNav.getElementTextByXY(275, 96)\r\n\treturn int(result)\r\n\r\ndef getAmountToFill():\r\n\treturn getAmountToMake() - getAmountCompleted()\r\n\r\ndef fillBod(itemId):\r\n\tbulkOrderNav.navigateGump(\"combine\")\r\n\tWaitForTarget(5000)\r\n\tTarget(itemId)\r\n\r\ndef checkItemsAndFill(itemsInBag):\r\n\tfor currentItem in itemsInBag:\r\n\t\tif requiresExceptional:\r\n\t\t\tif Property(currentItem, \"exceptional\"):\r\n\t\t\t\tfillBod(currentItem)\r\n\t\t\telse:\r\n\t\t\t\tMoveItem(currentItem, \"salvage bag\")\r\n\t\telse:\r\n\t\t\tfillBod(currentItem)\r\n\r\n# orchestrate \r\nUseType(0x2258)\r\nWaitForGump(bulkOrderGumpId, 5000)\r\nrequiresExceptional = bulkOrderNav.checkInGump(\"exceptional\")\r\nmetalType = getMetalTypeBulkOrder()\r\nitem = getItemToCreate()\r\n#do this outside of the loop so I can just use create last item\r\nblacksmith.createItem(item, metalType)\r\namountToDo = getAmountToFill()\r\nhaveMetal = True \r\n\r\nwhile amountToDo > 0 and haveMetal:\r\n\tblacksmith.createLastItem()\r\n\tPause(2000)\r\n\titemsInBag = items.FindItemsByName(item, backpackId)\r\n\tcheckItemsAndFill(itemsInBag)\r\n\tPause(1000)\r\n\thaveMetal = blacksmith.getCraftResults() != 3\r\n\tamountToDo = getAmountToFill()\r\n\r\nMoveType(0x2258, \"backpack\", \"complete bag\")\r\n",
"PassToUO": true,
"Keys": {
"Keys": 0,
"SDLModifier": 0,
"Mouse": 7
},
"IsBackground": false,
"IsAutostart": false,
"Disableable": true,
"Group": "Crafting",
"Aliases": []
},
{
"Name": "Bushido",
"Loop": true,
"DoNotAutoInterrupt": false,
"Macro": "Cast(\"Evasion\")\r\nPause(10000)",
"PassToUO": true,
"Keys": {
"Keys": 0,
"SDLModifier": 0,
"Mouse": 7
},
"IsBackground": false,
"IsAutostart": false,
"Disableable": true,
"Group": "Skill Training",
"Aliases": []
},
{
"Name": "CastHealing",
"Loop": true,
"DoNotAutoInterrupt": false,
"Macro": "if DiffHitsPercent(\"self\") > 50 and not Poisoned(\"self\"):\r\n\tCast(\"Greater Heal\", \"self\")\r\n\tPause(2000)\r\nelse:\r\n\tPause(2000)\r\nif Poisoned(\"self\"):\r\n\tCast(\"Cure\", \"self\")\r\n\tPause(1500)\r\n\r\n",
"PassToUO": true,
"Keys": {
"Keys": 0,
"SDLModifier": 0,
"Mouse": 7
},
"IsBackground": true,
"IsAutostart": false,
"Disableable": true,
"Group": "Combat",
"Aliases": []
},
{
"Name": "CastSpells",
"Loop": false,
"DoNotAutoInterrupt": false,
"Macro": "",
"PassToUO": true,
"Keys": {
"Keys": 0,
"SDLModifier": 0,
"Mouse": 7
},
"IsBackground": false,
"IsAutostart": false,
"Disableable": true,
"Group": null,
"Aliases": []
},
{
"Name": "Discord Enemy",
"Loop": false,
"DoNotAutoInterrupt": false,
"Macro": "UseSkill(\"Discordance\")\r\nWaitForTarget(5000)\r\nTarget(\"enemy\")",
"PassToUO": true,
"Keys": {
"Keys": 62,
"SDLModifier": 1,
"Mouse": 7
},
"IsBackground": false,
"IsAutostart": false,
"Disableable": true,
"Group": "Combat",
"Aliases": []
},
{
"Name": "Follow me",
"Loop": false,
"DoNotAutoInterrupt": false,
"Macro": "Msg(\"all follow me\")",
"PassToUO": true,
"Keys": {
"Keys": 0,
"SDLModifier": 0,
"Mouse": 7
},
"IsBackground": false,
"IsAutostart": false,
"Disableable": true,
"Group": "Combat",
"Aliases": []
},
{
"Name": "Get BOD's",
"Loop": false,
"DoNotAutoInterrupt": false,
"Macro": "from common import *\r\n\r\ndef useHomeBook(response):\r\n\tuseObjectAndGumpResponse(0x460b6cb7, 0x554b87f3, response)\r\n\tPause(10000)\r\n\r\ndef getBOD(contextMenu, contextResponse, gump, gumpResponse):\r\n\tWaitForContext(contextMenu, contextResponse, 5000)\r\n\tWaitForGump(gump, 5000)\r\n\tReplyGump(gump, gumpResponse)\r\n\r\ndef getTailorBOD():\r\n\tuseHomeBook(23)\r\n\tgetBOD(0x184299, 3, 0x9bade6ea, 1)\r\n\r\ndef getBlacksmithBOD():\r\n\tuseHomeBook(5)\r\n\tgetBOD(0x18428b, 3, 0xbe0dad1e, 1)\r\n\t\r\ndef getMonsterBOD():\r\n\tuseHomeBook(11)\r\n\tgetBOD(0x187022, 1, 0x58082cb3, 0)\r\n\r\ndef getTinkerBOD():\r\n\tuseHomeBook(17)\r\n\tgetBOD(0x1842b3, 3, 0xd6bcf63a, 1)\r\n\r\ndef getCarpenterBOD():\r\n\tuseHomeBook(29)\r\n\tgetBOD(0x1842aa, 3, 0x9bade6ea, 1)\r\n\r\ndef getFletcherBOD():\r\n\tuseHomeBook(35)\r\n\tgetBOD(0x1842a3, 3, 0x9bade6ea, 1)\r\n\r\ndef getTamingBOD():\r\n\tuseHomeBook(41)\r\n\tgetBOD(0x18634e, 4, 0x307b71a8, 1)\r\n\t\r\ndef Main():\r\n\tgetTailorBOD()\r\n\tgetBlacksmithBOD()\r\n\tgetMonsterBOD()\r\n\tgetTinkerBOD()\r\n\tgetCarpenterBOD()\r\n\tgetFletcherBOD()\r\n\tgetTamingBOD()\r\n\t\r\nMain()",
"PassToUO": true,
"Keys": {
"Keys": 0,
"SDLModifier": 0,
"Mouse": 7
},
"IsBackground": false,
"IsAutostart": false,
"Disableable": true,
"Group": "Crafting",
"Aliases": []
},
{
"Name": "GoHome",
"Loop": false,
"DoNotAutoInterrupt": false,
"Macro": "homeBook = GetAlias(\"home book\")\r\nCast(\"Recall\", homeBook)\r\n",
"PassToUO": true,
"Keys": {
"Keys": 0,
"SDLModifier": 0,
"Mouse": 7
},
"IsBackground": false,
"IsAutostart": false,
"Disableable": true,
"Group": null,
"Aliases": []
},
{
"Name": "Keep me buff",
"Loop": false,
"DoNotAutoInterrupt": false,
"Macro": "#initial setup\r\n\r\ndef CheckTimer(name, amount):\r\n\ttime = amount * 1000\r\n\tif not TimerExists(name):\r\n\t\tCreateTimer(name)\r\n\t\treturn True\r\n\treturn Timer(name) > time\r\n\r\nMsg(\"OVER 9000!\")\r\n#set weapon timers\r\nif CheckTimer(\"consecrate\", 15):\r\n\tCast(\"Consecrate Weapon\")\r\n\tSetTimer(\"consecrate\", 0)\r\n\tPause(1000)\r\n\r\nif CheckTimer(\"curse\", 15):\r\n\tCast(\"Curse Weapon\")\r\n\tSetTimer(\"curse\", 0)\r\n\tPause(1000)\r\n\r\nif not BuffExists(\"Divine Fury\"):\r\n\tCast(\"Divine Fury\")\r\n\tPause(1000)\r\n\r\nif not BuffExists(\"Bless\"):\r\n\tCast(\"Bless\", \"self\")\r\n\tPause(1000)\r\n\t\r\nif CheckTimer(\"Gift Of Life\", 60000):\r\n\tCast(\"Gift Of Life\", \"Self\")\r\n\tPause(1000)\r\n\tSetTimer(\"Gift Of Life\")",
"PassToUO": true,
"Keys": {
"Keys": 0,
"SDLModifier": 0,
"Mouse": 7
},
"IsBackground": true,
"IsAutostart": false,
"Disableable": true,
"Group": null,
"Aliases": []
},
{
"Name": "LoginStartStuff",
"Loop": false,
"DoNotAutoInterrupt": false,
"Macro": "#options = ['do','something']\r\n\r\n#res, index = SelectionPrompt(options)\r\nif not FindAlias(\"home book\"):\r\n\tPromptAlias(\"home Book\")\r\n",
"PassToUO": true,
"Keys": {
"Keys": 0,
"SDLModifier": 0,
"Mouse": 7
},
"IsBackground": false,
"IsAutostart": false,
"Disableable": true,
"Group": null,
"Aliases": []
},
{
"Name": "Macro-23",
"Loop": false,
"DoNotAutoInterrupt": false,
"Macro": "UseObject(0x425129de)\r\n",
"PassToUO": true,
"Keys": {
"Keys": 0,
"SDLModifier": 0,
"Mouse": 7
},
"IsBackground": false,
"IsAutostart": false,
"Disableable": true,
"Group": null,
"Aliases": []
},
{
"Name": "MainAttack",
"Loop": false,
"DoNotAutoInterrupt": false,
"Macro": "# get nearest enemy\r\nGetEnemy(['murderer','criminal','gray'], 'any', 'closest')\r\n\r\n# keeps you moving towards the enemy till you are in melee range\r\ndef StayInMeleeRange():\r\n\twhile Distance('enemy') > 2:\r\n\t\tRun(DirectionTo('enemy'))\r\nAttack(\"enemy\")\r\nSetAbility(\"secondary\")\r\n# do things\r\n#Cast(\"Wither\")\r\n#Pause(1500)\r\n",
"PassToUO": true,
"Keys": {
"Keys": 44,
"SDLModifier": 1,
"Mouse": 7
},
"IsBackground": false,
"IsAutostart": false,
"Disableable": true,
"Group": "Combat",
"Aliases": []
},
{
"Name": "Orchestrate Bod",
"Loop": false,
"DoNotAutoInterrupt": false,
"Macro": "import common\r\nimport gumpNavigation\r\n\r\n\r\n",
"PassToUO": true,
"Keys": {
"Keys": 0,
"SDLModifier": 0,
"Mouse": 7
},
"IsBackground": false,
"IsAutostart": false,
"Disableable": true,
"Group": "Crafting",
"Aliases": []
},
{
"Name": "Pet Healing",
"Loop": true,
"DoNotAutoInterrupt": false,
"Macro": "\r\npetIdList = [0x14fa67, 0x14f94c, 0x93419, 0x830a5]\r\n\r\ndef healPet(petId):\r\n\tif DiffHitsPercent(petId) > 5:\r\n\t\tUseType(0xe21)\r\n\t\tWaitForTarget(1000)\r\n\t\tTarget(petId)\r\n\t\tPause(3000)\r\n\r\nfor pet in petIdList:\r\n\thealPet(pet)\r\n\r\nPause(1000)",
"PassToUO": true,
"Keys": {
"Keys": 0,
"SDLModifier": 0,
"Mouse": 7
},
"IsBackground": true,
"IsAutostart": false,
"Disableable": true,
"Group": "Combat",
"Aliases": []
},
{
"Name": "Provocation",
"Loop": false,
"DoNotAutoInterrupt": false,
"Macro": "UseSkill(\"Provocation\")\r\nWaitForTarget(5000)\r\nTarget(\"enemy\")",
"PassToUO": true,
"Keys": {
"Keys": 0,
"SDLModifier": 0,
"Mouse": 7
},
"IsBackground": false,
"IsAutostart": false,
"Disableable": true,
"Group": "Combat",
"Aliases": []
},
{
"Name": "Stealth",
"Loop": false,
"DoNotAutoInterrupt": false,
"Macro": "UseSkill(\"Hiding\")\r\nRun(DirectionTo('east'))",
"PassToUO": true,
"Keys": {
"Keys": 0,
"SDLModifier": 0,
"Mouse": 7
},
"IsBackground": false,
"IsAutostart": false,
"Disableable": true,
"Group": "Skill Training",
"Aliases": []
},
{
"Name": "Tailoring bulk order",
"Loop": false,
"DoNotAutoInterrupt": false,
"Macro": "",
"PassToUO": true,
"Keys": {
"Keys": 0,
"SDLModifier": 0,
"Mouse": 7
},
"IsBackground": false,
"IsAutostart": false,
"Disableable": true,
"Group": "Crafting",
"Aliases": []
},
{
"Name": "TestLootSort",
"Loop": false,
"DoNotAutoInterrupt": false,
"Macro": "import re\r\nfrom Assistant import Engine\r\n\r\ndef Empty_TrashBag(myTrashBag = None, emptyTrashBag = False, pauseInMS = 500):\r\n if emptyTrashBag:\r\n WaitForContext(myTrashBag, 0, 5000)\r\n Pause(500)\r\n\r\n\r\ndef VerifyBagExist(containerToVerify, bagName):\r\n containerExist = False \r\n if not FindObject(containerToVerify, -1, \"backpack\"): \r\n SysMessage('Your container \"' + bagName + '\" does not exist!', 33)\r\n else:\r\n containerExist = True\r\n return containerExist\r\n\r\n\r\ndef FindAnd_MoveItem(itemName = [], myLootBag = None, myKeepBag = None, myTrashBag = None, plusNumberToSearch = None, searchPropertyString = [], bonusNumberToSearch = None, percentageNumberToSearch = None, pauseInMS = 500): \r\n if itemName == []: \r\n \tSysMessage(\"Please define an item name string to search for. Example is ['ring', 'bracelet'].\", 33)\r\n \treturn\r\n \t\r\n if not VerifyBagExist(myLootBag, \"Loot Bag\") or not VerifyBagExist(myKeepBag, \"Keep Bag\") or not VerifyBagExist(myTrashBag, \"Trash Bag\"):\r\n return\r\n \r\n if\tplusNumberToSearch == None and searchPropertyString == [] and bonusNumberToSearch == None and percentageNumberToSearch == None:\r\n SysMessage('Please define at least one search critera!', 33)\r\n return\r\n \r\n containerToSearch = Engine.Items.GetItem(myLootBag) \r\n if containerToSearch.Container == None:\r\n WaitForContents(searchContainer, 5000)\r\n\r\n for itemFound in containerToSearch.Container.GetItems():\r\n for i in itemName: \r\n if itemFound.Name.ToLower().Contains(i.ToLower()):\r\n WaitForProperties(itemFound.Serial, 5000)\r\n keepItem = False\r\n if Property(itemFound.Serial, \"+\"): #If item propeties contain \"+\", search and see if stat number is equal to or greater than our plusNumberToSearch variable. \r\n getItemProperties = itemFound.Properties \r\n for g in getItemProperties:\r\n if g.Text.Contains(\"+\") and int(re.sub(\"\\D\", \"\", str(g.Text))) >= plusNumberToSearch:\r\n keepItem = True\r\n break\r\n \r\n if not keepItem and not searchPropertyString == []: \r\n getItemProperties = itemFound.Properties\r\n keepItem = False\r\n for g in getItemProperties:\r\n for s in searchPropertyString:\r\n if g.Text.ToLower().Contains(s.ToLower()): #If the item contains the search string from the list searchPropertyString, set item keep true\r\n keepItem = True\r\n break\r\n \r\n if not keepItem and not bonusNumberToSearch == None: \r\n if Property(itemFound.Serial, \"bonus\"): #If item propeties contain \"bonus\" string, search and see if bonus number is equal to or greater than our bonusNumberToKeep variable. \r\n getItemProperties = itemFound.Properties \r\n for g in getItemProperties:\r\n if g.Text.Contains(\"bonus\") and int(re.sub(\"\\D\", \"\", str(g.Text))) >= bonusNumberToSearch:\r\n keepItem = True\r\n break\r\n if not keepItem and not percentageNumberToSearch == None: \r\n if Property(itemFound.Serial, \"%\"): #If item propeties contain \"%\" sign, search and see if the percentage number is equal to or greater than our percentageNumberToKeep variable. \r\n getItemProperties = itemFound.Properties \r\n for g in getItemProperties:\r\n if g.Text.Contains(\"%\") and int(re.sub(\"\\D\", \"\", str(g.Text))) >= percentageNumberToSearch:\r\n keepItem = True\r\n break\r\n \r\n if keepItem: \r\n MoveItem(itemFound.Serial, myKeepBag)\r\n Pause(pauseInMS)\r\n else: \r\n MoveItem(itemFound.Serial, myTrashBag)\r\n Pause(pauseInMS)\r\n\r\n###Main program\r\n\r\n\r\n#Argument 1 itemName : Default list set to empty. Item name list to search for, in this case it's ring and bracelet. Loot bag has to be setup properly for this code to work. Please go here if you need help setting up your loop back https://uoevo.com/wiki/Loot_Bag_Setup\r\n#Argument 2 myLootBag : Default set to None. Serial ID of your loot bag, use Object Inspector to get this.\r\n#Argument 3 myKeepBag : Default set to None. None. Serial ID of your keep bag, use Object Inspector to get this.\r\n#Argument 4 myTrashBag : Default set to None. Serial ID of your trash bag, use Object Inspector to get this.\r\n#Argument 5 plusNumberToSearch : Default set to None. search for property string with +number greater than or equal to what you defined. \r\n#Argument 6 searchPropertyString : Default list set to empty. Search for properties for sepecific text that you want to keep. Example is if the item property has the string \"stage\", it will be moved you your keep bag.\r\n#Argument 7 bonusNumberToSearch : Default set to None. Search for property string with bonus number greater than or equal to what you defined. \r\n#Argument 8 percentageNumberToSearch: Default set to None. search for property string with % number greater than or equal to what you defined. \r\n#Argument 9 pauseInMS : Default is 500 ms, but set higher if you have bad internet connection of if the code is not moving/trashing your items. \r\n#FindAnd_MoveItem(itemName = ['bracelet', 'ring'], myLootBag = 0x41e0a0ec, myKeepBag = 0x42fed95a, myTrashBag = 0x41e0a0ed, plusNumberToSearch = None, searchPropertyString = [], bonusNumberToSearch = None, percentageNumberToSearch = None, pauseInMS = 500)\r\n\r\n#Argument 1 myTrashBag : Serial ID of your trash bag, use Object Inspector to get this.\r\n#Argument 2 emptyTrashBag: Default is False, but set to True if you want to empty your trash bag everytime to make call to the Empty_TrashBag function.\r\n#Empty_TrashBag(myTrashBag = 0x41e0a0ed, emptyTrashBag = False)",
"PassToUO": true,
"Keys": {
"Keys": 0,
"SDLModifier": 0,
"Mouse": 7
},
"IsBackground": false,
"IsAutostart": false,
"Disableable": true,
"Group": null,
"Aliases": []
},
{
"Name": "TestRecord",
"Loop": false,
"DoNotAutoInterrupt": false,
"Macro": "\r\nSetAlias(\"testAlias\", 0x1374)\r\n\r\nCreateList(\"testing\")\r\n#hex\r\nPushList(\"testing\", 0x1374)\r\n#word\r\nPushList(\"testing\", \"different\")\r\n#ensure nothing wierd with alias\r\nPushList(\"testing\", \"testAlias\")\r\n#WierdThings\r\nPushList(\"testing\", Cast)\r\n\r\nlist = GetList(\"testing\")\r\n\r\n\r\n#UseType(list[0])\r\n#Msg(list[1])\r\n#UseType(list[2])\r\nlist[3](\"Wither\")\r\n",
"PassToUO": true,
"Keys": {
"Keys": 0,
"SDLModifier": 0,
"Mouse": 7
},
"IsBackground": false,
"IsAutostart": false,
"Disableable": true,
"Group": null,
"Aliases": []
},
{
"Name": "Unlock,Disarm,Loot",
"Loop": false,
"DoNotAutoInterrupt": false,
"Macro": "from Assistant import Engine\r\n\r\nsuccessResponse = \"The lock quickly yields to your skill\"\r\nsuccess = \"You successfully render the trap harmless\"\r\n\r\nPromptAlias(\"Treasure Chest\")\r\n\r\nwhile not InJournal(successResponse):\r\n\tUseType(0x14fc)\r\n\tWaitForTarget(5000)\r\n\tTarget(\"Treasure Chest\")\r\n\tPause(4000)\r\nClearJournal()\r\nwhile not InJournal(success):\r\n\tUseSkill(\"Remove Trap\")\r\n\tWaitForTarget(5000)\r\n\tTarget(\"Treasure Chest\")\r\n\tPause(10000)\r\nClearJournal()\r\n\r\n",
"PassToUO": true,
"Keys": {
"Keys": 0,
"SDLModifier": 0,
"Mouse": 7
},
"IsBackground": false,
"IsAutostart": false,
"Disableable": true,
"Group": null,
"Aliases": []
},
{
"Name": "grab",
"Loop": false,
"DoNotAutoInterrupt": false,
"Macro": "Msg(\"[grab\")",
"PassToUO": true,
"Keys": {
"Keys": 47,
"SDLModifier": 1,
"Mouse": 7
},
"IsBackground": false,
"IsAutostart": false,
"Disableable": true,
"Group": null,
"Aliases": []
}
],
"Alias": [
{
"Name": "bank",
"Value": 1087354333
},
{
"Name": "last",
"Value": 1078816659
},
{
"Name": "backpack",
"Value": 1087263989
},
{
"Name": "self",
"Value": 541003
},
{
"Name": "test",
"Value": 536741
},
{
"Name": "enemy",
"Value": 1117680
},
{
"Name": "home book",
"Value": 1078816659
},
{
"Name": "treasure chest",
"Value": 0
},
{
"Name": "salvage bag",
"Value": 1149223161
},
{
"Name": "complete bag",
"Value": 1166952869
},
{
"Name": "testalias",
"Value": 4980
}
]
},
"Skills": [],
"Organizer": [
{
"Name": "Organizer-1",
"Stack": true,
"SourceContainer": 0,
"DestinationContainer": 0,
"Keys": {
"Keys": 0,
"SDLModifier": 0,
"Mouse": 7
},
"Complete": false,
"Items": []
}
],
"Dress": {
"Options": {
"MoveConflictingItems": true,
"UseUO3DPackets": false
},
"Entries": [
{
"Name": "Current",
"UndressContainer": 0,
"PassToUO": true,
"Keys": {
"Keys": 0,
"SDLModifier": 0,
"Mouse": 7
},
"Items": [
{
"Layer": 3,
"Serial": 1102368343,
"ID": 5905,
"Type": 0
},
{
"Layer": 4,
"Serial": 1104033712,
"ID": 5202,
"Type": 0
},
{
"Layer": 6,
"Serial": 1078772214,
"ID": 7609,
"Type": 0
},
{
"Layer": 7,
"Serial": 1078913688,
"ID": 5140,
"Type": 0
},
{
"Layer": 8,
"Serial": 1118638405,
"ID": 7945,
"Type": 0
},
{
"Layer": 9,
"Serial": 1105538081,
"ID": 12122,
"Type": 0
},
{
"Layer": 10,
"Serial": 1094275206,
"ID": 10106,
"Type": 0
},
{
"Layer": 12,
"Serial": 1086299757,
"ID": 11112,
"Type": 0
},
{
"Layer": 13,
"Serial": 1135302079,
"ID": 5141,
"Type": 0
},
{
"Layer": 14,
"Serial": 1103668839,
"ID": 4230,
"Type": 0
},
{
"Layer": 18,
"Serial": 1084142665,
"ID": 4231,
"Type": 0
},
{
"Layer": 19,
"Serial": 1084086712,
"ID": 5084,
"Type": 0
},
{
"Layer": 20,
"Serial": 1149177230,
"ID": 5397,
"Type": 0
},
{
"Layer": 22,
"Serial": 1078715763,
"ID": 9859,
"Type": 0
}
]
},
{
"Name": "Magery",
"UndressContainer": 1159607588,
"PassToUO": true,
"Keys": {
"Keys": 0,
"SDLModifier": 0,
"Mouse": 7
},
"Items": [
{
"Layer": 2,
"Serial": 1169415653,
"ID": 5112,
"Type": 0
},
{
"Layer": 6,
"Serial": 1118295589,
"ID": 5912,
"Type": 0
},
{
"Layer": 10,
"Serial": 1109987726,
"ID": 5139,
"Type": 0
},
{
"Layer": 12,
"Serial": 1078891922,
"ID": 5435,
"Type": 0
},
{
"Layer": 18,
"Serial": 1083288503,
"ID": 4231,
"Type": 0
}
]
},
{
"Name": "Luck",
"UndressContainer": 1105183793,
"PassToUO": true,
"Keys": {
"Keys": 0,
"SDLModifier": 0,
"Mouse": 7
},
"Items": [
{
"Layer": 2,
"Serial": 1169415653,
"ID": 5112,
"Type": 0
},
{
"Layer": 3,
"Serial": 1102368343,
"ID": 5905,
"Type": 0
},
{
"Layer": 4,
"Serial": 1104033712,
"ID": 5202,
"Type": 0
},
{
"Layer": 6,
"Serial": 1078772214,
"ID": 7609,
"Type": 0
},
{
"Layer": 7,
"Serial": 1078913688,
"ID": 5140,
"Type": 0
},
{
"Layer": 8,
"Serial": 1118638405,
"ID": 7945,
"Type": 0
},
{
"Layer": 9,
"Serial": 1105538081,
"ID": 12122,
"Type": 0
},
{
"Layer": 10,
"Serial": 1094275206,
"ID": 10106,
"Type": 0
},
{
"Layer": 12,
"Serial": 1086299757,
"ID": 11112,
"Type": 0
},
{
"Layer": 13,
"Serial": 1135302079,
"ID": 5141,
"Type": 0
},
{
"Layer": 14,
"Serial": 1103668839,
"ID": 4230,
"Type": 0
},
{
"Layer": 18,
"Serial": 1084142665,
"ID": 4231,
"Type": 0
},
{
"Layer": 19,
"Serial": 1084086712,
"ID": 5084,
"Type": 0
},
{
"Layer": 20,
"Serial": 1149177230,
"ID": 5397,
"Type": 0
},
{
"Layer": 22,
"Serial": 1078715763,
"ID": 9859,
"Type": 0
}
]
},
{
"Name": "Melee",
"UndressContainer": 1092177469,
"PassToUO": true,
"Keys": {
"Keys": 0,
"SDLModifier": 0,
"Mouse": 7
},
"Items": [
{
"Layer": 2,
"Serial": 1083449427,
"ID": 3915,
"Type": 0
},
{
"Layer": 3,
"Serial": 1102368343,
"ID": 5905,
"Type": 0
},
{
"Layer": 4,
"Serial": 1104033712,
"ID": 5202,
"Type": 0
},
{
"Layer": 6,
"Serial": 1249835480,
"ID": 5051,
"Type": 0
},
{
"Layer": 7,
"Serial": 1078913688,
"ID": 5140,
"Type": 0
},
{
"Layer": 8,
"Serial": 1118638405,
"ID": 7945,
"Type": 0
},
{
"Layer": 9,
"Serial": 1105538081,
"ID": 12122,
"Type": 0
},
{
"Layer": 10,
"Serial": 1080515788,
"ID": 5078,
"Type": 0
},
{
"Layer": 12,
"Serial": 1086299757,
"ID": 11112,
"Type": 0
},
{
"Layer": 13,
"Serial": 1111935684,
"ID": 9793,
"Type": 0
},
{
"Layer": 14,
"Serial": 1080099019,
"ID": 4230,
"Type": 0
},
{
"Layer": 18,
"Serial": 1084142665,
"ID": 4231,
"Type": 0
},
{
"Layer": 19,
"Serial": 1084086712,
"ID": 5084,
"Type": 0
},
{
"Layer": 20,
"Serial": 1149177230,
"ID": 5397,
"Type": 0
},
{
"Layer": 22,
"Serial": 1078715763,
"ID": 9859,
"Type": 0
}
]
},
{
"Name": "Necro",
"UndressContainer": 1413019035,
"PassToUO": true,
"Keys": {
"Keys": 0,
"SDLModifier": 0,
"Mouse": 7
},
"Items": [
{
"Layer": 2,
"Serial": 1151950967,
"ID": 5112,
"Type": 0
},
{
"Layer": 3,
"Serial": 1102368343,
"ID": 5905,
"Type": 0
},
{
"Layer": 4,
"Serial": 1141060384,
"ID": 5202,
"Type": 0
},
{
"Layer": 9,
"Serial": 1105538081,
"ID": 12122,
"Type": 0
},
{
"Layer": 12,
"Serial": 1078891922,
"ID": 5435,
"Type": 0
},
{
"Layer": 13,
"Serial": 1086227893,
"ID": 5068,
"Type": 0
},
{
"Layer": 14,
"Serial": 1208185187,
"ID": 4230,
"Type": 0
},
{
"Layer": 20,
"Serial": 1149177230,
"ID": 5397,
"Type": 0
},
{
"Layer": 22,
"Serial": 1078715763,
"ID": 9859,
"Type": 0
}
]
},
{
"Name": "Archer",
"UndressContainer": 0,
"PassToUO": true,
"Keys": {
"Keys": 0,
"SDLModifier": 0,
"Mouse": 7
},
"Items": []
}
]
},
"Counters": {
"Warn": true,
"WarnAmount": 100,
"Items": [
{