oEvents.iss LavishScript:RegisterEvent[COMBAT_LOG_EVENT_UNFILTERED] Event[COMBAT_LOG_EVENT_UNFILTERED]:AttachAtom[Grind:KillCount] oGrind.iss method KillCount(string EventName, uint EventID, string timestamp, string event, string sourceGUID, string sourceName, string sourceFlags, string destGUID, string destName, string destFlags) { This:Output["EVENT FIRED"] if ${event.Equals[PARTY_KILL]} { This:Output["GOT THE RIGHT EVENT!!!"] if (${sourceName.Equals[${WoWScript[UnitName("player"),1]}]} || ${sourceName.Equals[${WoWScript[UnitName("pet"),1]}]}) { This:Output["Killing Blow!"] Grind.KillCount:Inc State.LOOTState_Skip_Scans:Set[0] State.LOOTState_Loot_Wait_Until:Set[${Math.Calc[${LavishScript.RunningTime}+(${State.LOOTState_Loot_Wait_After_Until_Timeout} * ${Bot.GlobalCooldown})]}] if ${UIElement[chkKillSoundOn@Config@Pages@openbot].Checked} { This:PlaySound["Blip"] } if ${BG.BGMode} { BG.KILLS:Inc } return } } }