/////
Metin2 - Yeni Meslek Sistemi (Tam Kaynak Kodlu)
Metin2 özel sunucularında gelişmiş meslek sistemleri, oyuncuların karakterlerini daha da kişiselleştirmelerine olanak tanır. Bu yazıda, Metin2 özel sunucu geliştiricileri için profesyonel meslek sistemlerinin nasıl uygulanacağına dair tamamen açık kaynaklı bir yapı sunacağız. Bu sistem, hem game hem de client tarafında değişiklik gerektiren kapsamlı bir projedir.
Yeni Meslek Sistemi Nedir?
Geleneksel Metin2 oyunlarında meslekler sınırlı ve sabit kalır. Ancak PvP sunucularında daha fazla çeşitlilik istenir. Bu nedenle geliştiriciler, C++ tabanlı game server üzerinde dinamik meslek sistemleri kurmaya başlamıştır. Yeni sistem, oyuncuların farklı yeteneklere ve roller üstlenmelerine olanak tanır. Örneğin bir savaşçı, 'destansı kılıç ustası', 'kanlı gölge avcısı' gibi alt sınıflara ayrılabilir.
Sistem Nasıl Çalışır?
Yeni meslek sistemi, db_core ve game_core üzerinde çalışır. Veritabanında yeni bir tablo tanımlanarak meslek seviyeleri, bonuslar ve özel yetenekler depolanır. Game tarafında bir karakterin hangi mesleği seçtiğine göre özel stat bonusları,_skill_ sistemleri ve UI güncellemeleri yapılır. Client tarafında ise uiscript dosyalarında gerekli arayüz değişiklikleri yapılmaktadır. Bu sayede oyuncu, mesleğini değiştirdiğinde ekranda özel simgeler, yetenek çubukları ve istatistik değişiklikleri gözle görülür.
Kaynak Kod Yapısı
Bu sistemde iki ana kısım vardır:
- Game Server tarafında C++ ile yazılmış sistem modülleri
- Client tarafında py_root ve uiscript ile yazılmış arayüz güncellemeleri
Game tarafında, bir karakterin meslek verisi player_table veya özel bir tabloya eklenir. Oyuncu belirli bir seviyeye ulaştığında yeni bir meslek seçebilir. Seçilen meslek, Python komutları ile auth ve game sunucusuna gönderilir. Martysama veya benzeri geliştirici sistemleri kullanarak bu işlem kolayca entegre edilebilir.
UI ve Kullanıcı Deneyimi
Arayüz tarafında Py GUI kullanarak, oyuncuya bir meslek seçim ekranı sunulur. Bu ekran, uiscript dosyası ile tanımlanır ve client src dosyalarına entegre edilir. Her meslek için özel bir ikon, açıklama ve bonuslar listelenir. Bu sistem, pack dosyaları ile kolayca sunucuya entegre edilebilir.
Örnek Kod Parçası (C++)
Sistem Entegrasyonu
Bu sistem, mevcut Metin2 server src dosyalarına kolayca entegre edilebilir. Geliştiriciler, core dosyalarında gerekli fonksiyonları tanımlayıp, game server programming prensiplerine uygun şekilde sistemleri bağlayabilirler. Metin2Dev topluluğu bu konuda birçok kaynak sunmaktadır.
Sonuç
Yeni meslek sistemi, Metin2 özel sunucularında PvP deneyimini ciddi anlamda artırır. Geliştiriciler için bu sistem, hem teknik hem de yaratıcı açıdan büyük bir potansiyele sahiptir. Tam kaynak kod sunumu ile birlikte, Metin2Lobby.com olarak bu sistemin detaylarını paylaşmayı amaçlıyoruz.
Metin2 - New System of Professional Titles (Full Source Code)
Advanced class systems in Metin2 private servers allow players to further personalize their characters. In this article, we will provide a completely open-source structure for implementing advanced class systems for Metin2 private server developers. This system is a comprehensive project that requires modifications on both game and client sides.
What is the New Class System?
Traditional Metin2 games have limited and fixed classes. However, more variety is desired in PvP servers. Therefore, developers began creating dynamic class systems on C++-based game servers. The new system allows players to take on different roles and abilities. For example, a warrior can be divided into subclasses like 'epic sword master' or 'bloody shadow hunter'.
How Does the System Work?
The new class system operates on db_core and game_core. A new table is defined in the database to store class levels, bonuses, and special abilities. On the game side, depending on which class a character selects, special stat bonuses, _skill_ systems, and UI updates are applied. On the client side, necessary interface changes are made in uiscript files. Thus, when a player changes their class, special icons, skill bars, and stat changes become visible on screen.
Source Code Structure
This system consists of two main parts:
- C++ modules written on the Game Server side
- Interface updates written with py_root and uiscript on the Client side
On the Game side, a character's class data is added to the player_table or a custom table. When a player reaches a certain level, they can select a new class. The selected class is sent to the auth and game servers via Python commands. Using developer systems like Martysama, this process can be easily integrated.
UI and User Experience
On the interface side, a class selection screen is presented to the player using Py GUI. This screen is defined in the uiscript file and integrated into the client src files. Each class has its own icon, description, and bonuses listed. This system can be easily integrated into the server via pack files.
Sample Code Snippet (C++)
System Integration
This system can be easily integrated into existing Metin2 server src files. Developers can define necessary functions in core files and connect the systems according to game server programming principles. The Metin2Dev community provides many resources on this topic.
Conclusion
The new class system significantly enhances the PvP experience in Metin2 private servers. For developers, this system holds great potential both technically and creatively. By providing full source code, we aim to share the details of this system through Metin2Lobby.com.
Metin2 - Yeni Meslek Sistemi (Tam Kaynak Kodlu)
Metin2 özel sunucularında gelişmiş meslek sistemleri, oyuncuların karakterlerini daha da kişiselleştirmelerine olanak tanır. Bu yazıda, Metin2 özel sunucu geliştiricileri için profesyonel meslek sistemlerinin nasıl uygulanacağına dair tamamen açık kaynaklı bir yapı sunacağız. Bu sistem, hem game hem de client tarafında değişiklik gerektiren kapsamlı bir projedir.
Yeni Meslek Sistemi Nedir?
Geleneksel Metin2 oyunlarında meslekler sınırlı ve sabit kalır. Ancak PvP sunucularında daha fazla çeşitlilik istenir. Bu nedenle geliştiriciler, C++ tabanlı game server üzerinde dinamik meslek sistemleri kurmaya başlamıştır. Yeni sistem, oyuncuların farklı yeteneklere ve roller üstlenmelerine olanak tanır. Örneğin bir savaşçı, 'destansı kılıç ustası', 'kanlı gölge avcısı' gibi alt sınıflara ayrılabilir.
Sistem Nasıl Çalışır?
Yeni meslek sistemi, db_core ve game_core üzerinde çalışır. Veritabanında yeni bir tablo tanımlanarak meslek seviyeleri, bonuslar ve özel yetenekler depolanır. Game tarafında bir karakterin hangi mesleği seçtiğine göre özel stat bonusları,_skill_ sistemleri ve UI güncellemeleri yapılır. Client tarafında ise uiscript dosyalarında gerekli arayüz değişiklikleri yapılmaktadır. Bu sayede oyuncu, mesleğini değiştirdiğinde ekranda özel simgeler, yetenek çubukları ve istatistik değişiklikleri gözle görülür.
Kaynak Kod Yapısı
Bu sistemde iki ana kısım vardır:
- Game Server tarafında C++ ile yazılmış sistem modülleri
- Client tarafında py_root ve uiscript ile yazılmış arayüz güncellemeleri
Game tarafında, bir karakterin meslek verisi player_table veya özel bir tabloya eklenir. Oyuncu belirli bir seviyeye ulaştığında yeni bir meslek seçebilir. Seçilen meslek, Python komutları ile auth ve game sunucusuna gönderilir. Martysama veya benzeri geliştirici sistemleri kullanarak bu işlem kolayca entegre edilebilir.
UI ve Kullanıcı Deneyimi
Arayüz tarafında Py GUI kullanarak, oyuncuya bir meslek seçim ekranı sunulur. Bu ekran, uiscript dosyası ile tanımlanır ve client src dosyalarına entegre edilir. Her meslek için özel bir ikon, açıklama ve bonuslar listelenir. Bu sistem, pack dosyaları ile kolayca sunucuya entegre edilebilir.
Örnek Kod Parçası (C++)
Kod:
[COLOR=green]void CHARACTER::SetNewTitle(int title_id)[/COLOR][BR][/BR]{[BR][/BR][COLOR=orange]if (IsValidTitle(title_id)) {[/COLOR][BR][/BR][COLOR=orange]m_job_title = title_id;[/COLOR][BR][/BR][COLOR=orange]ComputeBattlePoints();[/COLOR][BR][/BR][COLOR=orange]}[/COLOR][BR][/BR][COLOR=orange]}[/COLOR][BR][/BR]
Sistem Entegrasyonu
Bu sistem, mevcut Metin2 server src dosyalarına kolayca entegre edilebilir. Geliştiriciler, core dosyalarında gerekli fonksiyonları tanımlayıp, game server programming prensiplerine uygun şekilde sistemleri bağlayabilirler. Metin2Dev topluluğu bu konuda birçok kaynak sunmaktadır.
Sonuç
Yeni meslek sistemi, Metin2 özel sunucularında PvP deneyimini ciddi anlamda artırır. Geliştiriciler için bu sistem, hem teknik hem de yaratıcı açıdan büyük bir potansiyele sahiptir. Tam kaynak kod sunumu ile birlikte, Metin2Lobby.com olarak bu sistemin detaylarını paylaşmayı amaçlıyoruz.
Metin2 - New System of Professional Titles (Full Source Code)
Advanced class systems in Metin2 private servers allow players to further personalize their characters. In this article, we will provide a completely open-source structure for implementing advanced class systems for Metin2 private server developers. This system is a comprehensive project that requires modifications on both game and client sides.
What is the New Class System?
Traditional Metin2 games have limited and fixed classes. However, more variety is desired in PvP servers. Therefore, developers began creating dynamic class systems on C++-based game servers. The new system allows players to take on different roles and abilities. For example, a warrior can be divided into subclasses like 'epic sword master' or 'bloody shadow hunter'.
How Does the System Work?
The new class system operates on db_core and game_core. A new table is defined in the database to store class levels, bonuses, and special abilities. On the game side, depending on which class a character selects, special stat bonuses, _skill_ systems, and UI updates are applied. On the client side, necessary interface changes are made in uiscript files. Thus, when a player changes their class, special icons, skill bars, and stat changes become visible on screen.
Source Code Structure
This system consists of two main parts:
- C++ modules written on the Game Server side
- Interface updates written with py_root and uiscript on the Client side
On the Game side, a character's class data is added to the player_table or a custom table. When a player reaches a certain level, they can select a new class. The selected class is sent to the auth and game servers via Python commands. Using developer systems like Martysama, this process can be easily integrated.
UI and User Experience
On the interface side, a class selection screen is presented to the player using Py GUI. This screen is defined in the uiscript file and integrated into the client src files. Each class has its own icon, description, and bonuses listed. This system can be easily integrated into the server via pack files.
Sample Code Snippet (C++)
Kod:
[COLOR=green]void CHARACTER::SetNewTitle(int title_id)[/COLOR][BR][/BR]{[BR][/BR][COLOR=orange]if (IsValidTitle(title_id)) {[/COLOR][BR][/BR][COLOR=orange]m_job_title = title_id;[/COLOR][BR][/BR][COLOR=orange]ComputeBattlePoints();[/COLOR][BR][/BR][COLOR=orange]}[/COLOR][BR][/BR][COLOR=orange]}[/COLOR][BR][/BR]
System Integration
This system can be easily integrated into existing Metin2 server src files. Developers can define necessary functions in core files and connect the systems according to game server programming principles. The Metin2Dev community provides many resources on this topic.
Conclusion
The new class system significantly enhances the PvP experience in Metin2 private servers. For developers, this system holds great potential both technically and creatively. By providing full source code, we aim to share the details of this system through Metin2Lobby.com.
