Skip to content

Commit b233595

Browse files
authored
Merge pull request #10 from meta53/event-flush-removal
Remove unnecessary flush commands from various event handlers to streamline event processing and improve performance. This includes removing flush commands from functions related to target engagement, healing, looting, and off-tanking events, among others. The changes aim to reduce potential delays caused by flushing events that are no longer needed, enhancing the overall efficiency of the script.
2 parents 1d864bc + b04183d commit b233595

21 files changed

+0
-200
lines changed

bot_brd.mac

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ Sub Events_BRD
5555

5656
Sub EVENT_Sing(_line, _sender, _eventParams)
5757
/call SingSongs ${str_currentMedley}
58-
/doevents flush Sing
5958
/return
6059

6160
Sub SingSongs(string _type)
@@ -67,13 +66,11 @@ Sub SingSongs(string _type)
6766

6867
Sub EVENT_Hush(_line, _sender, _eventParams)
6968
/medley stop
70-
/doevents flush Hush
7169
/return
7270

7371
Sub Event_BardSlow
7472
/echo \awToggling Bard Slow \ag${bln_bardSlow} \awto TRUE
7573
/call ToggleBardSlow TRUE
76-
/doevents flush BardSlow
7774
/return
7875

7976

bot_clr.mac

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -207,13 +207,11 @@ Sub EVENT_DivineInterventionRequest(_line, _sender, _eventParams)
207207
/docommand /${announceChannel} DI is NOT ready, ask someone else!
208208
}
209209
}
210-
/doevents flush DivineInterventionRequest
211210
/return
212211

213212

214213
Sub Event_AutoRezOn
215214
/call AutoRezON
216-
/doevents flush AutoRezON
217215
/return
218216

219217
Sub AutoRezON
@@ -223,7 +221,6 @@ Sub AutoRezON
223221

224222
Sub Event_AutoRezOff
225223
/call AutoRezOFF
226-
/doevents flush AutoRezOFF
227224
/return
228225

229226
Sub AutoRezOFF
@@ -234,7 +231,6 @@ Sub AutoRezOFF
234231

235232
Sub Event_CombatRezON
236233
/call CombatRezON
237-
/doevents flush CombatRezON
238234
/return
239235

240236
Sub CombatRezON
@@ -245,7 +241,6 @@ Sub CombatRezON
245241

246242
Sub Event_CombatRezOFF
247243
/call CombatRezOFF
248-
/doevents flush CombatRezOFF
249244
/return
250245

251246
Sub CombatRezOFF

bot_melee.mac

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,15 +162,13 @@ Sub chkUtils
162162
/return
163163

164164
Sub EVENT_WARCRYON_1
165-
/doevents flush WARCRYON_1
166165
/if (${BURN_Group}==1) {
167166
/echo \agEnabling \arWarCry \agMode on CoHort \ao1
168167
/call FireWarCry
169168
}
170169
/return
171170

