[C++/PY]İtemler'de Yohara Level Gereksinimi

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

Admin

Metin2Lobby
Yönetici
Founder
Katılım
6 Mayıs 2022
Mesajlar
52,647
Ticaret : 1 / 0 / 0
Herkese Merhaba;

Offical sunucuya yeni gelen Ay Işıgı itemleri bildiginiz üzere yohara leveli istiyor.

Ancak şuan piysada unpacki paylaşanı bulamadım. Bu sistemi yapanı da hiç bulamadım.

Sistemi kendinize göre düzenleyebilirsiniz.

Bide bizim altın konumuz olsun.

adam gibi adamlar ♥️





284511_32f5048d3c0c3d9b9a96150c995ee6bd.png

284513_38db72bc805c005190dc9a3e42f08721.png

[C++/PY]İtemler'de Yohara Level Gereksinimi

Metin2 özel sunucularında geliştirme yaparken, itemlerin bazı özel özelliklerini değiştirmek veya genişletmek büyük önem taşır. Bu bağlamda, Yohara Level Gereksinimi gibi özel sistemler, oyuncuların belirli itemleri kullanabilmesi için minimum seviye sınırları getirebilir. Bu sistem genellikle C++ tarafında oyun çekirdeğinde (game core), bazen de Python tarafında (py root) kullanıcı arayüzü (UI) ile entegre çalışarak aktif edilir.

Yohara Sistemi Nedir?
Yohara, Metin2 oyununda karakterin belirli bir seviyeye ulaşması durumunda kullanılabilecek eşyaları temsil eder. Bu sistem, özellikle PVP sunucularında dengeyi korumak ve yeni başlayan oyuncuların güçlü itemleri erken aşamada kullanmasını engellemek amacıyla tercih edilir. Örneğin, bir silahın sadece 70. seviye ve üzerindeki karakterler tarafından kullanılabilmesi gibi bir kural tanımlanabilir.

C++ Tarafında Uygulama
Game server tarafında, yani game core üzerinde, item tanım dosyalarında (örneğin item_proto.db) ilgili itemin özel bir alanına (örneğin yohara_level) minimum seviye değeri atanabilir. Sunucu, bir oyuncunun itemi kullanmaya teşebbüs ettiğinde bu alanı kontrol ederek izin verip vermeyeceğine karar verir. Bu işlem için genellikle client src ile senkronize çalışan fonksiyonlar yazılır.

Python Tarafında Entegrasyon
Py GUI veya uiscript tabanlı arayüzlerde, oyuncuya bir itemin Yohara seviyesi bilgisi gösterilmelidir. Bu bilgi, item tooltip'inde yer alarak oyuncunun hangi seviyede hangi itemi kullanabileceğini öğrenmesini sağlar. Bu işlem için py root dosyalarında ilgili arayüz modüllerinde değişiklikler yapılır. Martysama gibi geliştirici dostu yapılar, bu tür entegrasyonları kolaylaştırmaktadır.

Database Entegrasyonu
DB Core üzerinden item verileri yönetildiği için, yohara level bilgisi doğrudan database'e entegre edilmelidir. Bu sayede hem auth server hem de game server bu bilgiyi güvenilir şekilde okuyabilir. Metin2Dev platformları bu tür işlemleri daha verimli hale getirmektedir.

Geliştirme İçin Kaynaklar
Metin2 özel sunucu geliştirme sürecinde source edit işlemleri kaçınılmazdır. Metin2 server src, Metin2 compile süreçleri, bu tür özelleştirmelerin doğru entegrasyonunu sağlar. Geliştiriciler, C++ kaynak kod üzerinde çalışırken aynı zamanda Python GUI sistemlerini de kullanarak hem backend hem frontend tarafında sistemi tamamlayabilirler.

Sonuç
Yohara level sistemi, Metin2 özel sunucularında dengeyi korumak ve oyun içi gelişim hiyerarşisini desteklemek için oldukça faydalıdır. Hem C++ hem de Python tarafında yapılacak küçük ama etkili değişikliklerle bu sistem kolayca entegre edilebilir. Metin2 Lobby olarak bu gibi gelişmiş sistemlerin nasıl uygulanacağını anlatan kaynaklar sunmaya devam ediyoruz.


[C++/PY]Yohara Level Requirement on Items

When developing Metin2 private servers, modifying or expanding certain properties of items becomes crucial. In this context, special systems like Yohara Level Requirement can set minimum level thresholds for players to use specific items. This system is typically implemented on the C++ side within the game core and sometimes integrated with the user interface (UI) via Python scripts on the py root.

What is the Yohara System?
Yohara represents items in Metin2 that can only be used once a character reaches a certain level. This system is especially favored in PVP servers to maintain balance and prevent new players from using powerful items too early. For instance, a weapon might be restricted to characters level 70 and above.

Implementation on the C++ Side
On the game server side, i.e., the game core, minimum level values can be assigned to custom fields (e.g., yohara_level) in the item definition files (such as item_proto.db). The server checks these fields whenever a player attempts to use an item and decides whether to allow it. Functions synchronized with client src are commonly written for this purpose.

Integration on the Python Side
In Py GUI or uiscript-based interfaces, the Yohara level requirement must be displayed to the player. This information appears in the item tooltip, letting the player know which levels they need to reach before they can use specific items. Modifications to the relevant UI modules in py root files are necessary for this. Developer-friendly frameworks like Martysama make such integrations easier.

Database Integration
Since item data is managed through the DB Core, the Yohara level data must be integrated directly into the database. This ensures both the auth server and the game server can reliably read this information. Platforms like Metin2Dev help streamline such operations.

Resources for Development
Source edit processes are inevitable during Metin2 private server development. Metin2 server src and Metin2 compile processes ensure proper integration of such customizations. Developers working with C++ source code can also utilize Python GUI systems to complete both backend and frontend sides of the system effectively.

Conclusion
The Yohara level system is highly beneficial for maintaining balance and supporting in-game progression hierarchies on Metin2 private servers. With small but effective changes made on both C++ and Python sides, this system can be easily integrated. As Metin2 Lobby, we continue to provide resources explaining how such advanced systems can be implemented.
 

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

Geri
Üst Alt