Back to "b" tags

Cast psn on all nearby mobs by Jaseowns

1# cast psn on all nearby mobs by Jaseowns
2# UO Outlands
3
4removelist mobsNearMe
5createlist mobsNearMe
6
7while not dead
8    hotkey "Next Grey Monster Target"
9    wait 200
10    if insysmsg "No one matching that was found on your screen."
11        overhead "no match"
12    else
13        @setvar! myPsnTarget lasttarget 
14        if inlist mobsNearMe myPsnTarget
15            break
16        endif
17        if find myPsnTarget ground -1 -1 12 
18            getlabel myPsnTarget desc
19            if "Ticks" in desc
20                pushlist mobsNearMe myPsnTarget
21            elseif "(summoned" in desc or "(bonded" in desc
22                pushlist mobsNearMe myPsnTarget
23            else
24                cast Poison
25                wft 3000
26                target myPsnTarget
27                pushlist mobsNearMe myPsnTarget
28            endif
29        endif
30    endif
31endwhile
32