172171
Sub EVENT_WARCRYON_2
173-
/doevents flush WARCRYON_2
174172
/if (${BURN_Group}==2) {
175173
/echo \agEnabling \arWarCry \agMode on CoHort \ao2
176174
/call FireWarCry

bot_pal.mac

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,20 +158,17 @@ Sub EVENT_STUNMOB(_line, _chatSender, _eventParams)
158158
/echo \ayI should stun this mob
159159
/call TrueTarget(${_eventParams.Arg[1, ]})
160160
/call chkStun TRUE
161-
/doevents flush STUNMOB
162161
/return
163162

164163
Sub EVENT_STUNLOCK(_line, _chatSender, _eventParams)
165164
/echo \aoI am Stun Locking this mob
166165
/call TrueTarget(${_eventParams.Arg[1, ]})
167166
/call chkStunLock
168-
/doevents flush STUNLOCK
169167
/return
170168

171169
Sub EVENT_STUNSTOP(_line, _chatSender, _eventParams)
172170
/echo \agI am no lnger Stun Locking the mob
173171
/call chkStunLockStop
174-
/doevents flush STUNLOCKSTOP
175172
/return
176173

177174

bot_pull.mac

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -674,14 +674,12 @@ Sub killTarget
674674

675675

676676
Sub Event_TooClose
677-
/doevents flush TooClose
678677
/echo Event_TooClose
679678
/varset bln_tooClose TRUE
680679

681680
/return
682681

683682
Sub Event_NoLOS
684-
/doevents flush NoLOS
685683
/echo Event_NoLOS
686684
/nav target
687685
/delay 10

bot_wiz.mac

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,6 @@ Sub variant_initialize(string _strTankName, int _intAssistAt, int _intTankHealPo
196196
Sub EVENT_MANABURN
197197
/echo MBURN CALLED
198198
/call MQ2Cast "Mana Burn" alt
199-
/doevents flush
200199
/return
201200

202201
Sub EVENT_AEON
@@ -211,7 +210,6 @@ SUB EVENT_AEOFF
211210

212211
SUB EVENT_FIRETL
213212
/if (!${bln_tlUse}) /return
214-
/doevents flush
215213
/dgt Firing TL
216214
/call MQ2Cast "${str_tlSpell}" ${str_tlGem}
217215
/delay 1m

xiris_common/xiris_buffing.inc

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,6 @@ Sub EVENT_DORAIDBUFFS(_line, _chatSender, _eventParams)
9191
/delay 10
9292
| Restore the previous spellset
9393
/memspellset ${str_spellset}
94-
95-
/doevents flush DORAIDBUFFS
9694
/return
9795

9896
Sub EVENT_DOCHARBUFFS(_line, _chatSender, _eventParams)
@@ -106,8 +104,6 @@ Sub EVENT_DOCHARBUFFS(_line, _chatSender, _eventParams)
106104
/delay 10
107105
| Restore the previous spellset
108106
/memspellset ${str_spellset}
109-
110-
/doevents flush DOCHARBUFFS
111107
/return
112108

113109

@@ -121,8 +117,6 @@ Sub EVENT_DOSINGLETARGETBUFFS(_line, _chatSender, _eventParams)
121117
/call doSingleTargetBuffOnChar ${_eventParams}
122118
}
123119
/memspellset ${str_spellset}
124-
125-
/doevents flush DOSINGLETARGETBUFFS
126120
/return
127121

128122
Sub EVENT_DOSPECIFICBUFFONCHAR(string _text, string _sender, string _buffer, string _spell);
@@ -138,7 +132,6 @@ Sub EVENT_DOSPECIFICBUFFONCHAR(string _text, string _sender, string _buffer, str
138132
/memspellset buff
139133
/call doSpecificBuffOnChar ${_sender} "${_spell}"
140134
/memspellset ${str_spellset}
141-
/doevents flush DOSPECIFICBUFFONCHAR
142135
/return
143136

144137

@@ -624,12 +617,10 @@ Sub EVENT_REMOVEBUFF(_line, _chatSender, _eventParams)
624617
/declare buffToRemove string local ${_eventParams.Arg[1,-]}
625618
/echo \awEvent Remove Buff called: ${_eventParams} -> ${buffToRemove}
626619
/call RemoveBuff "${buffToRemove}"
627-
/doevents flush REMOVEBUFF
628620
/return
629621

630622
Sub EVENT_REMOVEALLBUFFS(_line, _chatSender, _eventParams)
631623
/call RemoveAllBuffs
632-
/doevents flush REMOVEALLBUFFS
633624
/return
634625

635626
Sub RemoveAllBuffs
@@ -671,7 +662,6 @@ Sub RemoveDS
671662
/medley ${str_currentMedley}
672663
}
673664
:return
674-
/doevents flush NoDS
675665
/return
676666
677667
@@ -684,7 +674,6 @@ Sub EVENT_YesDS(_line, _sender, _eventParams)s
684674
/medley ${str_savedMedley}
685675
}
686676
:return
687-
/doevents flush YesDS
688677
/return
689678
690679

xiris_common/xiris_burn.inc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ Sub EVENT_BurnOn
5353
/echo \agEnabling \arBurn \agMode
5454
/varset bln_burning TRUE
5555
/varset bln_checkForCry FALSE
56-
/doevents flush BurnOn
5756
/return
5857

