mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
47 lines
2.1 KiB
Plaintext
47 lines
2.1 KiB
Plaintext
/*!
|
|
* Copyright (c) 2020 Aleksej Komarov
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
|
|
/// How many chat payloads to keep in history
|
|
#define CHAT_RELIABILITY_HISTORY_SIZE 5
|
|
/// How many resends to allow before giving up
|
|
#define CHAT_RELIABILITY_MAX_RESENDS 3
|
|
|
|
#define MESSAGE_TYPE_SYSTEM "system"
|
|
#define MESSAGE_TYPE_LOCALCHAT "localchat"
|
|
#define MESSAGE_TYPE_NPCEMOTE "npcemote"
|
|
#define MESSAGE_TYPE_MULTIZCHAT "multizsay"
|
|
#define MESSAGE_TYPE_PLOCALCHAT "plocalchat"
|
|
#define MESSAGE_TYPE_HIVEMIND "hivemind"
|
|
#define MESSAGE_TYPE_RADIO "radio"
|
|
#define MESSAGE_TYPE_ENT_RADIO "entradio"
|
|
#define MESSAGE_TYPE_NIF "nif"
|
|
#define MESSAGE_TYPE_INFO "info"
|
|
#define MESSAGE_TYPE_WARNING "warning"
|
|
#define MESSAGE_TYPE_VORE "vore"
|
|
#define MESSAGE_TYPE_DEADCHAT "deadchat"
|
|
#define MESSAGE_TYPE_OOC "ooc"
|
|
#define MESSAGE_TYPE_LOOC "looc"
|
|
#define MESSAGE_TYPE_ADMINPM "adminpm"
|
|
#define MESSAGE_TYPE_MENTORPM "mentorpm"
|
|
#define MESSAGE_TYPE_COMBAT "combat"
|
|
#define MESSAGE_TYPE_CHATPRINT "chatexport"
|
|
#define MESSAGE_TYPE_ADMINCHAT "adminchat"
|
|
#define MESSAGE_TYPE_PRAYER "prayer"
|
|
#define MESSAGE_TYPE_MODCHAT "modchat"
|
|
#define MESSAGE_TYPE_RLOOC "rlooc"
|
|
#define MESSAGE_TYPE_EVENTCHAT "eventchat"
|
|
#define MESSAGE_TYPE_ADMINLOG "adminlog"
|
|
#define MESSAGE_TYPE_ATTACKLOG "attacklog"
|
|
#define MESSAGE_TYPE_DEBUG "debug"
|
|
|
|
/// Adds a generic box around whatever message you're sending in chat. Really makes things stand out.
|
|
#define boxed_message(str) ("<div class='boxed_message'>" + str + "</div>")
|
|
/// Adds a box around whatever message you're sending in chat. Can apply color and/or additional classes. Available colors: red, green, blue, purple. Use it like red_box
|
|
#define custom_boxed_message(classes, str) ("<div class='boxed_message " + classes + "'>" + str + "</div>")
|
|
/// Makes a fieldset with a neaty styled name. Can apply additional classes.
|
|
#define fieldset_block(title, content, classes) ("<fieldset class='fieldset " + classes + "'><legend class='fieldset_legend'>" + title + "</legend>" + content + "</fieldset>")
|
|
/// Makes a horizontal line with text in the middle
|
|
#define separator_hr(str) ("<div class='separator'>" + str + "</div>")
|