Exemplo n.º 1
0
        public override void Execute(Characters.Character caller, string[] args)
        {
            if (args.Length != 0)
            {
                ShowSyntax(caller);
            }
            else
            {
                caller.Notify("[Online]");

                foreach (var loopCharacter in GameServer.Characters)
                {
                    caller.Notify("   -" + loopCharacter.Value.Name);
                }
            }
        }
Exemplo n.º 2
0
 public override void Execute(Characters.Character caller, string[] args)
 {
     if (args.Length != 0)
     {
         ShowSyntax(caller);
     }
     else
     {
         caller.Notify("X: " + caller.Position.X + ", Y: " + caller.Position.Y);
     }
 }
Exemplo n.º 3
0
 public override void Execute(Characters.Character caller, string[] args)
 {
     if (args.Length != 1)
     {
         ShowSyntax(caller);
     }
     else
     {
         if (MapleData.CachedFields.Contains(int.Parse(args[0])))
         {
             caller.SetField(int.Parse(args[0]));
         }
         else
         {
             caller.Notify("[Command] Invalid map.");
         }
     }
 }
Exemplo n.º 4
0
        public override void Execute(Characters.Character caller, string[] args)
        {
            if (args.Length != 1)
            {
                ShowSyntax(caller);
            }
            else
            {
                Characters.Character victim = GameServer.GetCharacter(args[0]);

                if (victim == null)
                {
                    caller.Notify("[Command] Unable to locate '" + args[0] + ".");
                    return;
                }

                caller.SetField(victim.Field.MapleID, victim.ClosestSpawnPoint.ID);
            }
        }
Exemplo n.º 5
0
        public override void Execute(Characters.Character caller, string[] args)
        {
            if (args.Length != 1)
            {
                ShowSyntax(caller);
            }
            else
            {
                int amount = 0;

                if (int.TryParse(args[0], out amount))
                {
                    caller.Meso = amount;
                }
                else
                {
                    caller.Notify("[Command] Invalid amount.");
                }
            }
        }
Exemplo n.º 6
0
        public override void Execute(Characters.Character caller, string[] args)
        {
            if (args.Length == 0)
            {
                ShowSyntax(caller);
            }
            else
            {
                using (Packet outPacket = new Packet())
                {
                    foreach (string s in args)
                    {
                        outPacket.WriteHexString(s);
                    }

                    caller.Notify("[Command] Sent: " + outPacket.ToString());

                    caller.Client.Send(outPacket);
                }
            }
        }