[Improvement] Filtered Messages Extension (#4435)

* [Improvment] Filtered Messages Extension

Added:
ItemSpeech 25
Strikethrough 26
Stuns 27
BardSongsOnPets 28

I wired up Strikethrough and Stuns as they already had message entries.

ItemSpeech and BardSongsOnPets do not appear to be currently used in the source.

Note: There are still 5 unknown Filters in RoF2 that need to be investigated:

Achievments
Fellowships
Mercenary Messages
PVP Messages
Spam

* Spelling Error

* Missed some stun calls
This commit is contained in:
Fryguy
2024-07-31 18:28:45 -04:00
committed by GitHub
parent 421767e1e5
commit 2feb05be18
5 changed files with 86 additions and 33 deletions
+6 -1
View File
@@ -3403,6 +3403,11 @@ void Client::ServerFilter(SetServerFilter_Struct* filter){
} else { // these clients don't have a 'self only' filter
Filter1(FilterHealOverTime);
}
Filter1(FilterItemSpeech);
Filter1(FilterStrikethrough);
Filter1(FilterStuns);
Filter1(FilterBardSongsOnPets);
}
// this version is for messages with no parameters
@@ -12700,4 +12705,4 @@ bool Client::TakeMoneyFromPPWithOverFlow(uint64 copper, bool update_client)
SaveCurrency();
RecalcWeight();
return true;
}
}