Add CrossZoneMessagePlayerByGuildID() to Perl/Lua.

This commit is contained in:
Alex
2020-05-10 16:52:33 -04:00
parent 518bcb58d3
commit 857b24727c
7 changed files with 54 additions and 0 deletions
+11
View File
@@ -1933,6 +1933,17 @@ void WorldServer::HandleMessage(uint16 opcode, const EQ::Net::Packet &p)
}
break;
}
case ServerOP_CZMessageGuild:
{
CZMessageGuild_Struct* CZGM = (CZMessageGuild_Struct*)pack->pBuffer;
auto client_list = entity_list.GetClientList();
for (auto client : client_list) {
if (client.second->GuildID() > 0 && client.second->GuildID() == CZGM->GuildID) {
client.second->Message(CZGM->Type, CZGM->Message);
}
}
break;
}
case ServerOP_CZSetEntityVariableByClientName:
{
CZSetEntVarByClientName_Struct* CZCS = (CZSetEntVarByClientName_Struct*)pack->pBuffer;