MaviAyGames | Offline Shop LOG

  • Konbuyu başlatan Konbuyu başlatan Admin
  • Başlangıç tarihi Başlangıç tarihi
  • Cevaplar Cevaplar 0
  • Görüntüleme Görüntüleme 50

Admin

Metin2Lobby
Yönetici
Founder
Katılım
6 Mayıs 2022
Mesajlar
52,647
Ticaret : 1 / 0 / 0
2019 yılında yaptığım bir düzenlemenin benzerini paylaşıyorum
Kod:
}         }         StartOfflineShop(shop_id);         owner->SendShops();         return true;     }     return false; }

Üstüne ekle:

Kod:
char pszAction[128];                 sprintf(pszAction, "Nesne Koyuldu %s, Fiyatı: %u", item->GetName(), pTable[i]->price);                 LogManager::instance().OfflineShopLog(owner->GetAID(), owner->GetPlayerID(), owner->GetName(), pszAction, item->GetID(), item->GetName());


shop.cpp
Arat:
Kod:
r_item.pkItem = NULL;             BroadcastUpdateItem(pos);             //RemoveFromMysql(m_pkPC->GetPlayerID(), pos);             if (m_pkPC->IsPrivShop())             {                 LPCHARACTER owner = CHARACTER_MANAGER::instance().FindByPID(m_pkPC->GetPrivShopOwner());                 if (dwPrice > 0)                 {                     std::unique_ptr<SQLMsg> pMsg(DBManager::instance().DirectQuery("INSERT INTO player_gift SET \                     owner_id=%d,vnum=1,count='%d',reason=\"%s\",`from`=replace(\"%s\",' ','_'),status='WAIT',date_add=NOW()",                         m_pkPC->GetPrivShopOwner(), dwPrice, LC_TEXT("SHOP_REASON"), m_pkPC->GetName()));                 }               #ifdef __ENABLE_CHEQUE_SYSTEM__                 if (dwPriceCheque > 0)                 {                     std::unique_ptr<SQLMsg> pMsg(DBManager::instance().DirectQuery("INSERT INTO player_gift SET \                     owner_id=%d,vnum=50027,count='1',socket0='%d',reason=\"%s\",`from`=replace(\"%s\",' ','_'),status='WAIT',date_add=NOW()",                         m_pkPC->GetPrivShopOwner(), dwPriceCheque, LC_TEXT("SHOP_REASON"), m_pkPC->GetName()));                 } #endif                 std::unique_ptr<SQLMsg> (DBManager::instance().DirectQuery("DELETE FROM player_shop_items WHERE shop_id=%d and id = %d", m_pkPC->GetPrivShop(), r_item.itemid));                 std::unique_ptr<SQLMsg> (DBManager::instance().DirectQuery("INSERT INTO log.pazar_gecmis (name, alanname, vnum, gold, cheque, time) values('%s', '%s', %u, %u, %u, now());", m_pkPC->GetName(), ch->GetName(), pkNewItem->GetVnum(), dwPrice, dwPriceCheque));

Altına ekle:
Kod:
char pszAction[256];                 sprintf(pszAction, "Nesne: %s, %u Yanga, %s Adlı Oyuncuya Satıldı", pkNewItem->GetName(), dwPrice, ch->GetName());                 LogManager::instance().OfflineShopLog(m_pkPC->GetAID(), m_pkPC->GetPlayerID(), ch->GetName(), pszAction, pkNewItem->GetID(), pkNewItem->GetName());

MaviAyGames Offline Shop LOG: Metin2 Sunucularında Gelişmiş Alışveriş Sistemi

Metin2 özel sunucu geliştirme dünyasında, oyuncuların deneyim yaşamalarını destekleyen pek çok sistem vardır. Bunlardan birisi de offline shop yani çevrimdışı mağaza sistemidir. Bu yazıda MaviAyGames tarafından geliştirilen Offline Shop LOG sistemini detaylı olarak inceleyeceğiz. Bu sistem, Metin2 özel sunucularında C++ tabanlı game server geliştirme konusunda uzmanlaşmış geliştiricilerin dikkatini çekebilir. Sistem hem Python hem de C++ ile entegre çalışarak server src üzerinde güçlü bir altyapı sunar.

MaviAyGames Offline Shop LOG Nedir?

