PsyOps

firstModule

Nov 17th, 2012
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5.  
  6. using BattleCore;
  7. using BattleCore.Events;
  8. using BattleCore.PsyOps;
  9.  
  10. namespace FirstBot
  11. {
  12.     [Behavior("firstModule", "true", "0.01", "mashem", "My first module.")]
  13.     public class firstModule:BotEventListener
  14.     {
  15.         public firstModule()
  16.         {
  17.             RegisterCommand("!flags", ToggleFlagEvent);
  18.         }
  19.  
  20.         public void ToggleFlagEvent(ChatEvent c)
  21.         {
  22.             ChatEvent newmsg = new ChatEvent();
  23.             newmsg.PlayerName = c.PlayerName;
  24.             newmsg.ChatType = ChatTypes.Private;
  25.             newmsg.Message = "Message you want sent back.";
  26.  
  27.             SendGameEvent(newmsg);
  28.         }
  29.  
  30.         public override void Dispose()
  31.         {
  32.             throw new NotImplementedException();
  33.         }
  34.     }
  35. }
Advertisement
Add Comment
Please, Sign In to add comment