Skip to content

Latest commit

 

History

History

History Command

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

History Command

Player command to open a gump with the history of everything they've said and heard from other players.

If you ever needed to read the journal, but couldn't understand anything because of the awful speech hue they've chosen, this script is for you!

It's based on the SpeechLog component and requires it to be activated (Note: it comes activated by default).

The gump auto refreshes whenever someone says something. The auto refresh is turned off when the player start browsing the history, so they have to call the command again to re-enable the auto refresh.

Players names are auto-colored by default, to make it easy to identify who's speaking.

You can easily configure the script on the top of the file:

bool Enabled = true;               // Is this command enabled?
bool AutoRefreshEnabled = true;    // Is the auto refresh enabled?
bool AutoColoredNames = true;      // Should we auto color the players names?
bool OpenGumpOnLogin = true;       // Should we display the gump when player logs in?
int MaxMessagesPerPage = 19;       // How many messages should we display per page?

Installation

  1. Drop the script anywhere inside your Scripts folder
  2. Open PlayerMobile.cs
  3. Find the line: m_SpeechLog.Add(e.Mobile, e.Speech);
  4. Bellow that line, add the following line (responsible for auto-refreshing the gump): Felladrin.Commands.History.Refresh(this);