Table of Contents

Class GuildMessageOfTheDayGate

Namespace
FishMMO.Client
Assembly
FishMMO.Client.dll

Decides when the guild's message of the day is written into chat.

public sealed class GuildMessageOfTheDayGate
Inheritance
GuildMessageOfTheDayGate
Inherited Members

Remarks

The server sends the guild's text to a member every time they connect to a scene server, which is every zone change as well as the login, and again to the whole guild whenever an officer edits it. Printing every copy would repeat the same line at each zone line. So the rule is: once per login, and again only when the text is different from what was last shown — an edit, a new guild, or a different character.

An empty message is remembered but never printed, so a guild that sets one later while the player is online still has it announced.

Methods

Reset()

Forgets what was shown, so the next login announces the message again.

public void Reset()

ShouldAnnounce(long, long, string, out string)

Records a received message of the day and reports whether it should be printed.

public bool ShouldAnnounce(long characterID, long guildID, string messageOfTheDay, out string announceText)

Parameters

characterID long

The local character the text was sent to.

guildID long

The guild the text belongs to.

messageOfTheDay string

The text as received; null is treated as empty.

announceText string

The trimmed text to print, when the result is true.

Returns

bool

True when the line should be written into chat.