Explorar o código

remove entity commands tell and play legends of norrath from widgets and signs

Fix #184
Image %!s(int64=3) %!d(string=hai) anos
pai
achega
6d697c0e5c
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      EQ2/source/WorldServer/Spawn.cpp

+ 4 - 1
EQ2/source/WorldServer/Spawn.cpp

@@ -2495,9 +2495,12 @@ void Spawn::InitializeInfoPacketData(Player* spawn, PacketStruct* packet) {
 
 	if (!Alive() && GetTotalHP() > 0 && !IsObject() && !IsGroundSpawn())
 		temp_activity_status = 1;
-
 	temp_activity_status += (IsNPC() || IsObject() || IsGroundSpawn()) ? 1 << 1 : 0;
 	if (version >= 1188) {
+		// Fix widget or sign having 'Play Legends of Norrath' or 'Tell' options in right click (client hard-coded entity commands)
+		if(IsWidget() || IsSign())
+			temp_activity_status = 0xFF;
+
 		if (IsGroundSpawn() || GetShowHandIcon())
 			temp_activity_status += ACTIVITY_STATUS_INTERACTABLE_1188;