History Command

History Command 1.0.1

No permission to download
History Command

Player command to open a gump with the history of what 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!

7U3itle.png
AplCcsZ.png


It's based on the SpeechLog component and requires it to be enabled (Note: it comes enabled 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:
Code:
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:
Code:
m_SpeechLog.Add(e.Mobile, e.Speech);
4 - Bellow that line, add the following line (responsible for auto-refreshing the gump):
Code:
Felladrin.Commands.History.Refresh(this);


Hope you like it. Ideas and suggestions are always welcome!

Felladrin
  • Like
Reactions: zerodowned
Author
Felladrin
Downloads
71
Views
1,105
First release
Last update
Rating
5.00 star(s) 1 ratings

More resources from Felladrin

Back