Created: 07/22/2022, 07:22:45 PM Updated: 07/22/2022, 07:22:45 PM View Change History
1
2
3
4
5
6
7
8
9
10@setvar! drink_red 1
11@setvar! drink_white 1
12@setvar! drink_blue 1
13@setvar! drink_black 1
14@setvar! drink_orange 1
15@setvar! drink_yellow 1
16
17
18
19@setvar! preferred_twohand_weapon_type_id 3909
20
21@setvar! preferred_onehand_weapon_type_id 5049
22
23
24if findtype preferred_twohand_weapon_type_id lefthand
25 if findtype preferred_onehand_weapon_type_id backpack as swappy
26 dclick swappy
27 else
28 overhead "This is slow, update preferred_onehand_weapon_type_id" 34
29 undress LeftHand
30 endif
31endif
32
33
34if drink_red = 1 and stam < maxstam
35 if findtype "Red Potion" backpack as pot
36 dclick pot
37 wait 200
38 endif
39endif
40
41if drink_white = 1 and str <= 100
42 if findtype "White Potion" backpack as pot
43 dclick pot
44 wait 200
45 endif
46endif
47
48if drink_blue = 1 and dex <= 100
49 if findtype "Blue Potion" backpack as pot
50 dclick pot
51 wait 200
52 endif
53endif
54
55if drink_black = 1 and not findbuff "magic resist"
56 if findtype "Black Potion" backpack as pot
57 dclick pot
58 wait 200
59 else
60 overhead "Out of Magic Resist" 34
61 endif
62endif
63
64if drink_orange = 1 and poisoned
65 if findtype "Orange Potion" backpack as pot
66 dclick pot
67 wait 200
68 else
69 overhead "Out of cures" 34
70 endif
71endif
72
73if drink_yellow = 1 and diffhits > 30
74 if findtype "Yellow Potion" backpack as pot
75 dclick pot
76 wait 200
77 else
78 overhead 'Out of heals!' 34
79 endif
80endif
81
82if not findtype preferred_twohand_weapon_type_id lefthand
83 if findtype preferred_twohand_weapon_type_id backpack as swappy
84 dclick swappy
85 endif
86endif