Add AdventureBot social interactions and player-led groups

This commit is contained in:
Nico committed 2026-10-28 01:11:54 +01:00
1 parent 39a515dbd1
commit e333f2f9fc
29 files changed
+2003 -29

No files matched your search

+7
View File
@@ -16,6 +16,7 @@
*/
#include "WorldSession.h"
#include "ClientlessPlayerMgr.h"
#include <cstdlib>
#include "AccountMgr.h"
@@ -104,6 +105,7 @@ void WorldSession::HandleMessagechatOpcode(WorldPacket& recvData)
}
Player* sender = GetPlayer();
sClientlessPlayerMgr->MarkActivity(sender);
//TC_LOG_DEBUG("misc", "CHAT: packet received. type %u, lang %u", type, lang);
@@ -569,6 +571,7 @@ void WorldSession::HandleMessagechatOpcode(WorldPacket& recvData)
void WorldSession::HandleAddonMessagechatOpcode(WorldPacket& recvData)
{
Player* sender = GetPlayer();
sClientlessPlayerMgr->MarkActivity(sender);
ChatMsg type;
switch (recvData.GetOpcode())
@@ -808,6 +811,7 @@ void WorldSession::HandleSendTextEmoteOpcode(WorldPackets::Chat::SendTextEmote&
return;
}
sClientlessPlayerMgr->MarkActivity(GetPlayer());
sScriptMgr->OnPlayerTextEmote(GetPlayer(), packet.SoundIndex, packet.EmoteID, packet.Target);
EmotesTextEntry const* em = sEmotesTextStore.LookupEntry(packet.EmoteID);
@@ -848,6 +852,9 @@ void WorldSession::HandleSendTextEmoteOpcode(WorldPackets::Chat::SendTextEmote&
GetPlayer()->UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_DO_EMOTE, packet.EmoteID, 0, 0, unit);
if (unit && unit->ToPlayer())
sClientlessPlayerMgr->TextEmote(_player, unit->ToPlayer(), packet.EmoteID);
//Send scripted event call
if (unit && unit->GetTypeId() == TYPEID_UNIT && ((Creature*)unit)->AI())
((Creature*)unit)->AI()->ReceiveEmote(GetPlayer(), packet.EmoteID);