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