Exemplo n.º 1
0
 public AtmosphereTileTimePrompt(Mobile from, AtmosphereTile tile)
 {
     m_AtmoTile = tile;
     from.SendMessage("Enter the number of seconds for this Atmosphere Tile's refractory period between messages.");
 }
Exemplo n.º 2
0
 public AtmosphereTileEditPrompt(Mobile from, AtmosphereTile tile)
 {
     m_AtmoTile = tile;
     from.SendMessage("Do you wish to edit this Atmosphere Tile's message? (Yes / No) Or, enter 'time' or 'refractory' to edit the tile's refractory period.");
 }
Exemplo n.º 3
0
 public AtmosphereTilePrompt(Mobile from, AtmosphereTile tile)
 {
     m_AtmoTile = tile;
     from.SendMessage("Type and enter the text you wish the Atmosphere Tile to send to anyone who walks over it.");
 }
Exemplo n.º 4
0
        private static void AddAtmosphere_OnCommand(CommandEventArgs e)
        {
            AtmosphereTile removeTile = null;
            foreach (AtmosphereTile tile in AtmosphereTiles)
            {
                if (tile.Owner == e.Mobile)
                {
                    removeTile = tile;
                    continue;
                }
            }
            if (removeTile != null)
            {
                removeTile.Delete();
                e.Mobile.SendMessage("You have an Atmosphere Tile currently in existence. It has been deleted.");
            }

            AtmosphereTile newTile = new AtmosphereTile("", e.Mobile);
            e.Mobile.AddToBackpack(newTile);
            e.Mobile.SendMessage("You have created a new Atmosphere Tile!");
        }