Browse Source

partial fix to classic lifts -- still fall through see issue #155

Partially addressing issue #155
Image 3 years ago
parent
commit
e8bf4be00f
2 changed files with 6 additions and 1 deletions
  1. 5 0
      EQ2/source/WorldServer/Spawn.cpp
  2. 1 1
      server/SpawnStructs.xml

+ 5 - 0
EQ2/source/WorldServer/Spawn.cpp

@@ -2451,6 +2451,11 @@ void Spawn::InitializeInfoPacketData(Player* spawn, PacketStruct* packet) {
 		temp_activity_status = appearance.activity_status;
 
 		temp_activity_status = 0xFF;
+
+		// this only partially fixes lifts in classic 283 client if you move just as the lift starts to move
+		if (appearance.icon == 28 || appearance.icon == 12)
+			packet->setDataByName("is_transport", 1);
+
 		if (MeetsSpawnAccessRequirements(spawn))
 			packet->setDataByName("hand_icon", appearance.display_hand_icon);
 		else {

+ 1 - 1
server/SpawnStructs.xml

@@ -373,7 +373,7 @@
 <Data ElementName="no_arrow_color_or_healthbar" Type="int8" Size="1" /> <!-- 37 -->
 <Data ElementName="hand_icon" Type="int8" Size="1" /> <!-- 38   127 -->
 <Data ElementName="hide_health" Type="int8" Size="1" /> <!-- 39 -->
-<Data ElementName="unknown15" Type="int8" Size="1" /> <!-- 40 -->
+<Data ElementName="is_transport" Type="int8" Size="1" /> <!-- 40 -->
 <Data ElementName="house_icon" Type="int8" Size="1" /> <!-- 41 -->
 <Data ElementName="in_combat" Type="int8" Size="1" /> <!-- 42 -->
 <Data ElementName="afk" Type="int8" Size="1" /> <!-- 43 -->