5958
Sub EVENT_BurnOnAll
@@ -62,7 +61,6 @@ Sub EVENT_BurnOnAll
6261
/echo \agEnabling \arBurn ALL \agMode
6362
/varset bln_burning TRUE
6463
/varset bln_checkForCry FALSE
65-
/doevents flush BurnOnAll
6664
/return
6765

6866
Sub EVENT_BurnOn1
@@ -72,7 +70,6 @@ Sub EVENT_BurnOn1
7270
/varset bln_burning TRUE
7371
}
7472
/varset bln_checkForCry TRUE
75-
/doevents flush BurnOn1
7673
/return
7774

7875
Sub EVENT_BurnOn2
@@ -82,14 +79,12 @@ Sub EVENT_BurnOn2
8279
/varset bln_burning TRUE
8380
}
8481
/varset bln_checkForCry FALSE
85-
/doevents flush BurnOn2
8682
/return
8783

8884
Sub EVENT_BurnOff
8985
/echo \agDisablig \ayBurn \agMode
9086
/varset bln_burning FALSE
9187
/varset bln_checkForCry FALSE
92-
/doevents flush BurnOff
9388
|/call chkCryActive
9489
/return
9590

xiris_common/xiris_casting.inc

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,6 @@ Sub chkSpellMemorized(string _spell, bool _wait, string _gem)
632632

633633
Sub Event_ChkHasSpell(_line, _sender, _eventParams)
634634
/echo line: ${_line} sender: ${_sender} params:${_eventParams}
635-
/doevents flush ChkHasSpell
636635
/declare clz string local ${_eventParams.Arg[1,|]}
637636
/declare sName string local ${_eventParams.Arg[2,|]}
638637
/call chkHasSpell ${clz} "${sName}"
@@ -702,20 +701,17 @@ Sub ResetCastTimers
702701
|-- MEZ IMMUNE
703702
Sub Event_MezImmune
704703
/${cmdChannel} mezimmunemob ${Target.CleanName}
705-
/doevents flush MezImmune
706704
/return
707705

708706
|-- SNARE IMMUNE-|
709707
Sub Event_SnareImmune
710708
/varset bln_snareActive TRUE
711709
/${cmdChannel} snareimmunemob ${Target.CleanName}
712-
/doevents flush SnareImmune
713710
/return
714711

715712
Sub Event_Snareon
716713
/varset bln_snareActive TRUE
717714
/if (${bln_snareUse}) /${cmdChannel} snared: ${Target.CleanName}
718-
/doevents flush Snareon
719715
/return
720716

721717
Sub Event_SnareResist
@@ -729,12 +725,10 @@ Sub Event_SnareResist
729725
/varcalc int_snareCounter ${int_snareCounter}+1
730726
/if (${bln_snareUse}) /${cmdChannel} snare resisted LTE 3: Trying Again
731727
}
732-
/doevents flush SnareResist
733728
/return
734729

735730
Sub Event_SnareWornOff
736731
/varset bln_snareActive FALSE
737-
/doevents flush SnareWornOff
738732
/return
739733

740734
Sub EVENT_SetUseFastOnly(_line, _chatSender, _eventParams)
@@ -745,7 +739,6 @@ Sub EVENT_SetUseFastOnly(_line, _chatSender, _eventParams)
745739
/echo \aoSetting fast only:\ag${_eventParams}
746740
/varset bln_useFastOnly FALSE
747741
}
748-
/doevents flush SetUseFastOnly
749742
/return
750743

751744

@@ -762,7 +755,6 @@ Sub EVENT_SetResistType(_line, _chatSender, _eventParams)
762755

763756
/if (${_strResists.Equal[ALL]}) /varset _strResists ${str_defaultResistTypes}
764757
/call SetResistTypes ${_strResists}
765-
/doevents flush SetResistType
766758
/return
767759

768760
Sub SetResistTypes(string _typesCSV)

0 commit comments

Comments
 (0)