Sistemin işleyişi
GM hesapla oyun içerisinden /e pazar_mesafe <x - x>
x yazan aralığı kendinize göre belirleyip kurulan pazarların bir birine çok yakın olmamasını sağlayabilirsiniz.
GM hesapla oyun içerisinden /e pazar_mesafe <x - x>
x yazan aralığı kendinize göre belirleyip kurulan pazarların bir birine çok yakın olmamasını sağlayabilirsiniz.
Kod:
service.h //eklenir #define ENABLE_SHOP_DISTANCE //entity_view.cpp açılır //aratılır void operator () (LPENTITY ent) //değiştirilir void operator () (LPENTITY ent) { if (!ent->IsType(ENTITY_OBJECT)) if (DISTANCE_APPROX(ent->GetX() - m_me->GetX(), ent->GetY() - m_me->GetY()) > dwViewRange) return; #ifdef ENABLE_SHOP_DISTANCE if (ent->IsType(ENTITY_CHARACTER) && m_me->IsType(ENTITY_CHARACTER)) { LPCHARACTER chMe = (LPCHARACTER)m_me; LPCHARACTER chEnt = (LPCHARACTER)ent; DWORD ViewRange = quest::CQuestManager::instance().GetEventFlag("pazar_mesafe"); if (ViewRange>0 && DISTANCE_APPROX(ent->GetX() - m_me->GetX(), ent->GetY() - m_me->GetY()) > ViewRange && chMe->IsPC() && chEnt->IsNPC() && //Shop Dekorasyon sistemi yoksa chEnt->GetRaceNum() == 30000 aktif edin diğerini kapatın. //chEnt->GetRaceNum() == 30000 chEnt->GetRaceNum() >= 30000 && chEnt->GetRaceNum() <= 30007 ) return; } #endif m_me->ViewInsert(ent);
Ziyaretçiler için gizlenmiş link,görmek için üye olmalısınız!
Giriş yap veya üye ol.
Offline Shop & Pazarlar Arasındaki Mesafe Nedir?
Metin2 özel sunucularında oyun içi ekonomi ve kullanıcı deneyimi açısından kritik öneme sahip olan Offline Shop (Çevrimdışı Mağaza), oyuncuların sunucuda aktif değilken bile eşya ve para alıp verebilmesini sağlar. Ancak bu sistemin entegrasyonu sırasında Pazar (Market) sistemiyle olan mesafe ve etkileşim dikkatlice yönetilmelidir.
Pazar Sistemi Nedir?
Metin2 özel sunucularında Pazar, oyuncuların kendi eşyalarını doğrudan diğer oyunculara satmalarına olanak tanıyan bir sistemdir. Bu sistem genellikle Martysama veya C++ tabanlı sistemlerle entegre edilir. Oyuncular, belirli bir komutla veya bir NPC ile etkileşime girerek eşyalarını listeler ve diğer oyuncular bu eşyaları satın alabilir. Pazar, oyun içi ekonomide büyük rol oynar çünkü gerçek oyuncu arasında takas gerçekleşir.
Offline Shop Nedir?
Offline Shop, oyuncuların sunucudan çıkmış olsa bile eşyalarını satışa sunabildiği, belirli bir sistem üzerinden otomatik olarak işlem yapabildiği bir yapıdır. Genellikle Python veya C++ tabanlı modüllerle geliştirilir ve veritabanı (DB) üzerinden çalışır. Bu sayede oyuncular, sunucuda aktif olmadan bile gelir elde edebilirler.
Aradaki Fark ve Uyum
Pazar ve Offline Shop sistemleri farklı amaçlarla geliştirilmiş olsa da, bazı yönlerden çakışabilirler. Örneğin bir oyuncu hem pazar sistemi üzerinden hem de offline shop üzerinden aynı eşyayı satıyorsa bu durum ekonomide dengesizlik yaratabilir. Bu nedenle geliştiriciler, bu iki sistemi channel bazlı veya sunucu ayarları ile birbirinden izole edebilirler. Auth ve game server yapılandırmalarında bu sistemlerin senkron çalışması önemlidir.
Ekonomik Etkiler
Metin2 özel sunucularında ekonomi dengesi hayati öneme sahiptir. Offline Shop ve Pazar sistemleri birlikte çalıştığında, eşyaların fiyatlanması ve arz-talep dengesi dikkatle yönetilmelidir. Aksi takdirde sunucu içi ekonomi bozulabilir. Özellikle source edit ile yapılan değişikliklerde bu konulara dikkat edilmelidir. Core yapılar (game core, db core) üzerinden yapılan ayarlamalarla bu sistemler daha kontrollü hale getirilebilir.
Teknik Entegrasyon
C++ system ve Python GUI kullanılarak geliştirilen offline shop sistemleri, genellikle uiscript ve py root dosyaları üzerinden oyun istemcisine entegre edilir. Bu sistemlerin doğru çalışabilmesi için client src üzerinde değişiklik yapılması gerekebilir. Metin2 server src üzerinde yapılan derleme (compile) işlemleriyle bu modüller sunucuya entegre edilir. Geliştiriciler, bu süreçte Martysama gibi frameworklerden faydalanabilir.
Sonuç
Metin2 özel sunucularında Offline Shop ve Pazar sistemleri, kullanıcı deneyimini zenginleştirirken aynı zamanda ekonomik dengenin korunması açısından titizlikle yönetilmelidir. Bu sistemlerin teknik yapıları ve birbiriyle olan etkileşimleri, server programming, source edit ve core yapılar üzerinden optimize edilmelidir.
What is the Distance Between Offline Shop & Markets?
In Metin2 private servers, the Offline Shop system holds critical importance for in-game economy and user experience. It allows players to buy and sell items even while they are not logged into the server. However, during its integration, the distance and interaction with the Market system must be carefully managed.
What is the Market System?
In Metin2 private servers, Market is a system that allows players to sell their items directly to other players. This system is usually integrated with Martysama or C++-based frameworks. Players can list their items through specific commands or interactions with NPCs, and other players can purchase them. The Market plays a significant role in the in-game economy by enabling real player-to-player exchanges.
What is Offline Shop?
Offline Shop is a structure that allows players to sell their items even while they are logged out from the server, enabling automated transactions through a certain system. Usually developed using Python or C++ modules, it operates via a database (DB). Thus, players can earn income without being active on the server.
Differences and Harmony
Although the Market and Offline Shop systems were developed for different purposes, they may overlap in some aspects. For instance, if a player sells the same item both through the market and the offline shop, this could cause imbalances in the economy. Therefore, developers may isolate these two systems based on channel settings or server configurations. It's important that these systems work in sync within auth and game server setups.
Economic Effects
In Metin2 private servers, economic balance is of vital importance. When the Offline Shop and Market systems operate together, item pricing and supply-demand balance must be carefully managed. Otherwise, the in-game economy could become unstable. Special attention should be paid to these issues during modifications made via source edit. Adjustments made through core structures (game core, db core) can help control these systems more effectively.
Technical Integration
Offline shop systems developed using C++ system and Python GUI are generally integrated into the game client through uiscript and py root files. Proper functioning of these systems may require modifications to the client src. These modules are integrated into the server through compilation (compile) processes on the Metin2 server src. Developers can utilize frameworks like Martysama during this process.
Conclusion
In Metin2 private servers, Offline Shop and Market systems enrich the user experience while also requiring careful management to maintain economic balance. The technical structures and interactions between these systems should be optimized through server programming, source edit, and core structures.
