[C++]5. Bonus

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

Admin

Metin2Lobby
Yönetici
Founder
Katılım
6 Mayıs 2022
Mesajlar
52,647
Ticaret : 1 / 0 / 0
Arkadaşlar bir kaç kişiden duyduğum bir şey var.
Bunu 5. mi yapabiliyoruz sadece?
5 yapınca kutsama küresi çöpe mi atıcaz?
Gibi şeyler duydum.. Bire bir iletişime geçenler oldu.


Şunu belirmek isterim,
Ben sadece aşağıda örnek olarak 4'ü 5 yapın dedim.
İsterseniz 4'ü 7 yaparsınız ve kutsama küresine vs ihtiyaç duymadan herşeyi halledebilirsiniz.
Extra'dan Kutsama küresi almak gibi bir durum olmuyor. Kutsama küresini komple serverdan kaldırabilirsiniz
ve
Sade bir görünüm kazanır.


char_item.cpp

Açın.

Aratın

Kod:
case USE_ADD_ATTRIBUTE :

ve bunu bulun

Kod:
if(item2->GetAttributeCount()<4)

Bununla Değiştirin

Kod:
if(item2->GetAttributeCount()<5)

Hayırlı olsun..​

Metin2 Oyunu İçin C++ Bonus Sistemi Nasıl Geliştirilir?

Bonus Sisteminin Amacı ve Kullanımı

Metin2 özel sunucularında oyuncuların daha fazla teşvik edilmesi ve oyun içi dengenin sağlanması için bonus sistemleri kritik öneme sahiptir. C++ tabanlı sistemlerde geliştirilen bonus mekanikleri, oyuncuların PvP ve PvE aktivitelerinden elde ettikleri ödülleri çeşitlendirir. Bu sistem, oyuncuların belirli eylemler karşılığı olarak ekstra EXP, item, gold veya başka bonuslar kazanmasını sağlar.

Bonus Sistemi Kodlama Yapısı

C++ dilinde yazılmış bir bonus sistemi genellikle game core kısmında yer alır. Oyuncu bir eylem gerçekleştirdiğinde, bu sistem devreye girer ve oyuncuya belirlenen bonusu verir. Örneğin, bir oyuncu belirli bir PvP skoruna ulaşırsa, bonus EXP kazanabilir. Bu işlem auth ve db ile entegre çalışarak veritabanına kayıt edilir.

Bonus Türleri ve Tanımlamalar

Bonus sistemlerinde farklı türler tanımlanabilir:
- EXP Bonusu
- Gold Bonusu
- Item Drop Bonusu
- Can ve Mana Bonusu
Her bonus türü için ayrı fonksiyonlar yazılır. Bu fonksiyonlar, oyuncunun seviyesine, cinsiyetine, sınıfına göre değişiklik gösterebilir. Martysama gibi geliştirici kaynakları incelenerek örnek sistemler üretilebilir.

Bonus Sistemi Kaynak Kod Örneği

Aşağıda basit bir bonus.EXP fonksiyonu örneği verilmiştir:

Kod:
[B]void[/B] Player::ApplyBonusExp([B]int[/B] base_exp, [B]int[/B] bonus_percentage)[BR][/BR]{[BR][/BR]    [B]int[/B] total_exp = base_exp + (base_exp * bonus_percentage / [B]100[/B]);[BR][/BR]    PointChange(POINT_EXP, total_exp);[BR][/BR]}


Bonus Sistemini Sunucuya Entegrasyon

Bu sistem server src dosyasına entegre edilir. Source edit sırasında dikkat edilmesi gereken konulardan biri, sistemde oluşabilecek çakışmaların önüne geçmektir. Compile işlemi yapıldığında herhangi bir hata alınmaması gerekir. Metin2 development sürecinde bu tür kontroller önemlidir.

Bonus Sistemi ile Oyuncu Motivasyonunu Arttırma

Bonus sistemleri, oyuncuların oyun süresini uzatmasına yardımcı olur. Özellikle turnuvalarda, etkinliklerde veya PvP savaşlarında bonuslar büyük motivasyon sağlar. PvP sistem ile uyumlu çalışan bonuslar, oyuncuların aktif kalmasını destekler.

Sonuç

C++ tabanlı bonus sistemleri, Metin2 özel sunucularının gelişiminde önemli rol oynar. Bu sistemler sayesinde oyunculara ek değer sunulur ve oyun içi denge korunur. Geliştiriciler, py root, uiscript ve diğer sistemlerle birlikte bu bonus yapılarını entegre edebilir.


How to Develop a C++ Bonus System for Metin2 Game?

Purpose and Usage of the Bonus System

In Metin2 private servers, bonus systems are critical to incentivize players and maintain in-game balance. Bonus mechanics developed with C++ increase rewards such as extra EXP, items, gold, or other bonuses that players earn through PvP and PvE activities. This system grants additional benefits to players based on specific in-game actions.

Coding Structure of the Bonus System

A C++ based bonus system typically resides within the game core. When a player performs an action, the system triggers and awards the defined bonus. For instance, a player achieving a certain PvP score may receive bonus EXP. This process works integrated with auth and db and records in the database.

Types and Definitions of Bonuses

Different types of bonuses can be defined within the system:
- EXP Bonus
- Gold Bonus
- Item Drop Bonus
- HP and MP Bonus
Each bonus type requires separate functions. These functions may vary depending on the player's level, gender, or class. Developer resources like Martysama can be reviewed to create sample systems.

Sample Source Code for Bonus System

Below is an example of a simple bonus.EXP function:

Kod:
[B]void[/B] Player::ApplyBonusExp([B]int[/B] base_exp, [B]int[/B] bonus_percentage)[BR][/BR]{[BR][/BR]    [B]int[/B] total_exp = base_exp + (base_exp * bonus_percentage / [B]100[/B]);[BR][/BR]    PointChange(POINT_EXP, total_exp);[BR][/BR]}


Integration of the Bonus System into the Server

This system is integrated into the server src file. During source edit, care must be taken to avoid conflicts. No errors should occur during the compile process. Such checks are important during the Metin2 development process.

Increasing Player Motivation with Bonus Systems

Bonus systems help extend playtime by rewarding players. Especially in tournaments, events, or PvP battles, bonuses provide significant motivation. Bonus systems compatible with PvP system support player activity.

Conclusion

C++ based bonus systems play an essential role in the development of Metin2 private servers. They provide additional value to players and maintain in-game balance. Developers can integrate these bonus structures with py root, uiscript, and other systems.
 

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

Geri
Üst Alt