Skip to content

Instantly share code, notes, and snippets.

@Salja
Salja / nameannounce.patch
Created November 12, 2014 12:28
.nameannounce V1.0
diff --git a/src/game/Chat.cpp b/src/game/Chat.cpp
index b1faba6..660367b 100644
--- a/src/game/Chat.cpp
+++ b/src/game/Chat.cpp
@@ -725,6 +725,7 @@ ChatCommand* ChatHandler::getCommandTable()
{ "aura", SEC_ADMINISTRATOR, false, &ChatHandler::HandleAuraCommand, "", NULL },
{ "unaura", SEC_ADMINISTRATOR, false, &ChatHandler::HandleUnAuraCommand, "", NULL },
{ "announce", SEC_MODERATOR, true, &ChatHandler::HandleAnnounceCommand, "", NULL },
+ { "nameannounce", SEC_MODERATOR, false, &ChatHandler::HandleNameAnnounceCommand, "", NULL },
{ "notify", SEC_MODERATOR, true, &ChatHandler::HandleNotifyCommand, "", NULL },
@Salja
Salja / autobroadcast.patch
Created November 11, 2014 08:06
AutoBroadcast System V1.0
diff --git a/src/game/Language.h b/src/game/Language.h
index d408bfd..cfc1a5d 100644
--- a/src/game/Language.h
+++ b/src/game/Language.h
@@ -1017,6 +1017,8 @@ enum MangosStrings
// FREE IDS 1700-9999
+ LANG_AUTO_BROADCAST = 1700,
+
@Salja
Salja / gm_chat_color.patch
Last active August 29, 2015 14:09
GameMaster Color Chat System Version 1.0
diff --git a/src/game/ChatHandler.cpp b/src/game/ChatHandler.cpp
index 9af048a..d94409a 100644
--- a/src/game/ChatHandler.cpp
+++ b/src/game/ChatHandler.cpp
@@ -24,6 +24,7 @@
#include "Opcodes.h"
#include "ObjectMgr.h"
#include "Chat.h"
+#include "Config/Config.h"
#include "Database/DatabaseEnv.h"