Sistem fotoğraftaki gibi bilgi veriyor.
Eğer filesinizde mob info (mobdan düşenleri görme) sistemi mevcutsa bazı kısımlar zaten ekli olacaktır tekrardan eklemenize gerek yok.
Eğer filesinizde mob info (mobdan düşenleri görme) sistemi mevcutsa bazı kısımlar zaten ekli olacaktır tekrardan eklemenize gerek yok.
Ziyaretçiler için gizlenmiş link,görmek için üye olmalısınız!
Giriş yap veya üye ol.
Ziyaretçiler için gizlenmiş link,görmek için üye olmalısınız!
Giriş yap veya üye ol.
Mob Bonus İnfo / Hangi Patrona Hangi Bonus İşler Bilgisi [C++/Python]
Metin2 özel sunucularında gelişmiş oyun deneyimi sunabilmek için bonus sistemleri büyük önem taşır. Özellikle Mob Bonus İnfo sistemi, belirli patronları yendiğinizde hangi bonusların aktif olacağını göstererek oyuncuların stratejilerini planlamasına yardımcı olur. Bu sistem hem C++ hem de Python tabanlı olarak geliştirilebilir ve game core üzerinden entegre edilebilir. Bu yazıda, hangi patrona hangi bonus işlerin yapılabileceği konusunda detaylı bilgi vereceğiz.
Mob Bonus Sisteminin Temeli
Bonus sistemleri, oyuncuların patronları yendikten sonra elde ettiği ödüllerdir. Bu ödüller; para, item, EXP veya geçici güç artışı gibi değişik önceliklere sahip olabilir. Mob Bonus İnfo sistemi, bu bonusların ne zaman ve nasıl aktive edileceğini kontrol eder. Bu sistem genellikle game server programming ile entegre çalışır ve db core üzerinden bonus verilerini saklar.
C++ ile Bonus Sistem Geliştirme
C++ tabanlı sistemlerde bonus işlemleri doğrudan server core üzerinde tanımlanır. Bu sistemlerde, patron öldürme olayı yakalanır ve buna karşılık gelen bonus fonksiyonu çalıştırılır. Örneğin:
void OnMonsterKill(LPCHARACTER ch, LPMONSTER mob)
{
if (mob->IsBoss() && BonusIsActive(mob->GetVnum())) {
ApplyBonus(ch, mob->GetVnum());
}
}
Bu fonksiyon sayesinde, her patrona özel bonus tanımlamaları yapılabilir.
Python ile Bonus Tanımlama ve GUI Kullanımı
Python tarafında bonus verileri JSON benzeri yapılarla saklanabilir ve GUI üzerinden kolayca yönetilebilir. Bu sistemde py root ve uiscript kullanılarak kullanıcı dostu bir arayüz hazırlanabilir. Örnek bir bonus tanımı şu şekilde olabilir:
bonus_data = {
'boss_vnum': 20001,
'bonus_type': 'EXP_BUFF',
'value': 150,
'duration': 3600
}
Bu yapı sayesinde, patronlara özel bonus tanımları kolayca değiştirilebilir.
Hangi Patrona Hangi Bonuslar Uygulanabilir?
1. Orçan: EXP Bonusu – Oyunculara geçici EXP çarpanı sağlar.
2. Devirant: Item Drop Bonusu – Belirli itemların düşme oranını artırır.
3. Queen: Para Bonusu – Gold kazanımını artırır.
4. Tarkan: HP/SP Bonusu – Can ve mana değerlerini geçici olarak artırır.
Bonus Bilgilerini Oyuncuya Gösterme
Mob Bonus İnfo sisteminin etkili bir şekilde kullanılabilmesi için oyuncuların bu bonusları görebilmesi gerekir. Bunun için bir GUI arayüzü geliştirilebilir. Py GUI kullanarak, patron ismi, bonus tipi ve süresi gibi bilgiler gösterilebilir. Bu tür bir arayüz hem pack dosyalarına entegre edilebilir hem de client src üzerinde geliştirilebilir.
Veritabanı Entegrasyonu
Bonus bilgileri DB üzerinde tutulmalıdır. Her patron için bir ID ve ona karşılık gelen bonus verisi saklanabilir. Bu veriler db kısmında tanımlanarak auth ve game sunucuları arasında paylaşılabilir. Böylece bonus bilgileri merkezi olarak yönetilir.
Sonuç
Mob Bonus İnfo sistemi, Metin2 özel sunucularında oyuncuların strateji geliştirmesine yardımcı olan güçlü bir özelliktir. Hem C++ hem de Python ile geliştirilebilen bu sistem, doğru şekilde entegre edildiğinde oyuncu memnuniyetini ve sunucu sadakatini artırır. Martysama ve diğer Metin2Dev kaynakları ile birlikte bu sistemi kendi sunucunuza uyarlamak oldukça kolaydır.
Mob Bonus Info / Which Bonuses Apply to Which Bosses [C++/Python]
In Metin2 private servers, bonus systems are crucial for providing an enhanced gaming experience. Particularly the Mob Bonus Info system helps players plan their strategies by showing which bonuses activate upon defeating specific bosses. This system can be developed using both C++ and Python and integrated into the game core. In this article, we will provide detailed information on which bonuses can be applied to which bosses.
Foundation of the Mob Bonus System
Bonus systems are rewards obtained by players after defeating bosses. These rewards may include money, items, EXP, or temporary power boosts. The Mob Bonus Info system controls when and how these bonuses are activated. It typically works integrated with game server programming and stores bonus data via db core.
Developing Bonus Systems with C++
In C++ based systems, bonus operations are defined directly within the server core. When a boss kill event occurs, the corresponding bonus function is executed. For example:
void OnMonsterKill(LPCHARACTER ch, LPMONSTER mob)
{
if (mob->IsBoss() && BonusIsActive(mob->GetVnum())) {
ApplyBonus(ch, mob->GetVnum());
}
}
With this function, special bonuses can be defined for each boss.
Defining Bonuses with Python and GUI Usage
In Python, bonus data can be stored in JSON-like structures and managed through a user-friendly GUI. Using py root and uiscript, an intuitive interface can be created. An example bonus definition could look like this:
bonus_data = {
'boss_vnum': 20001,
'bonus_type': 'EXP_BUFF',
'value': 150,
'duration': 3600
}
This structure allows easy modification of boss-specific bonus definitions.
Which Bonuses Can Be Applied to Which Bosses?
1. Orchan: EXP Bonus – Provides players with a temporary EXP multiplier.
2. Devirant: Item Drop Bonus – Increases drop rates for certain items.
3. Queen: Money Bonus – Increases gold gain.
4. Tarkan: HP/SP Bonus – Temporarily increases HP and SP values.
Displaying Bonus Info to Players
To effectively use the Mob Bonus Info system, players must be able to see these bonuses. A GUI interface can be developed using Py GUI to display boss names, bonus types, and durations. Such interfaces can be integrated into pack files or developed within client src.
Database Integration
Bonus information should be stored in the database. Each boss can have an ID and corresponding bonus data stored. These records can be defined in the db section and shared between auth and game servers, allowing centralized management of bonus data.
Conclusion
The Mob Bonus Info system is a powerful feature that helps players develop strategies in Metin2 private servers. When properly integrated, it increases player satisfaction and server loyalty. With resources like Martysama and other Metin2Dev sources, adapting this system to your own server is quite straightforward.
