Daha önce 36 slotlu olanı paylaşıldı bu 24 lü versiyonuz.
______________________
Açılır: game/exchange.cpp
Aratılır:
Değiştirilir:
Açılır: game/exchange.h
Aratılır:
Değiştirilir:
Açılır: UserInterface/PythonExchange.h
Aratılır:
Değiştirilir:
Açılır: pack/uiscript/exchangedialog.py
alttaki link ile değiştirilir;
Metin2 24 Slotlu Ticaret Sistemi: C++ ve Python ile Geliştirilmiş Gelişmiş PvP Entegrasyonu
Metin2 özel sunucularında ticaret sistemi, oyuncuların eşya transferini kolaylaştıran ve PvP odaklı oyun dinamiklerini destekleyen önemli bir özelliktir. Bu yazıda, 24 slotlu ticaret sisteminin C++ ve Python tabanlı geliştirilmesinden bahsedeceğiz. Sistem, Martysama tarzı modifikasyonlarla uyumlu olacak şekilde tasarlanmıştır. Ayrıca, uiscript, py root, pack gibi yapılarla entegre çalışır. Bu sayede hem game server programming hem de client src üzerinde kolayca uygulanabilir.
Ticaret Sistemi Nedir?[/BR][/BR]Ticaret sistemi, iki oyuncunun eşya ve altın transferini güvenli bir şekilde yapmasını sağlar. Orijinal sistem 12 slot sunar. Ancak 24 slotlu sistem, oyuncuların daha fazla eşyayı aynı anda ticaret yapabilmesini sağlar. Bu özellikle PvP sunucularında eşya takası ve değerli itemlerin paylaşımı için oldukça kullanışlıdır. DB tarafında gerekli kontroller yapılarak hile riski minimize edilir.
C++ Tarafında Geliştirme[/BR][/BR]Oyun sunucusunun temel mantığı C++ ile yazılmıştır. Ticaret protokolüne müdahale ederek, maksimum slot sayısını 24'e çıkarmak mümkündür. Bunun için game core dosyalarında değişiklik yapılmalıdır. Özellikle packet yapıları üzerinde çalışarak, hem auth hem de game sunucusu arasında veri akışı optimize edilir. Source edit işlemleri sırasında dikkat edilmesi gereken güvenlik önlemleri, veri doğrulama ve hile engelleme mekanizmalarıdır.
Python Tarafında GUI ve Script Geliştirme[/BR][/BR]Metin2 client tarafında kullanıcı arayüzü Python ile geliştirilir. Py GUI ve UIScript kullanarak, 24 slotlu ticaret penceresi tasarlanabilir. Py Root dosyaları üzerinde trade_slot_24.py gibi bir modül yazarak, arayüzde gerekli buton ve slot tanımlamaları yapılır. Pack dosyasına eklenen bu modül, client tarafında doğrudan çalışır hale gelir. Metin2Dev topluluklarında bu tür scriptler sıkça paylaşılmaktadır.
Sistem Entegrasyonu ve Derleme[/BR][/BR]Tüm geliştirmeler tamamlandıktan sonra, Metin2 server SRC dosyaları derlenerek yeni sistem aktif edilir. Compile işlemi sırasında hata alınmaması için tüm bağlantılar doğru şekilde yapılandırılmalıdır. DB Core ile uyumlu olacak şekilde geliştirilen sistem, sunucu açıldığında otomatik olarak aktif hale gelir. Core yapılar üzerinde yapılan bu değişiklikler, Metin2 PVP Game Source standartlarına uygundur.
Sonuç[/BR][/BR]24 slotlu ticaret sistemi, Metin2 özel sunucularında oyuncuların daha esnek bir şekilde eşya takas yapabilmesini sağlar. C++ ile sunucu tarafında, Python ile client tarafında yapılan değişikliklerle, bu sistem kolayca entegre edilebilir. Martysama tarzı modifikasyonlara uygunluğu sayesinde, Metin2 Lobby gibi topluluklarda büyük ilgi görebilir. Channel sunucularında da test edilerek, PvP deneyimini artırmak mümkün.
Metin2 24-Slot Trade System: Advanced PvP Integration Developed with C++ and Python
In Metin2 private servers, the trade system allows players to transfer items safely and supports PvP-oriented gameplay dynamics. In this article, we will discuss the development of the 24-slot trade system based on C++ and Python. The system is designed to be compatible with modifications similar to Martysama. Additionally, it integrates with structures like uiscript, py root, and pack, allowing easy implementation on both game server programming and client src.
What Is a Trade System?[/BR][/BR]The trade system enables two players to securely exchange items and gold. The original system provides 12 slots. However, the 24-slot system allows players to trade more items simultaneously, which is especially useful in PvP servers for item exchanges and sharing valuable items. Necessary checks are made on the DB side to minimize cheating risks.
Development in C++[/BR][/BR]The core logic of the game server is written in C++. By modifying the trade protocol, the maximum number of slots can be increased to 24. This requires changes in game core files. Especially by working on packet structures, data flow between auth and game servers is optimized. Security measures during source edit operations include data validation and anti-cheating mechanisms.
GUI and Script Development in Python[/BR][/BR]On the client side, the user interface is developed using Python. With Py GUI and UIScript, a 24-slot trade window can be designed. By creating a module like trade_slot_24.py in Py Root files, necessary button and slot definitions are made in the UI. This module, added to the pack file, becomes executable directly on the client side. Such scripts are frequently shared within Metin2Dev communities.
System Integration and Compilation[/BR][/BR]After all developments are completed, the Metin2 server SRC files are compiled to activate the new system. During the compile process, all connections must be properly configured to avoid errors. The system developed to be compatible with DB Core automatically activates when the server starts. These changes made on core structures comply with Metin2 PVP Game Source standards.
Conclusion[/BR][/BR]The 24-slot trade system allows more flexible item trading among players in Metin2 private servers. Through modifications made on the server-side with C++ and client-side with Python, this system can be easily integrated. Its compatibility with modifications similar to Martysama makes it highly attractive in communities such as Metin2 Lobby. It can also be tested across channel servers to enhance the PvP experience.
______________________
Açılır: game/exchange.cpp
Aratılır:
Kod:
m_pGrid = M2_NEW CGrid(4,3);
Değiştirilir:
Kod:
m_pGrid = M2_NEW CGrid(6,4);
Açılır: game/exchange.h
Aratılır:
Kod:
EXCHANGE_ITEM_MAX_NUM = 12
Değiştirilir:
Kod:
EXCHANGE_ITEM_MAX_NUM = 24
Açılır: UserInterface/PythonExchange.h
Aratılır:
Kod:
EXCHANGE_ITEM_MAX_NUM = 12
Değiştirilir:
Kod:
EXCHANGE_ITEM_MAX_NUM = 24
Açılır: pack/uiscript/exchangedialog.py
alttaki link ile değiştirilir;
Ziyaretçiler için gizlenmiş link,görmek için üye olmalısınız!
Giriş yap veya üye ol.
Alternatif link için
Ziyaretçiler için gizlenmiş link,görmek için üye olmalısınız!
Giriş yap veya üye ol.
'ya teşekkürler.Metin2 24 Slotlu Ticaret Sistemi: C++ ve Python ile Geliştirilmiş Gelişmiş PvP Entegrasyonu
Metin2 özel sunucularında ticaret sistemi, oyuncuların eşya transferini kolaylaştıran ve PvP odaklı oyun dinamiklerini destekleyen önemli bir özelliktir. Bu yazıda, 24 slotlu ticaret sisteminin C++ ve Python tabanlı geliştirilmesinden bahsedeceğiz. Sistem, Martysama tarzı modifikasyonlarla uyumlu olacak şekilde tasarlanmıştır. Ayrıca, uiscript, py root, pack gibi yapılarla entegre çalışır. Bu sayede hem game server programming hem de client src üzerinde kolayca uygulanabilir.
Ticaret Sistemi Nedir?[/BR][/BR]Ticaret sistemi, iki oyuncunun eşya ve altın transferini güvenli bir şekilde yapmasını sağlar. Orijinal sistem 12 slot sunar. Ancak 24 slotlu sistem, oyuncuların daha fazla eşyayı aynı anda ticaret yapabilmesini sağlar. Bu özellikle PvP sunucularında eşya takası ve değerli itemlerin paylaşımı için oldukça kullanışlıdır. DB tarafında gerekli kontroller yapılarak hile riski minimize edilir.
C++ Tarafında Geliştirme[/BR][/BR]Oyun sunucusunun temel mantığı C++ ile yazılmıştır. Ticaret protokolüne müdahale ederek, maksimum slot sayısını 24'e çıkarmak mümkündür. Bunun için game core dosyalarında değişiklik yapılmalıdır. Özellikle packet yapıları üzerinde çalışarak, hem auth hem de game sunucusu arasında veri akışı optimize edilir. Source edit işlemleri sırasında dikkat edilmesi gereken güvenlik önlemleri, veri doğrulama ve hile engelleme mekanizmalarıdır.
Python Tarafında GUI ve Script Geliştirme[/BR][/BR]Metin2 client tarafında kullanıcı arayüzü Python ile geliştirilir. Py GUI ve UIScript kullanarak, 24 slotlu ticaret penceresi tasarlanabilir. Py Root dosyaları üzerinde trade_slot_24.py gibi bir modül yazarak, arayüzde gerekli buton ve slot tanımlamaları yapılır. Pack dosyasına eklenen bu modül, client tarafında doğrudan çalışır hale gelir. Metin2Dev topluluklarında bu tür scriptler sıkça paylaşılmaktadır.
Sistem Entegrasyonu ve Derleme[/BR][/BR]Tüm geliştirmeler tamamlandıktan sonra, Metin2 server SRC dosyaları derlenerek yeni sistem aktif edilir. Compile işlemi sırasında hata alınmaması için tüm bağlantılar doğru şekilde yapılandırılmalıdır. DB Core ile uyumlu olacak şekilde geliştirilen sistem, sunucu açıldığında otomatik olarak aktif hale gelir. Core yapılar üzerinde yapılan bu değişiklikler, Metin2 PVP Game Source standartlarına uygundur.
Sonuç[/BR][/BR]24 slotlu ticaret sistemi, Metin2 özel sunucularında oyuncuların daha esnek bir şekilde eşya takas yapabilmesini sağlar. C++ ile sunucu tarafında, Python ile client tarafında yapılan değişikliklerle, bu sistem kolayca entegre edilebilir. Martysama tarzı modifikasyonlara uygunluğu sayesinde, Metin2 Lobby gibi topluluklarda büyük ilgi görebilir. Channel sunucularında da test edilerek, PvP deneyimini artırmak mümkün.
Metin2 24-Slot Trade System: Advanced PvP Integration Developed with C++ and Python
In Metin2 private servers, the trade system allows players to transfer items safely and supports PvP-oriented gameplay dynamics. In this article, we will discuss the development of the 24-slot trade system based on C++ and Python. The system is designed to be compatible with modifications similar to Martysama. Additionally, it integrates with structures like uiscript, py root, and pack, allowing easy implementation on both game server programming and client src.
What Is a Trade System?[/BR][/BR]The trade system enables two players to securely exchange items and gold. The original system provides 12 slots. However, the 24-slot system allows players to trade more items simultaneously, which is especially useful in PvP servers for item exchanges and sharing valuable items. Necessary checks are made on the DB side to minimize cheating risks.
Development in C++[/BR][/BR]The core logic of the game server is written in C++. By modifying the trade protocol, the maximum number of slots can be increased to 24. This requires changes in game core files. Especially by working on packet structures, data flow between auth and game servers is optimized. Security measures during source edit operations include data validation and anti-cheating mechanisms.
GUI and Script Development in Python[/BR][/BR]On the client side, the user interface is developed using Python. With Py GUI and UIScript, a 24-slot trade window can be designed. By creating a module like trade_slot_24.py in Py Root files, necessary button and slot definitions are made in the UI. This module, added to the pack file, becomes executable directly on the client side. Such scripts are frequently shared within Metin2Dev communities.
System Integration and Compilation[/BR][/BR]After all developments are completed, the Metin2 server SRC files are compiled to activate the new system. During the compile process, all connections must be properly configured to avoid errors. The system developed to be compatible with DB Core automatically activates when the server starts. These changes made on core structures comply with Metin2 PVP Game Source standards.
Conclusion[/BR][/BR]The 24-slot trade system allows more flexible item trading among players in Metin2 private servers. Through modifications made on the server-side with C++ and client-side with Python, this system can be easily integrated. Its compatibility with modifications similar to Martysama makes it highly attractive in communities such as Metin2 Lobby. It can also be tested across channel servers to enhance the PvP experience.
