Просмотр исходного кода

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

Fix #184
Image 3 лет назад
Родитель
Сommit
6d697c0e5c
1 измененных файлов с 4 добавлено и 1 удалено
  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;