/
ec579563-4ef1-423c-8b7c-8c9a9fb279af
207 lines (166 loc) · 5.67 KB
/
ec579563-4ef1-423c-8b7c-8c9a9fb279af
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
# This is an automated backup - check out https://unchained.uorazorscripts.com/script/ec579563-4ef1-423c-8b7c-8c9a9fb279af for latest
# Automation by Jaseowns
## Script: Dexxer Bot V2.1
## Created by: KikRox268#6372
#############################################
########## Unchained Dexxer Bot V2.0 by KikRox268##########
############### Contributions: JaseOwns ###################
//targets closest enemy, buffs you w/ pots if needed, cures poison and uses heal pots when needed, applied bandages once taken damage//
###################################################
########## Setup Variables ##########
###################################################
@setvar! displayOverheadPotions 0
@setvar! cdHealing 10000
if not timerexists healingTimer
settimer 'healingTimer' cdHealing
endif
clearsysmsg
while not dead
##############################################
########## Bandage Loop by JaseOwns ##########
##############################################
if skill "Healing" > 0
@setvar! cdAids 15000
if dex >= 100
@setvar! cdAids 7000
endif
if not timerexists aidsTimer
createtimer aidsTimer
settimer aidsTimer cdAids
endif
if findtype "clean bandage%s%" backpack
// ready to bandage if needed
if timer aidsTimer >= cdAids
if hp < maxhp or poisoned
hotkey 'Bandage Self'
wait 200
if insysmsg "You begin applying the bandages."
settimer aidsTimer 0
endif
endif
endif
// handle dex changes
if timer aidsTimer <= cdAids
if insysmsg "You apply the bandages, but they barely help." or insysmsg "You finish applying the bandages."
settimer aidsTimer cdAids
endif
endif
else
overhead "No bandages" 34
endif
wait 200
endif
###################################################
########## Targeting Script by KikRox268 ##########
###################################################
hotkey 'Target Closest Non-Friendly'
wait 200
if insysmsg "No one matching that was found on your screen."
overhead "«« No Target Found »»" 69
wait 200
replay
else
setvar! myTarget lasttarget
overhead "««« Target »»»" 69
endif
attack lasttarget
##################################################
########## Potion Use Loop by KikRox268 ##########
##################################################
if timer healingTimer >= cdHealing and findtype "yellow potion" backpack and hp <= 45
if findbuff "heat of battle"
wait 500
potion 'heal'
settimer 'healingTimer' 0
cooldown 'Healing' 10 0 'ArchProtection'
overhead "Heal Pot Used!" 88
wait 500
else
potion 'heal'
settimer 'healingTimer' 0
cooldown 'Healing' 10 0 'ArchProtection'
overhead "Heal Pot Used!" 88
endif
endif
if not findtype "yellow potion" backpack and displayOverheadPotions = 1
overhead "No Heal Pots!" 45
endif
if findtype "orange potion" backpack and poisoned
if findbuff "heat of battle"
wait 500
potion 'cure'
overhead "Cure Pot Used!" 88
wait 500
else
potion 'cure'
overhead "Cure Pot Used!" 88
endif
endif
if not findtype "orange potion" backpack and displayOverheadPotions = 1
overhead "No Cure Pots!" 45
endif
if findtype "white potion" backpack and not findbuff 'Strength'
if findbuff "heat of battle"
wait 500
potion 'str'
overhead "Str Pot Used!" 88
wait 500
else
potion 'str'
overhead "Str Pot Used!" 88
endif
endif
if not findtype "white potion" backpack and displayOverheadPotions = 1
overhead "No Str Pots!" 45
endif
if findtype "blue potion" backpack and not findbuff 'Agility'
if findbuff "heat of battle"
wait 500
potion 'agility'
overhead "Agi Pot Used!" 88
wait 500
else
potion 'agility'
overhead "Agi Pot Used!" 88
endif
endif
if not findtype "blue potion" backpack and displayOverheadPotions = 1
overhead "No Agi Pots!" 45
endif
if findtype "red potion" backpack and diffstam > 20
if findbuff "heat of battle"
wait 500
potion 'refresh'
overhead "Refresh Pot Used!" 88
wait 500
else
potion 'refresh'
overhead "Refresh Pot Used!" 88
endif
endif
if not findtype "red potion" backpack and displayOverheadPotions = 1
overhead "No Stm Pots!" 45
endif
if insysmessage "You are already under a similar effect."
wait 200
else
if findtype "black potion" backpack as pot and not insysmessage "Your magic resistance towards creatures has increased."
if findbuff "heat of battle"
wait 500
dclick pot
overhead "Resist Pot Used!" 88
wait 500
else
dclick pot
overhead "Resist Pot Used!" 88
endif
endif
endif
if not findtype "black potion" backpack and displayOverheadPotions = 1
overhead "No Resist Pots!" 45
endif
endwhile
while dead
overhead "We dead bro" 34
wait 1000
endwhile