MoMore information to items

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

Admin

Metin2Lobby
Yönetici
Founder
Katılım
6 Mayıs 2022
Mesajlar
52,647
Ticaret : 1 / 0 / 0
You can add more information to an item.
text-item.png

Open: uitooltip.py (root)
Search:
def __AppendAttributeInformation(self, attrSlot):
Add before:
→def __textitems(self, itemVnum):
→→if itemVnum == 50011: #Cod item
→→→color1 = 0xffFF7F50
→→→color2 = 0xff00ff00
→→→self.AppendTextLine("Text1", color1)
→→→self.AppendTextLine("Text2", color1)
→→→self.AppendTextLine("Text3", color2)
Search:
self.ShowToolTip()
Add before:
self.__textitems(itemVnum)
self.ShowToolTip() must be before
def __DragonSoulInfoString (self, dwVnum):



For a list of items use the following code
[nfo]→→if itemVnum >= 50011 and itemVnum <= 50020:[/nfo]
Metin2 Özel Sunucularında Öğeler İçin Daha Fazla Bilgi Ekleme Rehberi

Metin2 özel sunucu geliştirme dünyasında oyuncuların deneyimini artırmak, sunucunuzun diğerlerinden ayrılmasını sağlayan temel unsurlardan biridir. Özellikle PvP sistemleri güçlü olan sunucularda, oyuncuların elindeki eşyalar hakkında daha fazla bilgiye sahip olmaları, stratejik kararlar alabilmeleri için kritik öneme sahiptir. Bu yazıda, Metin2 özel sunucularında ögelerin üzerine gelindiğinde veya sağ tıklandığında gösterilen bilgileri nasıl genişleteceğinizi detaylıca inceleyeceğiz.

Neden Daha Fazla Bilgi Gerekir?
Oyun içi eşyalar sadece grafiksel olarak değil, aynı zamanda işlevsel olarak da zenginleştirilmelidir. Oyuncuların bir silahın sadece hasar değerini değil, bonus özelliklerini, PvP etkilerini, özel efektlerini ve hatta tarihsel geçmişini bile görebilmesi, deneyimi daha keyifli hale getirir. Bu, Metin2 PvP sistem tasarımı açısından büyük avantaj sağlar. Örneğin, bir oyuncu belirli bir zırh setini giydiğinde bu setin tüm bonuslarını görsün istiyorsanız, bunu UI Script dosyalarında uygun şekilde tanımlamalısınız.

UI Script ve Py Root Üzerinde Değişiklik Yapmak
Metin2 client tarafında bilgilerin doğru gösterilebilmesi için uiscript ve py root dosyalarında değişiklik yapmanız gerekir. Özellikle itemwnd.py gibi dosyalarda, öğe bilgileri oluşturulur. Burada, herhangi bir item için tooltip fonksiyonuna özel veriler eklenebilir. Örneğin, bir eşyanın PvP攻击力 (PvP攻击力), kritik hasar bonusu veya hasar azaltma gibi değerler doğrudan oyun içi pencerede görünebilir. Bunun için Python GUI sistemini kullanarak arayüzü genişletmeniz gerekir.

Python GUI ve C++ Kod Entegrasyonu
Py GUI kullanarak arayüz tarafında gösterilecek bilgileri düzenleyebilirsiniz. Ancak bu bilgilerin doğru şekilde oyun motorundan alınabilmesi için C++ tarafında yazılmış olan game server kodları ile entegre çalışması gerekir. Metin2 server src üzerinde yapılan değişiklikler sayesinde, örneğin bir itemin PvP bonusu gibi veriler DB üzerinden alınabilir ve istemciye aktarılabilir. Bu süreçte hem game hem de auth sunucularında uyumlu veri akışı sağlanmalıdır.

