Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Server Code Submissions

Reply
 
Thread Tools Display Modes
  #1  
Old 10-11-2010, 09:20 PM
Vanicae
Fire Beetle
 
Join Date: May 2010
Posts: 9
Default COMMITTED: Show loot messages in raid

This was a request from Gaeorn. It adds the item loot messages while in a raid.

This doesn't need to be optional does it?

Code:
Index: PlayerCorpse.cpp
===================================================================
--- PlayerCorpse.cpp	(revision 1688)
+++ PlayerCorpse.cpp	(working copy)
@@ -1155,8 +1155,11 @@
 		client->Message_StringID(MT_LootMessages, LOOTED_MESSAGE, link);
 		if(!IsPlayerCorpse()) {
 			Group *g = client->GetGroup();
+			Raid *r = client->GetRaid();
 			if(g != NULL) {
 				g->GroupMessage_StringID(client, MT_LootMessages, OTHER_LOOTED_MESSAGE, client->GetName(), link);
+			} else if (r != NULL) {
+				r->RaidMessage_StringID(client, MT_LootMessages, OTHER_LOOTED_MESSAGE, client->GetName(), link);
 			}
 		}
 		safe_delete_array(link);

Index: raids.cpp
===================================================================
--- raids.cpp	(revision 1701)
+++ raids.cpp	(working copy)
@@ -1369,3 +1369,14 @@
 {
 	return members[index].membername;
 }
+
+
+void Raid::RaidMessage_StringID(Mob* sender, int32 type, int32 string_id, const char* message,const char* message2,const char* message3,const char* message4,const char* message5,const char* message6,const char* message7,const char* message8,const char* message9, int32 distance) {
+	uint32 i;
+	for (i = 0; i < MAX_RAID_MEMBERS; i++) {
+		if(members[i].member) {
+			if(members[i].member != sender)
+				members[i].member->Message_StringID(type, string_id, message, message2, message3, message4, message5, message6, message7, message8, message9, 0);
+		}
+	}
+}


Index: raids.h
===================================================================
--- raids.h	(revision 1701)
+++ raids.h	(working copy)
@@ -146,6 +146,8 @@
 	 *  Actual Implementation Stuff
 	 */
 
+	void	RaidMessage_StringID(Mob* sender, int32 type, int32 string_id, const char* message,const char* message2=0,const char* message3=0,const char* message4=0,const char* message5=0,const char* message6=0,const char* message7=0,const char* message8=0,const char* message9=0, int32 distance = 0);
+
 	void	CastGroupSpell(Mob* caster,uint16 spellid, int32 gid);
 	void	SplitExp(uint32 exp, Mob* other);
 	int32	GetTotalRaidDamage(Mob* other);
Van
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 12:06 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3