void WoWChat_Battleground(WoWChat.ChatSimpleMessageEventArgs e) { //Log("Message Inc"); //Split the incoming message for the bits we care about. String Message = e.Message; Log(Message); String[] Parts = TheReg.Split(Message); String Faction = Parts[1]; String Action = Parts[2]; String Player = Parts[3]; Log(Faction + "-" + Action + "-" + Player); //Check if the faction matches, we only care about our flag. if (Faction == MyFaction && Action == "dropped" && Me.IsAlive) { bool FlagCheck = FlagFound(false); if (FlagCheck) { Log("Flag Found"); Flag.Interact(); } else { Log("Flag not Found"); } } }
private void HandleChatSimpleMessage(WoWChat.ChatSimpleMessageEventArgs args) { ProcessMessage(args.Message); }
private void HandleChatMonster(WoWChat.ChatMonsterEventArgs args) { ProcessMessage(args.Message); }
private void HandleChatLanguageSpecific(WoWChat.ChatLanguageSpecificEventArgs args) { ProcessMessage(args.Message); }
public void newWhisper(WoWChat.ChatWhisperEventArgs arg) { bool IsGM = Lua.GetReturnVal<bool>("if(_G.GMChatFrame_IsGM and _G.GMChatFrame_IsGM("+ arg.Author + ")) then return true; else return false; end", 0); // from WIM Addon; WIM.lua Z:449 if (Rarekiller.Settings.Wisper) { if (File.Exists(Rarekiller.Settings.SoundfileWisper)) new SoundPlayer(Rarekiller.Settings.SoundfileWisper).Play(); else if (File.Exists(Rarekiller.Soundfile)) new SoundPlayer(Rarekiller.Soundfile).Play(); else Logging.Write(System.Drawing.Color.Red, "Rarekiller Part Alert: playing Soundfile failes"); if(IsGM) Logging.Write(System.Drawing.Color.DarkOrange, "Rarekiller Part Alert: You got a GM Wisper: {0}: {1} - Timestamp: {2}: {3}", arg.Author, arg.Message, DateTime.Now.ToShortDateString(), DateTime.Now.ToShortTimeString()); else Logging.Write(System.Drawing.Color.Pink, "Rarekiller Part Alert: You got a Wisper: {0}: {1} - Timestamp: {2}: {3}", arg.Author, arg.Message, DateTime.Now.ToShortDateString(), DateTime.Now.ToShortTimeString()); } }
public void newOfficer(WoWChat.ChatLanguageSpecificEventArgs arg) { if (Rarekiller.Settings.Guild) { if (File.Exists(Rarekiller.Settings.SoundfileGuild)) new SoundPlayer(Rarekiller.Settings.SoundfileGuild).Play(); else if (File.Exists(Rarekiller.Soundfile)) new SoundPlayer(Rarekiller.Soundfile).Play(); else Logging.Write(System.Drawing.Color.Red, "Rarekiller Part Alert: playing Soundfile failes"); Logging.Write(System.Drawing.Color.Lime, "Rarekiller Part Alert: Officermessage: {0}: {1} - Timestamp: {2}: {3}", arg.Author, arg.Message, DateTime.Now.ToShortDateString(), DateTime.Now.ToShortTimeString()); } }