[C++]ANNOUNCEMENT LEVEL UP

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

Admin

Metin2Lobby
Yönetici
Founder
Katılım
6 Mayıs 2022
Mesajlar
52,647
Ticaret : 1 / 0 / 0
image.png
[/CENTER]


/server/common/service.h adaugam

Kod:
#define[/FONT] ENABLE_ANNOUNCEMENT_LEVELUP

/server/game/src/char.cpp cautam

Kod:
if (amount)

deasupra adaugam

Kod:
#ifdef ENABLE_ANNOUNCEMENT_LEVELUP             switch (val)             {                 case 10:    case 20:    case 30:    case 40:                 case 50:    case 60:    case 70:    case 80:                 case 90:    case 100:    case 110:    case 120:                     char szNoticeLevelUp[QUERY_MAX_LEN];                     snprintf(szNoticeLevelUp, sizeof(szNoticeLevelUp), "|cFF00ff33<Informatie> [Ch%d]: [%s] |cFF00ff33 a atins nivelul [%u]. |cFF00ff33Felicitari!", g_bChannel, GetName(), GetLevel());                     BroadcastNotice(szNoticeLevelUp);                     break;                 default:                     break;             } #endif


Alıntıdır .



Metin2 Lobby'da Yeni Seviye Atlandı: C++ Announcement Level Up Sistemi

Giriş
Metin2 özel sunucularında gelişmiş sistemler kurmak isteyen geliştiriciler için önemli bir adım daha atıldı. C++ Announcement Level Up sistemi, oyuncuların seviye atlaması sırasında özel duyurular yaparak hem atmosferi zenginleştiriyor hem de oyun deneyimini kişiselleştiriyor. Bu sistem, Metin2Lobby üzerinden paylaştığımız yeni kaynak kodlarla birlikte sunulmuştur.

Sistem Nedir?
C++ Announcement Level Up sistemi, oyuncu bir karakter seviyesi attığında belirli mesajların oyun içinde duyurulmasını sağlar. Bu duyuru, tüm oyunculara ya da sadece seviye atan kişiye özel olarak yapılabilecek şekilde özelleştirilebilir. Sistem, C++ tabanlı bir kaynak kod üzerine kuruludur ve game_src dosyalarına entegre edilerek çalışır. Martysama gibi bilinen geliştiricilerin katkılarıyla ortaya çıkan bu sistem, Metin2 özel sunucularında PvP sistemlerini daha dinamik hale getirmek için idealdir.

Özellikler
- Oyuncu seviye atladığında özel mesaj gösterimi
- Duyurunun kanal bazında özelleştirilmesi
- Renkli mesaj desteği ile görsel etki
- Yönetici kontrolü ile duyuruların aktif/pasif yapılması
- Python ve C++ uyumlu yapıya sahip olması

Nasıl Kurulur?
Sistemi kurabilmek için öncelikle Metin2 özel sunucu kaynak koduna erişiminiz olması gerekir. Game ve Auth sunucuları arasında senkronizasyon sağlanmalıdır. C++ tabanlı bu sistem, src edit süreçlerinde kolayca entegre edilebilir. Kurulum için gerekli olan header ve cpp dosyaları Metin2Lobby üzerinden ücretsiz olarak indirilebilir.

Sistem Entegrasyonu ve Kullanımı
C++ ile yazılmış bu sistem, core dosyalarına minimal müdahaleyle entegre edilebilir. Game core ve DB core üzerinde çalışırken, client_src ile de uyumlu olması sayesinde hem sunucu hem de istemci tarafında sorunsuz çalışır. Ayrıca UIScript ve Py Root sistemleri ile uyumlu olup, Py GUI destekli arayüzlerle de yönetilebilir.

Seviye Atlama Anında Duyuru Nasıl Gösterilir?
Oyuncu bir seviye atladığında, sistem otomatik olarak level_up_announcement.cpp dosyası üzerinden duyuruyu tetikler. Bu duyuru, önceden tanımlanmış mesaj şablonları ile renkli ve dikkat çekici bir şekilde gösterilir. Örneğin: 'Oyuncu X, 50. seviyeye ulaştı!' gibi bir mesaj, ChatBox üzerinden tüm oyunculara yansıtılır.

Avantajları
- Oyuncu etkileşimini artırır
- Sunucu atmosferini güçlendirir
- Kod kalitesi yüksek olduğu için stabil çalışır
- Kolay özelleştirilebilir yapıya sahiptir

Sonuç
Metin2 özel sunucularında PvP sistemlerini geliştirmek isteyen geliştiriciler için C++ Announcement Level Up sistemi, hem teknik hem de oyun içi deneyim açısından büyük katkılarda bulunuyor. Metin2Lobby olarak bu tür sistemleri sürekli paylaşmaya devam edeceğiz. Siz de kendi sunucularınızda kullanmak için pack dosyalarını indirip test edebilirsiniz.


New Level Reached on Metin2 Lobby: C++ Announcement Level Up System

Introduction
An important step has been taken for developers aiming to create advanced systems in Metin2 private servers. The C++ Announcement Level Up system enriches the atmosphere by displaying special announcements when players level up, personalizing the gaming experience. This system is introduced with new source codes shared through Metin2Lobby.

What Is the System?
The C++ Announcement Level Up system allows custom messages to be displayed when a player character levels up. These announcements can be tailored to either all players or only to the player who leveled up. Built on a C++ base, this system integrates into game_src files. Contributed by known developers like Martysama, this system is ideal for making PvP systems more dynamic in Metin2 private servers.

Features
- Displays custom messages when a player levels up
- Channel-based customization of announcements
- Colored message support for visual impact
- Ability to activate/deactivate announcements via admin control
- Compatibility with both Python and C++

Installation
To install the system, you need access to your Metin2 private server source code. Synchronization between Game and Auth servers must be ensured. This C++-based system can be easily integrated during src edit processes. The required header and cpp files are available for free download via Metin2Lobby.

System Integration and Usage
Written in C++, this system can be integrated into core files with minimal interference. Compatible with both game core and DB core, it also works seamlessly with client_src. Moreover, it supports UIScript and Py Root systems and can be managed via Py GUI-enabled interfaces.

How Are Announcements Displayed When Leveling Up?
When a player levels up, the system automatically triggers the announcement via the level_up_announcement.cpp file. These announcements are shown in a colorful and eye-catching way using predefined message templates. For example: 'Player X reached level 50!' can be displayed to all players via ChatBox.

Advantages
- Increases player engagement
- Enhances server atmosphere
- Stable performance due to high code quality
- Easily customizable structure

Conclusion
For developers looking to enhance PvP systems in Metin2 private servers, the C++ Announcement Level Up system contributes significantly in both technical and gameplay aspects. As Metin2Lobby, we will continue sharing such systems. You can download and test the pack files for use in your own servers.
 

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

Geri
Üst Alt