-
Notifications
You must be signed in to change notification settings - Fork 62
/
Copy pathStealGarlic.uos
58 lines (58 loc) · 1.5 KB
/
StealGarlic.uos
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
//this steals wands from 1 bag deep
getenemy 'friend' 'innocent''murderer''enemy''criminal''gray''closest' 'humanoid'
if not listexists 'bags'
@createlist 'bags'
@pushlist 'bags' 0xe76
@pushlist 'bags' 0xe75
@pushlist 'bags' 0xe74
@pushlist 'bags' 0xe78
@pushlist 'bags' 0xe7d
@pushlist 'bags' 0xe77
endif
if @inrange 'enemy' 1 and @findlayer 'enemy' 21
@setalias 'enemypack' 'found'
endif
if @findtype 0xf84 'any' 'enemypack' 'any' and @inrange 'enemy' 1
//useobject 'found'
pause 200
headmsg 'found garlic'
useskill 'stealing'
waitfortarget 1500
target! 'found'
headmsg 'stole it!'
endif
if @findalias 'enemypack'
// start scanning all bags for wands
for 0 to 'bags'
//looping bags
while @findtype bags[] 'any' 'enemypack'
pause 100
@pushlist 'bags' 'found'
@setalias 'inside' 'found'
useobject 'inside'
pause 100
if @findtype 0xf84 'any' 'inside' 'any' and @inrange 'enemy' 1
headmsg 'SKILL'
useobject 'inside'
useskill 'stealing'
waitfortarget 1500
target! 'found'
headmsg 'stole it!'
endif
//Steal from 2nd Level of Bags
while @findtype bags[] 'any' 'inside'
pause 100
@pushlist 'bags' 'found'
pause 100
useobject 'inside'
useskill 'stealing'
waitfortarget 1500
target! 'found'
headmsg 'stole it!'
ignoreobject 'found'
endwhile
ignoreobject 'inside'
endwhile
@clearignorelist
endfor
endif