History Command

History Command 1.0.1

Author
Felladrin
Downloads
72
Views
1,610
First release
Last update
Rating
0.00 star(s) 0 ratings
No permission to download Join the discussion More information

More resources from Felladrin

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

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back