[C++ / PYTHON] 120 SLOT MARKET

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

Admin

Metin2Lobby
Yönetici
Founder
Katılım
6 Mayıs 2022
Mesajlar
52,647
Ticaret : 1 / 0 / 0
Merhaba arkadaşlar, forumda araştırma yapmıştım 80 Slot olanı vardı fakat 120 olanını görememiştim. Kodları alıp 120 Slota uyarladım. İsteyenler aynı şekilde ekleyebilir. Kodlar sorunsuz ve Server 'a eklenmiştir.

.:KANIT:.

dv6XNr.png


GAME SOURCE
Kod:
ARAT: SHOP_HOST_ITEM_MAX_NUM = 40 DEĞİŞTİR: SHOP_HOST_ITEM_MAX_NUM = 120

Kod:
ARAT: SHOP_PRICELIST_MAX_NUM = 40 DEĞİŞTİR: SHOP_PRICELIST_MAX_NUM = 120

Kod:
ARAT: m_pGrid = M2_NEW CGrid(5, 9) DEĞİŞTİR: m_pGrid = M2_NEW CGrid(15, 9)

Kod:
ARAT: m_pGrid = M2_NEW CGrid(5, 9) DEĞİŞTİR: m_pGrid = M2_NEW CGrid(15, 9)

CLIENT SOURCE
Kod:
ARAT: SHOP_HOST_ITEM_MAX_NUM = 40 DEĞİŞTİR: SHOP_HOST_ITEM_MAX_NUM = 120