Martysama ve Diğer Kaynaklar
Metin2 geliştirme konusunda uzmanlaşmış geliştiricilerden biri olan Martysama'nın sağladığı kaynaklar, özellikle C++ system ve source edit işlemleri için oldukça değerlidir. Bu tür kaynaklar sayesinde, özel sunucular için geliştirilen sistemler daha hızlı ve güvenilir hale getirilebilir. Ayrıca, db core ve game core gibi yapıların doğru entegrasyonu için örnek projeler incelenebilir.

Sunucu Paketi Hazırlama ve Dağıtım
Hazırladığınız özelleştirmeleri bir pack haline getirerek kullanıcılar arasında kolayca dağıtabilirsiniz. Bu paketler genellikle client src, server src, py files, db dosyaları ve gerekli yapılandırma ayarlarını içerir. Metin2 compile işlemi sırasında dikkat edilmesi gereken noktalar vardır. Derleme sırasında hata almamak için tüm bağımlılıklar doğru şekilde ayarlanmalıdır.

Sonuç
Metin2 özel sunucularında ögeler için daha fazla bilgi göstermek, hem oyuncu memnuniyetini artırır hem de sunucunuzun rekabet gücünü yükseltir. Bu işlem için hem client hem de server tarafında uyumlu ve doğru yapılandırılmış sistemler gereklidir. Uygun C++ kaynak kod, Python GUI ve DB entegrasyonu ile özgün ve gelişmiş sistemler inşa edebilirsiniz. Geliştirici toplulukları, özellikle Metin2Dev gibi platformlar, bu konularda destek sağlayabilir.


Adding More Information to Items in Metin2 Private Servers

In the world of Metin2 private server development, enhancing player experience is one of the key factors that helps your server stand out from the rest. Especially on servers with strong PvP systems, providing players with more detailed information about their items is crucial for strategic gameplay. In this article, we will examine how to expand the details shown on items when hovering over or right-clicking them in Metin2 private servers.

Why More Information Matters?
Game items should not only be visually appealing but also functionally rich. Players should be able to see not just the damage value of a weapon, but also its bonuses, PvP effects, special attributes, and even historical background. This significantly enhances the gaming experience. From the perspective of Metin2 PvP systems, this approach provides a great advantage. For example, if you want players to see all the bonuses of an armor set upon equipping it, these must be defined correctly within the UI Script files.

Modifying UI Script and Py Root Files
To display correct information on the client side in Metin2, you need to modify the uiscript and py root files. Specifically, in files like itemwnd.py, item tooltips are generated. Here, custom data can be added to the tooltip function for each item. For instance, values such as PvP攻击力, critical hit bonus, or damage reduction can appear directly in the game window. This requires expanding the interface using the Python GUI system.

Integrating Python GUI with C++ Code
You can use Py GUI to customize the information displayed on the user interface. However, for these details to be fetched accurately from the game engine, integration with the C++ server-side code is essential. Modifications to the Metin2 server src allow data such as PvP bonuses of an item to be retrieved from the database and sent to the client. During this process, data flow must remain consistent between both the game and auth servers.

Martysama and Other Resources
Resources provided by experienced developers such as Martysama are highly valuable, especially for C++ system and source edit operations. These resources help make systems developed for private servers faster and more reliable. Additionally, examining sample projects can aid in achieving proper integration of structures like db core and game core.

Packaging and Distributing Your Server
You can package your customizations into a pack to easily distribute among users. These packages typically include client src, server src, py files, db files, and necessary configuration settings. Attention must be paid during the Metin2 compile process. To avoid errors during compilation, dependencies must be properly configured.

Conclusion
Adding more detailed information to items in Metin2 private servers increases player satisfaction and boosts your server’s competitiveness. This requires compatible and well-configured systems on both the client and server sides. With appropriate C++ source code, Python GUI, and DB integration, you can build original and advanced systems. Developer communities, particularly platforms like Metin2Dev, can offer support in these areas.
 

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

Benzer konular

Geri
Üst Alt