Added optional guildid and minstatus parameters to quest::gmsay(<messsage>, [color], [toworld], [guildid], [minstatus])

This commit is contained in:
Derision
2013-02-17 10:19:12 +00:00
parent 15dc9cfaf4
commit d1afad47aa
4 changed files with 21 additions and 12 deletions
+6 -7
View File
@@ -526,13 +526,12 @@ void QuestManager::shout2(const char *str) {
worldserver.SendEmoteMessage(0,0,0,13, "%s shouts, '%s'", owner->GetCleanName(), str);
}
void QuestManager::gmsay(const char *str, uint32 color, bool send_to_world) {
if(send_to_world) {
worldserver.SendEmoteMessage(0, 0, 80, color, "%s", str);
}
else {
entity_list.MessageStatus(0, 80, color, "%s", str);
}
void QuestManager::gmsay(const char *str, uint32 color, bool send_to_world, uint32 to_guilddbid, uint32 to_minstatus)
{
if(send_to_world)
worldserver.SendEmoteMessage(0, to_guilddbid, to_minstatus, color, "%s", str);
else
entity_list.MessageStatus(to_guilddbid, to_minstatus, color, "%s", str);
}
void QuestManager::depop(int npc_type) { // depop NPC and don't start spawn timer