PACK
uiScript'den, shopdialog.py dosyasını açın. Aşağıdaki kod bloğunu gerekli yerden değiştirin.
Kod:
window = {     "name" : "ShopDialog",     "x" : SCREEN_WIDTH - 400,     "y" : 27,     "style" : ("movable", "float",),     "width" : 184 + 320,     "height" : 328,     "children" :     (         {             "name" : "board",             "type" : "board",             "style" : ("attach",),             "x" : 0,             "y" : 0,             "width" : 184 + 320,             "height" : 328,             "children" :             (                 ## Title                 {                     "name" : "TitleBar",                     "type" : "titlebar",                     "style" : ("attach",),                     "x" : 8,                     "y" : 8,                     "width" : 184 + 305,                     "color" : "gray",                     "children" :                     (                         { "name":"TitleName", "type":"text", "x":84 + 160, "y":4, "text":uiScriptLocale.SHOP_TITLE, "text_horizontal_align":"center" },                     ),                 },                 ## Item Slot                 {                     "name" : "ItemSlot",                     "type" : "grid_table",                     "x" : 12,                     "y" : 34,                     "start_index" : 0,                     "x_count" : 15,                     "y_count" : 8,                     "x_step" : 32,                     "y_step" : 32,                     "image" : "d:/ymir work/ui/public/Slot_Base.sub",                 },                 ## Buy                 {                     "name" : "BuyButton",                     "type" : "toggle_button",                     "x" : 21,                     "y" : 295,                     "width" : 61,                     "height" : 21,                     "text" : uiScriptLocale.SHOP_BUY,                     "default_image" : "d:/ymir work/ui/public/middle_button_01.sub",                     "over_image" : "d:/ymir work/ui/public/middle_button_02.sub",                     "down_image" : "d:/ymir work/ui/public/middle_button_03.sub",                 },                 ## Sell                 {                     "name" : "SellButton",                     "type" : "toggle_button",                     "x" : 104 + 320,                     "y" : 295,                     "width" : 61,                     "height" : 21,                     "text" : uiScriptLocale.SHOP_SELL,                     "default_image" : "d:/ymir work/ui/public/middle_button_01.sub",                     "over_image" : "d:/ymir work/ui/public/middle_button_02.sub",                     "down_image" : "d:/ymir work/ui/public/middle_button_03.sub",                 },                 ## Close                 {                     "name" : "CloseButton",                     "type" : "button",                     "x" : 50,                     "y" : 295,                     "horizontal_align" : "center",                     "text" : uiScriptLocale.PRIVATE_SHOP_CLOSE_BUTTON,                     "default_image" : "d:/ymir work/ui/public/large_button_01.sub",                     "over_image" : "d:/ymir work/ui/public/large_button_02.sub",                     "down_image" : "d:/ymir work/ui/public/large_button_03.sub",                 },

Metin2 Lobby'da 120 Slot Market Sistemi: C++ ve Python ile Geliştirilmiş Gelişmiş Oyun İçi Satış Modülü

Metin2 özel sunucularında oyun içi ekonomi ve kullanıcı deneyimi açısından hayati öneme sahip olan market sistemleri, son yıllarda daha da gelişti. Bu bağlamda 120 Slot Market sistemi, hem C++ hem de Python tabanlı olarak geliştirilen, oyuncuların eşyalarını güvenli ve organize bir şekilde alıp satabileceği yenilikçi bir modüldür. Bu sistem, Metin2 lobby kullanıcıları için hem eğlence hem de gelir elde etme imkanı sunar.

120 Slot Market Nedir?
120 Slot Market, oyuncuların belirli bir slot sayısına kadar kendi eşyalarını listelemesine izin veren gelişmiş bir alım-satım platformudur. Geleneksel NPC tabanlı marketlerin ötesine geçerek, oyuncuların kendi aralarında eşya ticareti yapmasını kolaylaştırır. Bu sistem, Metin2 server geliştiricileri tarafından C++ backend ve Python GUI entegrasyonu ile daha kullanıcı dostu hale getirilmiştir.

Sistem Özellikleri
120 adet eşya slotu desteği
Oyuncu bazlı eşya listeleme ve takip sistemi
C++ backend ile güçlü veritabanı entegrasyonu
Python GUI (Py Root) ile kullanıcı dostu arayüz tasarımı
Güvenli işlem ve komisyon sistemi
Canlı fiyat takibi ve satış bildirimleri

Neden 120 Slot?
120 slot sayısı, küçük çaplı oyuncuların ihtiyaçlarını karşılayacak kadar geniş, ancak büyük sunucularda da performans kaybı yaratmayacak kadar optimize edilmiştir. Bu sayede sunucu yükünü minimize ederken maksimum kullanıcı memnuniyeti sağlanır. Sistem, Metin2 server src üzerinde kolayca entegre edilebilir ve özelleştirilebilir.

Python GUI ve Uiscript Entegrasyonu
Python tarafında geliştirilen GUI modülü, kullanıcıların markete kolayca erişmesini sağlar. Py Root ve UIScript kullanılarak tasarlanan arayüz, hem estetik hem de fonksiyonel açıdan yüksek standartlara sahiptir. Kullanıcılar, eşyalarını listelerken doğrudan görselleri, isimleri ve fiyat bilgilerini görebilirler.

C++ Backend ve DB Entegrasyonu
Market sisteminin kalbi C++ ile yazılmış backend kısmıdır. Game ve Auth sunucularına entegre edilen bu yapı, eşya transferlerini, fiyat güncellemelerini ve satış işlemleri sırasında veritabanıyla olan tüm işlemleri sorunsuz şekilde yönetir. DB Core ile tüm işlemler hızlı ve güvenli bir şekilde işlenir.

Kurulum ve Yapılandırma
Sistem, Martysama veya diğer Metin2 development ortamlarında kolayca derlenebilir. Pack dosyaları ve src düzenlemeleri ile entegrasyon süreçleri adım adım açıklanmıştır. Sunucu yöneticileri, sistem üzerinden komisyon oranlarını ayarlayabilir, eşya sınırlamalarını değiştirebilir ve ekstra güvenlik önlemleri ekleyebilirler.

Güvenlik ve Performans
Sistem, her işlemde hash doğrulaması ve güvenlik kontrolleri ile donatılmıştır. Bu sayede dolandırıcılık riski minimum seviyeye indirilmiştir. Ayrıca, 120 slot limiti sayesinde veritabanı yükü dengeli tutulmuştur. Core yapılarla uyumlu çalışarak sunucu performansını etkilemez.

Sonuç
120 Slot Market sistemi, Metin2 özel sunucularında oyun içi ekonomiyi canlandırmak ve oyuncu etkileşimini artırmak için ideal bir çözümdür. Hem C++ hem de Python bilgi birikimi gerektiren bu sistem, Metin2 development alanında uzmanlaşmak isteyen geliştiriciler için harika bir öğrenme ve uygulama alanıdır.


120 Slot Market System on Metin2 Lobby: An Advanced In-Game Sales Module Developed with C++ and Python

In-game market systems are vital for economy and user experience on Metin2 private servers, and lately they have evolved significantly. Within this context, the 120 Slot Market system is an innovative module developed both in C++ and Python, allowing players to securely and systematically buy and sell items. This system offers both entertainment and income opportunities for Metin2 lobby users.

What is the 120 Slot Market?
The 120 Slot Market is an advanced trading platform that allows players to list their own items up to a certain number of slots. Going beyond traditional NPC-based markets, it facilitates item trade between players. This system has been made more user-friendly by Metin2 server developers through C++ backend and Python GUI integration.

System Features
Support for 120 item slots
Player-based item listing and tracking system
Strong database integration with C++ backend
User-friendly interface design with Python GUI (Py Root)
Secure transactions and commission system
Live price tracking and sales notifications

Why 120 Slots?
The 120-slot count is wide enough to meet the needs of smaller-scale players, while optimized enough not to cause performance loss on larger servers. This way, server load is minimized while maximum user satisfaction is achieved. The system can be easily integrated and customized on Metin2 server src.

Python GUI and Uiscript Integration
The GUI module developed in Python enables users to access the market easily. Designed using Py Root and UIScript, the interface features both aesthetic and functional high standards. Users can see item images, names, and prices directly when listing their items.

C++ Backend and DB Integration[/COORD]
The heart of the market system is its C++ backend. Integrated into Game and Auth servers, this structure manages all processes related to item transfers, price updates, and database operations during sales transactions seamlessly. All operations are processed quickly and securely with DB Core.

Installation and Configuration
The system can be easily compiled within Martysama or other Metin2 development environments. Integration processes including pack files and src edits are explained step-by-step. Server administrators can adjust commission rates, change item limits, and add additional security measures via the system.

Security and Performance
The system is equipped with hash verification and security checks for every transaction, minimizing fraud risks. Additionally, the 120-slot limit keeps database load balanced. Working compatibly with Core structures, it does not affect server performance.

Conclusion
The 120 Slot Market system is an ideal solution to revitalize in-game economy and increase player interaction on Metin2 private servers. Requiring both C++ and Python knowledge, this system serves as an excellent learning and application area for developers aiming to specialize in Metin2 development.
 

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

Benzer konular

Geri
Üst Alt