- Create command script now writes to the Log file everytime a Admin creates an environment object.
 - Added a List command script that now lists all environment objects created. 
   * Example: List Realms
   This will list all of the Realms in the game world.
   * Example: List MyRealm>Zones
   This will list all of the Zones within the MyRealm Realm object.
   * Example: List MyRealm>Rooms
   This will list all of the Rooms from every Zone within the MyRealm object.
   * Example: List MyRealm>MyZone>Rooms
   This will list all of the Rooms that are within the MyZone object contained within the MyRealm object.
   * Example: List Players
   This will list all created players, regardless if they are logged into the server or not.
This commit is contained in:
Scionwest_cp 2010-09-04 00:58:31 -07:00
parent de38cbf272
commit 5956c3d264
3 changed files with 149 additions and 0 deletions

View file

@ -82,6 +82,7 @@ public class CommandCreate : IGameCommand
if (validRealm)
{
player.ActiveGame.World.AddRealm(realm);
Log.Write(player.Name + " created a Realm called " + realm.Filename);
player.Send(env[0] + " created.");
}
//Add the 'realm' Field that was instanced via ValidateRealm
@ -105,6 +106,7 @@ public class CommandCreate : IGameCommand
{
player.ActiveGame.World.AddRealm(realm);
player.Send(env[0] + " created.");
Log.Write(player.Name + " created a Realm called " + realm.Filename);
}
Boolean validZone = ValidateZone(env[0], env[1], player);
@ -112,6 +114,7 @@ public class CommandCreate : IGameCommand
{
realm.AddZone(zone);
player.Send(env[1] + " created.");
Log.Write(player.Name + " created a Zone called " + zone.Filename);
}
else
{
@ -131,6 +134,7 @@ public class CommandCreate : IGameCommand
{
player.ActiveGame.World.AddRealm(realm);
player.Send(env[0] + " created.");
Log.Write(player.Name + " created a Realm called " + realm.Filename);
}
Boolean validZone = ValidateZone(env[0], env[1], player);
@ -139,6 +143,7 @@ public class CommandCreate : IGameCommand
{
realm.AddZone(zone);
player.Send(env[1] + " created.");
Log.Write(player.Name + " created a Zone called " + zone.Filename);
}
Boolean validRoom = ValidateRoom(env[0], env[1], env[2], player);
@ -147,6 +152,7 @@ public class CommandCreate : IGameCommand
{
zone.AddRoom(room);
player.Send(env[2] + " created.");
Log.Write(player.Name + " created a Room called " + room.Filename);
}
else
{