Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using BattleCore;
- using BattleCore.Events;
- using BattleCore.PsyOps;
- using System.Text;
- namespace FirstBot
- {
- [Behavior("firstModule", "true", "0.01", "mashem", "My first module.")]
- public class turretModule : BotEventListener
- {
- public turretModule()
- {
- RegisterCommand("!mirror", MirrorMe);
- }
- Chat msg = new Chat();
- bool MirrorOn = false;
- string player2mirror = "mashem";
- public void MirrorMe(ChatEvent c)
- {
- if (MirrorOn)
- {
- MirrorOn = false;
- Game(msg.pm("MashBot", "*spec"));
- Game(msg.pm("MashBot", "*spec"));
- }
- else
- {
- player2mirror = c.PlayerName;
- MirrorOn = true;
- Game(msg.pm("MashBot", "*setship 1"));
- }
- Game(msg.arena("Mirror mode is now set to [ " + MirrorOn + " ]"));
- }
- public void AllPlayerMovement(object sender, PlayerPositionEvent p)
- {
- if (p.PlayerName == player2mirror && MirrorOn)
- Game(p);
- }
- public override void Dispose()
- {
- throw new NotImplementedException();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment