Ejemplo n.º 1
0
        protected override void DoCommand(string[] args)
        {
            LyokoWarrior warrior = LyokoWarriors.GetByName(args[0].ToLower());

            if (warrior == null)
            {
                throw new CommandException(this, "Invalid warrior!");
            }
            LW_DeathEvent.Call(warrior);
            Output(warrior.WarriorName + " has been lost.");
        }
Ejemplo n.º 2
0
        protected override void DoCommand(string[] args)
        {
            LyokoWarrior warrior = LyokoWarriors.GetByName(args[0].ToLower());

            if (warrior == null)
            {
                throw new CommandException(this, "Invalid warrior!");
                return;
            }
            LW_TranslationEvent.Call(warrior, new APILocation("Brazil"));
            Output(warrior.WarriorName + " translated.");
        }
Ejemplo n.º 3
0
        protected override void DoCommand(string[] args)
        {
            LyokoWarrior warrior = LyokoWarriors.GetByName(args[0].ToLower());

            if (warrior == null)
            {
                throw new CommandException(this, "Invalid warrior!");
            }
            if (!warrior.Statuses.Contains(LW_Status.VIRTUALIZED))
            {
                throw new CommandException(this, "Can't heal warrior!");
            }
            LW_HealEvent.Call(warrior, int.Parse(args[1]));
            Output(warrior.WarriorName + " healed.");
        }
Ejemplo n.º 4
0
        protected override void DoCommand(string[] args)
        {
            LyokoWarrior warrior = LyokoWarriors.GetByName(args[0].ToLower());

            if (warrior == null)
            {
                throw new CommandException(this, "Invalid warrior!");
            }
            if (warrior.CantDevirt)
            {
                throw new CommandException(this, "Can't devirt warrior!");
            }
            LW_DevirtEvent.Call(warrior);
            Output(warrior.WarriorName + " devirtualized.");
        }
Ejemplo n.º 5
0
        protected override void DoCommand(string[] args)
        {
            LyokoWarrior warrior = LyokoWarriors.GetByName(args[0].ToLower());

            if (warrior == null)
            {
                throw new CommandException(this, "invalid warrior!");
                return;
            }

            if (!warrior.Statuses.Contains(LW_Status.VIRTUALIZED))
            {
                throw new CommandException(this, "Can't xanafy warrior!");
                return;
            }
            LW_XanaficationEvent.Call(warrior);
            Output(warrior.WarriorName + " xanafied.");
        }
Ejemplo n.º 6
0
        protected override void DoCommand(string[] args)
        {
            Output("args:" + args[0]);
            LyokoWarrior warrior = null;

            try
            {
                warrior = LyokoWarriors.GetByName(args[0].ToLower());
            }
            catch (Exception e)
            {
                LyokoLogger.Log(Name, e.ToString());
            }
            if (warrior == null)
            {
                Output("no warrior");
                throw new CommandException(this, "invalid warrior!");
            }
            Output("warrior: " + warrior.WarriorName);
            LW_VirtEvent.Call(warrior, "forest");
            Output(warrior.WarriorName + " virtualized.");
        }