Browse Source

Added Popup Messages to RepairItems and RepairAllItems. Clearing 2 TODO's.

devn00b 1 year ago
parent
commit
c8d771f481
1 changed files with 6 additions and 2 deletions
  1. 6 2
      EQ2/source/WorldServer/client.cpp

+ 6 - 2
EQ2/source/WorldServer/client.cpp

@@ -7069,7 +7069,10 @@ void Client::RepairItem(int32 item_id) {
 					SendRepairList();
 			}
 			else {
-				LogWrite(MISC__TODO, 1, "TODO", " Send pop up that says 'Not enough coin.'\n\t(%s, function: %s, line #: %i)", __FILE__, __FUNCTION__, __LINE__);
+				string popup_text = "You do not have enough coin to repair ";
+				string popup_item = item->CreateItemLink(GetVersion()).c_str();
+				popup_text.append(popup_item);
+				SendPopupMessage(10, popup_text.c_str(), "", 3, 0xFF, 0xFF, 0xFF);
 				Message(CHANNEL_MERCHANT, "You do not have enough coin to repair %s.", item->CreateItemLink(GetVersion()).c_str());
 				PlaySound("buy_failed");
 			}
@@ -7105,7 +7108,8 @@ void Client::RepairAllItems() {
 					SendRepairList();
 			}
 			else {
-				LogWrite(MISC__TODO, 1, "TODO", "Send pop up that says 'Not enough coin.'\n\t(%s, function: %s, line #: %i)", __FILE__, __FUNCTION__, __LINE__);
+				string popup_text = "You do not have enough coin to repair all of your items. ";
+				SendPopupMessage(10, popup_text.c_str(), "", 3, 0xFF, 0xFF, 0xFF);
 				SimpleMessage(CHANNEL_MERCHANT, "You do not have enough coin to repair all of your items.");
 				PlaySound("buy_failed");
 			}