Browse Source

support for examining objects/items in a house

Image 3 years ago
parent
commit
b440312d72
1 changed files with 18 additions and 1 deletions
  1. 18 1
      EQ2/source/WorldServer/client.cpp

+ 18 - 1
EQ2/source/WorldServer/client.cpp

@@ -8584,7 +8584,24 @@ bool Client::HandleHouseEntityCommands(Spawn* spawn, int32 spawnid, string comma
 	if (GetCurrentZone()->GetInstanceType() != PERSONAL_HOUSE_INSTANCE)
 		return false;
 
-	if (!HasOwnerOrEditAccess())
+	if (command == "house_spawn_examine")
+	{
+		uint32 itemID = spawn->GetPickupItemID();
+		if (itemID)
+		{
+
+			Item* item = master_item_list.GetItem(itemID);
+			if (item)
+			{
+				EQ2Packet* app = item->serialize(GetVersion(), true, GetPlayer());
+				//DumpPacket(app);
+				QueuePacket(app);
+			}
+
+		}
+		return true;
+	}
+	else if (!HasOwnerOrEditAccess())
 	{
 		//SimpleMessage(CHANNEL_COLOR_RED, "This is not your home!");
 		return false;