Metin2 Exchange Logs - Log-uri in Navicat negot
Cu ajutorul modificarilor de mai jos vei adauga un tabel nou in Navicat: player_exchange unde se vor stoca toate logurile de la toate negoturile de pe server.
In acest tabel se vor stoca atat obiectele negociate cat si yang-ul!
*Link download:
Deschide exchange.cpp si cautam:
bool CExchange::Done()Acum, cautam:
if (item->GetVnum() >= 80003 && item->GetVnum() <= 80007)
{
LogManager::instance().GoldBarLog(victim->GetPlayerID(), item->GetID(), EXCHANGE_TAKE, "");
LogManager::instance().GoldBarLog(GetOwner()->GetPlayerID(), item->GetID(), EXCHANGE_GIVE, "");
}Cautam:
if (m_lGold)
Compilam si mergem in Navicat > Player. Aici cream urmatorul tabel:
In caz ca primesti eroare la compilare: modifica toate unique_ptr cu auto_ptr


la acest mesaj și conținutul se va afișa automat.



![[C++] Exchange Logs | Log-uri Negot - Mesaj 2 - Imagine 1 [C++] Exchange Logs | Log-uri Negot - Mesaj 2 - Imagine 1](https://i.gyazo.com/5911ab123ee1fa8ae613bea41adfb8e7.png)
![[C++] Exchange Logs | Log-uri Negot - Mesaj 2 - Imagine 2 [C++] Exchange Logs | Log-uri Negot - Mesaj 2 - Imagine 2](https://i.gyazo.com/0f8f8b0fc308c7340ab47d9573ea6cd8.png)