View Full Version: .Stats

RunUO.FR Support > System > .Stats


Title: .Stats
Description: pour voir quelques stats du shard.


Shariz - July 28, 2003 12:41 AM (GMT)
Taper .Stats pour voir quelques stats du shard.
Créer par Morgoth.
CODE

// Created by Morgoth
// Created on 02/13/2003 @ 12:03AM EST
// Help by Phantom

using System;
using System.Text;
using System.Reflection;
using System.Collections;
using Server;
using Server.Network;
using Server.Targeting;

namespace Server.Scripts.Commands
{
  public class Stats
  {
     public static void Initialize()
     {
        Server.Commands.Register( "Stats", AccessLevel.Player, new CommandEventHandler( Stats_OnCommand ) );
     }

     public static void Stats_OnCommand( CommandEventArgs e )
     {
        e.Mobile.SendMessage("Joueurs: {0} - Personnages non joueur: {1} - Objets: {2}", NetState.Instances.Count, World.Mobiles.Count, World.Items.Count);
     }
  }
}



Signé : Shariz l'ami des plus petits.




* Hosted for free by InvisionFree