Created: 01/14/2023, 01:44:25 AM Updated: 05/23/2024, 03:23:50 AM View Change History
1
2
3
4
5
6
7
8
9
10
11@setvar! checkStr 0
12@setvar! checkDex 0
13@setvar! checkMagic 0
14@setvar! checkHealPot 1
15@setvar! checkCurePot 1
16@setvar! checkRefreshPot 1
17
18
19
20@setvar! hpCheckToTriggerHealPotion 100
21@setvar! hpCheckToTriggerCurePotion 40
22@setvar! stamCheckToTriggerRedPotion 20
23
24@setvar! needStrBuff 0
25@setvar! needDexBuff 0
26@setvar! needMagicBuff 0
27@setvar! needHealPot 0
28@setvar! needCurePot 0
29@setvar! needRefreshPot 0
30
31@setvar! minimumWaitForPing 200
32
33
34if checkStr = 1 and not findbuff "Strength"
35 @setvar! needStrBuff 1
36endif
37
38if checkDex = 1 and not findbuff "Agility"
39 @setvar! needDexBuff 1
40endif
41
42if checkMagic = 1 and not findbuff "Magic Resist Potion"
43 @setvar! needMagicBuff 1
44endif
45
46if checkHealPot = 1 and hp <= hpCheckToTriggerHealPotion
47 @setvar! needHealPot 1
48endif
49
50if checkCurePot = 1 and poisoned and hp <= hpCheckToTriggerCurePotion
51 @setvar! needCurePot 1
52endif
53
54if checkRefreshPot = 1 and stam <= stamCheckToTriggerRedPotion
55 @setvar! needRefreshPot 1
56endif
57
58if needStrBuff = 1 and not findtype "White Potion" backpack
59 overhead "No white potions!" 34
60 @setvar! needStrBuff 0
61endif
62
63if needDexBuff = 1 and not findtype "Blue Potion" backpack
64 overhead "No blue agi potions!" 34
65 @setvar! needDexBuff 0
66endif
67
68if needMagicBuff = 1 and not findtype "Black Potion" backpack
69 @setvar! needMagicBuff 0
70endif
71
72if needHealPot = 1 and not findtype "Yellow Potion" backpack
73 @setvar! needHealPot 0
74elseif needHealPot = 1 and findtype "Yellow Potion" backpack as item
75 getlabel item healPotDesc
76 if "next usable" in healPotDesc
77 @setvar! needHealPot 0
78 else
79 @setvar! needHealPot 1
80 endif
81endif
82
83if needCurePot = 1 and not findtype "Orange Potion" backpack
84 @setvar! needCurePot 0
85endif
86
87if needRefreshPot = 1 and not findtype "Red Potion" backpack
88 @setvar! needRefreshPot 0
89endif
90
91
92if needHealPot = 1
93 if findtype "Yellow Potion" backpack as jotion
94 overhead "chug heal"
95 dclick jotion
96 wait minimumWaitForPing
97 cooldown "Yellow Potion" 10000
98 else
99 overhead "No Heal potion found!" 34
100 endif
101endif
102
103if needStrBuff = 1
104 if findtype "White Potion" backpack as jotion
105 overhead "chug str"
106 dclick jotion
107 wait minimumWaitForPing
108 else
109 overhead "No STR potion found!" 34
110 endif
111endif
112
113if needDexBuff = 1
114 if findtype "Blue Potion" backpack as jotion
115 overhead "chug agi"
116 dclick jotion
117 wait minimumWaitForPing
118 else
119 overhead "No AGI potion found!" 34
120 endif
121endif
122
123if needMagicBuff = 1
124 if findtype "Black Potion" backpack as jotion
125 overhead "chug resist"
126 dclick jotion
127 wait minimumWaitForPing
128 else
129 overhead "No MR potion found!" 34
130 endif
131endif
132
133if needCurePot = 1
134 if findtype "Orange Potion" backpack as jotion
135 overhead "chug cure"
136 dclick jotion
137 wait minimumWaitForPing
138 else
139 overhead "No Cure potion found!" 34
140 endif
141endif
142
143if needRefreshPot = 1
144 if findtype "Red Potion" backpack as jotion
145 overhead "chug refresh"
146 dclick jotion
147 wait minimumWaitForPing
148 else
149 overhead "No Refresh potion found!" 34
150 endif
151endif
152
153
154
155
156
157
158
159