Bu sistem, oyuncuların oyundan çıkmış olsa bile kendi mağazalarını açmalarını sağlar. Oyuncu, belirli eşyaları mağazaya koyar ve belirli bir fiyatla satış yapar. Sistem, oyuncunun çevrimdışıyken bile eşya alım-satımı yapabilmesini sağlar. Bu da PvP sunucularında ekonomik döngüyü desteklemesi açısından oldukça değerlidir. Sistem loglamayı da desteklediği için tüm işlemler kayıt altına alınır. Bu, hem sunucu sahipleri hem de oyuncular için şeffaflık anlamında büyük kolaylık sağlar.

Sistem Özellikleri:

- Oyuncu mağazası: Çevrimdışıyken bile eşya satış imkanı.
- Loglama: Tüm satış ve satın alma işlemleri kayıt altına alınır.
- Python ve C++ uyumlu yapı.
- Uyarı: Sistem Martysama altyapısına uyumlu olabilir; ancak detaylı test edilmelidir.
- DB entegrasyonu sayesinde veri güvenliği sağlanır.

Kurulum ve Entegrasyon

MaviAyGames Offline Shop LOG sistemi, genellikle Metin2 server src üzerinde game core kısmında değişiklikler yapılarak entegre edilir. Geliştiriciler, auth server ve game server arasında senkronizasyonu sağlayarak sistemin doğru çalışmasını temin eder. Python tarafında py root ve uiscript üzerinde bazı düzenlemeler yapılabilir. Sistem aynı zamanda pack dosyalarına da entegre edilebilir.

Neden Kullanmalısınız?

Bu tür sistemler, Metin2 özel sunucularında oyuncu tutma oranını ciddi şekilde artırır. Özellikle PvP sunucularda eşya dolaşımı ve ekonomik dengenin sağlanması açısından büyük rol oynar. MaviAyGames tarafından geliştirilen bu sistem, hem güvenlik hem de performans açısından optimize edilmiştir. Geliştiricilerin source edit yaparak kendi sunucularına özel uyarlamaları oldukça kolaydır.

Sonuç

MaviAyGames Offline Shop LOG, Metin2 özel sunucularında kullanılabilecek etkili ve gelişmiş bir sistemdir. C++ ve Python tabanlı yapı sayesinde esneklik sağlarken, log sistemi sayesinde tüm işlemler şeffaf bir şekilde takip edilebilir. Metin2Dev toplulukları için önemli bir araçtır ve core sistemlerle uyumlu çalışması açısından da öne çıkar.


MaviAyGames Offline Shop LOG: Advanced Shopping System for Metin2 Servers

In the world of Metin2 private server development, there are many systems that support player experience. One of these is the offline shop system. In this article, we will examine the Offline Shop LOG system developed by MaviAyGames in detail. This system may attract the attention of developers specialized in C++ based game server development for Metin2 private servers. The system works seamlessly with both Python and C++, offering a robust infrastructure over server src.

What is MaviAyGames Offline Shop LOG?

This system allows players to open their own shops even while offline. Players can place specific items into the shop and sell them at set prices. This enables item trading even when the player is disconnected from the game, which is highly valuable in PvP servers to support the economic flow. Since the system also includes logging, all transactions are recorded, providing transparency for both server owners and players.

System Features:

- Player shop: Allows selling items even when offline.
- Logging: All sales and purchase transactions are recorded.
- Compatible with Python and C++.
- Warning: May be compatible with Martysama base, but should be tested thoroughly.
- Ensures data security through DB integration.

Installation and Integration

The MaviAyGames Offline Shop LOG system is typically integrated by making modifications in the game core section of Metin2 server src. Developers ensure proper operation by synchronizing between the auth server and game server. Some adjustments may also be made on py root and uiscript sides using Python. The system can also be integrated into pack files.

Why Should You Use It?

Such systems significantly increase player retention rates in Metin2 private servers. Especially in PvP servers, they play a crucial role in maintaining item circulation and economic balance. Developed by MaviAyGames, this system is optimized for both security and performance. It's easy for developers to customize it according to their own servers through source edit.

Conclusion

MaviAyGames Offline Shop LOG is an effective and advanced system for Metin2 private servers. Its C++ and Python based structure provides flexibility, and its log system ensures transparent tracking of all operations. It is an important tool for Metin2Dev communities and stands out due to its compatibility with core systems.
 

Şuan Bu Konuyu Görüntüleyen Kullanıcılar (Toplam : 0, Üye : 0, Misafir : 0)

Benzer konular

Geri
Üst Alt