Omni Result Scanner by jesaug205
Description: Set number of Omnis done on line 10, then just run the script to have all players from the Omnis added to the distro list.
1//OMNI RESULT SCANNER (by Deathroll)
2
3//Character scanning must belong to a participating guild
4//Scanning characters guild must be on the damage results for the first link of the omni
5
6
7
8//_______________
9//SET NUMBER OF OMNIS (MAX 10) <---------- ONLY SETTING YOU DO!
10@setvar omnicount 1
11//_______________
12
13
14
15
16if findtype 41456 ground any any 2 2867 as distrochest
17 dclick distrochest
18 waitforgump 2865667423
19else
20 overhead 'Get closer to a distro chest'
21 stop
22endif
23//If you really dont want the script to clear results for some reason, change "clearresults" to 0
24@setvar clearresults 1
25@setvar run 1
26@setvar gumpsearch 0
27@setvar loopcount 0
28say '[bossresults'
29waitforgump 1892293155
30
31if clearresults == 1
32 while ingump 'Page' 2865667423
33 gumpresponse 10 2865667423
34 waitforgump 2865667423
35 endwhile
36 for 10
37 gumpresponse 10 2865667423
38 waitforgump 2865667423
39 endfor
40endif
41
42while run = 1
43overhead 'Scanning for an Omni...'
44wait 500
45
46 while gumpsearch == 0
47 while not ingump 'Results for Mastery Chain Link' 1892293155
48 gumpresponse 2 1892293155
49 waitforgump 1892293155
50 endwhile
51 @clearsysmsg
52 gumpresponse 11 1892293155
53 waitforgump 1892293155
54 if not insysmsg 'Your guild did not participate in this portion of the omni boss fight'
55 overhead 'Omni found! Adding results...'
56 for 43
57 gumpresponse 7 2865667423
58 waitforgump 2865667423
59 gumpresponse 5 1892293155
60 waitforgump 1892293155
61 endfor
62 overhead 'Results added successfully!'
63 gumpresponse 2 1892293155
64 waitforgump 1892293155
65 @setvar gumpsearch 1
66 else
67 overhead 'Not our Omni! Skipping...'
68 wait 1000
69 gumpresponse 2 1892293155
70 waitforgump 1892293155
71 endif
72 endwhile
73 @setvar gumpsearch 0
74
75
76 if loopcount == 0
77 @setvar loopcount 1
78 elseif loopcount == 1
79 @setvar loopcount 2
80 elseif loopcount == 2
81 @setvar loopcount 3
82 elseif loopcount == 3
83 @setvar loopcount 4
84 elseif loopcount == 4
85 @setvar loopcount 5
86 elseif loopcount == 5
87 @setvar loopcount 6
88 elseif loopcount == 6
89 @setvar loopcount 7
90 elseif loopcount == 7
91 @setvar loopcount 8
92 elseif loopcount == 8
93 @setvar loopcount 9
94 elseif loopcount == 9
95 @setvar loopcount 10
96 else
97 overhead 'Unknown error, terminating script'
98 stop
99 endif
100
101 if loopcount == omnicount
102 @setvar run 0
103 endif
104
105endwhile
106
107gumpclose 1892293155
108overhead 'Operation completed. Ending script.'