Silent Banners

From MyGamingTalk
Revision as of 20:50, 14 September 2011 by Hellreturn (talk | contribs) (Created page with "The settings file is a file that contains all the information about banners. You can enable banners by using g_settings. '''Description''' This should be set to the name of your...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The settings file is a file that contains all the information about banners. You can enable banners by using g_settings.

Description This should be set to the name of your settings.cfg file if you want to enable banners. See settings documentation for more information about this file.

Example: set g_settings "settings.cfg"

The settings file consists of [banner] blocks (similar to shrubbot). A [banner] block adds a banner to the server banner queue.

A [banner] block has the following fields:

[banner]
message = ^1Check out our banner!
wait = 30
position = bp

The "message" is the actual message that is displayed to all the players on the server. The "wait" field determines when the next banner will be displayed. Setting this to 30 means the next banner will show up 30 seconds after this banner. Setting the wait to 0 means the next banner will be displayed at the same moment as this one. This in combination with the "position" field that determines the position of the banner, allows the same text to be displayed at one time at multiple positions. "position" can have the values chat, cpm (popup), cp (center), bp (banner) or print (console).

The maximum amount of banners is 31 and the maximum length of individual banner is 255 characters.