Back to "ali" tags

Auto Hide and then Steal near closest mob by Jaseowns

1# Auto Hide and then Steal near closest mob by Jaseowns
2# UO Outlands
3if targetexists beneficial
4    hotkey "Target Self"
5    wait 200
6elseif targetexists neutral
7    hotkey 'Cancel Current target'
8endif
9
10hotkey 'Target Closest Non-Friendly Monster'
11@setvar! myTarget lasttarget 
12
13if not hidden 
14    if skill "Magery" >= 80
15        while not targetexists beneficial
16            cast "Invisibility"
17            wait 50
18        endwhile
19        while targetexists
20            wait 50
21            if find myTarget ground -1 -1 1
22                replay
23            endif
24        endwhile
25    else
26        useskill "hiding"
27        wait 200
28        replay
29    endif
30else
31    while not targetexists neutral
32        useskill "Stealing"
33        wait 50
34    endwhile
35    while targetexists
36        if find myTarget ground -1 -1 1
37            target myTarget
38        else
39            overhead "Move closer to steal!" 34
40        endif
41    endwhile
42endif