Rok'war by Pcbl
Description: Wiz GH ban bot (public guild house with vendors)
1while not dead
2
3 if not timerexists "skill timer"
4 createtimer "skill timer"
5 endif
6
7 if timer "skill timer" > 10100
8 hotkey 'Cancel Current Target'
9 skill 'detectinghidden'
10 waitfortarget 5000
11 target 'self'
12 settimer "skill timer" 0
13 endif
14 unsetvar 'lastserial'
15 @hotkey 'Next Player Target'
16 pause 350
17 @setvar! 'lastserial' lasttarget
18 getlabel 'lastserial' 'seriallabel'
19 if not insysmsg "No one matching that was found"
20 # If the target is green, skip.
21 if noto 'lastserial' = friend
22 //overhead "Ignore Guildmate" 33
23 continue
24 endif
25
26 # If the target is in *** guild, skip.
27 if "R0K" in 'seriallabel'
28 //overhead "Ignore Red Guildmate" 33
29 continue
30 endif
31 if "Brock Warr" in 'seriallabel'
32 overhead "Ignore R0K"
33 continue
34 endif
35 # Attempt to ban the target.
36 hotkey 'Cancel Current Target'
37 say "i ban thee"
38 pause 250
39 target 'lastserial'
40 pause 500
41 endif
42endwhile