İtem açıklamasında, ona bir bonus eklemenin mümkün olduğunu gösterir.
Uitoolip.py açınız:
Arat:
Altına ekle:
Arat:
İçinde bul:
Altına ekle:
Arat:
Altına ekle:
Locale_game.txt
Ekle:
MaviAyGames | Official Extra Bonus Sistemi Ekleme ve Düzenleme Rehberi
Metin2 özel sunucularında gelişmiş bonus sistemleri eklemek, oyuncu deneyimini ciddi anlamda artırabilir. Bu yazıda, MaviAyGames tarafından sunulan Extra Bonus özelliğini nasıl ekleyeceğinizi ve düzenleyeceğinizi adım adım anlatacağız. Bu işlem, hem game server hem de client tarafında yapılabilecek küçük değişikliklerle mümkündür.
Önemli Not: Bu rehber, Metin2 özel sunucu geliştirme konusunda bilgi sahibi olan ya da öğrenmek isteyen geliştiriciler içindir. Temel seviyede C++, Python ve UIScript bilgisi gerektirir.
1. Extra Bonus Sistemine Genel Bakış
Extra Bonus sistemi, oyuncuların belirli eylemleri gerçekleştirmesi durumunda ekstra ödüller kazanmalarını sağlar. Bu ödüller genellikle EXP, item, gold veya özel stat kazanımları olabilir. Sistem, MaviAyGames tarafından resmi olarak sunulmuş olup, özelleştirilebilir yapıdadır.
2. Gereksinimler
- Metin2 Client Source Kodları
- Metin2 Game Server Source Kodları
- Python GUI (Py Root / UIScript)
- MSSQL / MySQL Bilgisi
- MaviAyGames Extra Bonus Script Paketi
3. Client Tarafında Kurulum
Client tarafında yapılacak olan değişiklikler genellikle uiscript dosyaları üzerinden yapılır. Öncelikle locale_inc.h dosyasına yeni bonus tanımlamaları eklenmelidir. Ardından ui.py veya benzeri Python dosyalarında arayüz parçacıkları (bonus window) oluşturulmalıdır. Bu pencere, oyuncunun bonuslarını takip edebilmesi için önemlidir.
4. Game Server Tarafında Kurulum
Game server tarafında, bonusların kontrol edildiği fonksiyonlar eklenmelidir. Bu fonksiyonlar genellikle char.cpp, char_manager.cpp gibi dosyalarda yer alır. Ayrıca, bonusların verilme mantığı için özel event handler'lar yazılabilir. Bu event handlerlar, oyuncunun belirli bir görevi tamamlaması durumunda bonusu otomatik olarak almasını sağlar.
5. Database Ayarlamaları
Bonus sistemine özel verilerin saklanması için database tarafında yeni tablolar veya mevcut tablolara yeni alanlar eklenebilir. Örneğin player_extra_bonus adında bir tablo oluşturulabilir. Bu tabloya bonus ID, player ID, bonus miktarı gibi bilgiler yazılır. Oyuncu giriş yaptığında bu bilgiler kontrol edilir ve aktif bonuslar uygulanır.
6. Bonus Türleri ve Yapılandırılabilirlik
Sistem, aşağıdaki bonus türlerini destekleyecek şekilde genişletilebilir:
- EXP Bonus
- Gold Bonus
- Item Bonus
- Stat Bonus
- PvP Bonus
Her bonus türü, farklı bir komutla tetiklenebilir ve özelleştirilebilir. Örneğin, pvp_kill_bonus gibi bir event handler, oyuncu bir PvP öldürme yaptığında bonusu otomatik verir.
7. Güvenlik ve Hile Önleme
Bonus sistemleri, hile riskini artırabileceğinden dolayı dikkatli tasarlanmalıdır. Sunucu tarafında bonus alma koşullarının kontrolü mutlaka yapılmalıdır. Client tarafında sadece bilgilendirme yapılması önerilir. Bonus alma limitleri, cooldown süreleri gibi kontroller eklenmelidir.
8. Test ve Optimizasyon
Bonus sisteminin doğru çalışıp çalışmadığını test etmek için çeşitli senaryolar hazırlanmalı ve test sunucusunda denenmelidir. Bonus verme frekansı, miktarı ve süresi gibi parametreler optimize edilmelidir. Performans etkileri göz önünde bulundurulmalıdır.
Sonuç
MaviAyGames tarafından sağlanan Official Extra Bonus sistemi, Metin2 özel sunucularında oyuncu motivasyonunu artırmak için etkili bir yöntemdir. Doğru uygulandığında, oyuncuların daha fazla etkileşim kurmasını ve oyun içinde kalmalarını sağlar. Bu rehber sayesinde, sistemi hem kurabilir hem de ihtiyaç duyduğunuz şekilde özelleştirebilirsiniz.
MaviAyGames | Adding and Editing Official Extra Bonus System Guide
Adding advanced bonus systems to Metin2 private servers can significantly enhance the player experience. In this article, we will explain step by step how to add and customize the Extra Bonus feature provided by MaviAyGames. This process involves minor modifications on both the game server and client sides.
Important Note: This guide is intended for developers familiar with or learning about Metin2 private server development. Basic knowledge of C++, Python, and UIScript is required.
1. Overview of Extra Bonus System
The Extra Bonus system allows players to earn additional rewards when they complete certain actions. These rewards typically include EXP, items, gold, or special stat gains. The system is officially provided by MaviAyGames and is customizable.
2. Requirements
- Metin2 Client Source Codes
- Metin2 Game Server Source Codes
- Python GUI (Py Root / UIScript)
- MSSQL / MySQL Knowledge
- MaviAyGames Extra Bonus Script Package
3. Client-Side Installation
Modifications on the client side are usually done through uiscript files. First, new bonus definitions must be added to the locale_inc.h file. Then, UI components (bonus window) should be created in Python files such as ui.py. This window is important for players to track their bonuses.
4. Game Server-Side Installation
On the game server side, functions that control bonuses must be added. These functions are generally located in files like char.cpp and char_manager.cpp. Additionally, custom event handlers can be written so that players automatically receive bonuses upon completing certain tasks.
5. Database Configurations
New tables or fields may be added to the database to store specific bonus data. For example, a table named player_extra_bonus can be created. Information such as bonus ID, player ID, and bonus amount can be stored in this table. When a player logs in, this data is checked and active bonuses are applied.
6. Types of Bonuses and Customization
The system can be extended to support the following types of bonuses:
- EXP Bonus
- Gold Bonus
- Item Bonus
- Stat Bonus
- PvP Bonus
Each type of bonus can be triggered by different commands and customized accordingly. For example, an event handler like pvp_kill_bonus can automatically award a bonus when a player scores a PvP kill.
7. Security and Anti-Cheat Measures
Since bonus systems can increase the risk of cheating, they must be designed carefully. Conditions for receiving bonuses must be checked on the server-side. Only notifications should be displayed on the client-side. Limits and cooldowns for bonus acquisition should also be implemented.
8. Testing and Optimization
To ensure the bonus system works correctly, various scenarios should be prepared and tested on a test server. Parameters such as bonus frequency, amount, and duration should be optimized. Performance impacts must be considered.
Conclusion
The Official Extra Bonus system provided by MaviAyGames is an effective way to boost player motivation in Metin2 private servers. When properly implemented, it encourages players to interact more and stay longer within the game. With this guide, you can install and customize the system according to your needs.
Uitoolip.py açınız:
Arat:
Kod:
CONDITION_COLOR = 0xffBEB47D
Altına ekle:
Kod:
BONUS_COLOR = 0xffE5E58A
Arat:
Kod:
def __AppendAttributeInformation
İçinde bul:
Kod:
if 0 != attrSlot:
Altına ekle:
Kod:
count = 0
Arat:
Kod:
if affectString: affectColor = self.__GetAttributeColor(i, value) self.AppendTextLine(affectString, affectColor)
Altına ekle:
Kod:
if value > 0: count = count+1 if (count == 0) and (item.GetItemType() == item.ITEM_TYPE_ARMOR or item.GetItemType() == item.ITEM_TYPE_WEAPON): self.AppendTextLine(localeInfo.TOOLTIP_ITEM_BONUS_FIRSTADD, self.BONUS_COLOR) if (count < 7 and count != 0) and (item.GetItemType() == item.ITEM_TYPE_ARMOR or item.GetItemType() == item.ITEM_TYPE_WEAPON): self.AppendTextLine(localeInfo.TOOLTIP_ITEM_BONUS_NEXTADD, self.BONUS_COLOR)
Locale_game.txt
Ekle:
Kod:
TOOLTIP_ITEM_BONUS_FIRSTADD Bonus ekleyebilirsiniz TOOLTIP_ITEM_BONUS_NEXTADD Ek bir bonus ekleyebilirsiniz
MaviAyGames | Official Extra Bonus Sistemi Ekleme ve Düzenleme Rehberi
Metin2 özel sunucularında gelişmiş bonus sistemleri eklemek, oyuncu deneyimini ciddi anlamda artırabilir. Bu yazıda, MaviAyGames tarafından sunulan Extra Bonus özelliğini nasıl ekleyeceğinizi ve düzenleyeceğinizi adım adım anlatacağız. Bu işlem, hem game server hem de client tarafında yapılabilecek küçük değişikliklerle mümkündür.
Önemli Not: Bu rehber, Metin2 özel sunucu geliştirme konusunda bilgi sahibi olan ya da öğrenmek isteyen geliştiriciler içindir. Temel seviyede C++, Python ve UIScript bilgisi gerektirir.
1. Extra Bonus Sistemine Genel Bakış
Extra Bonus sistemi, oyuncuların belirli eylemleri gerçekleştirmesi durumunda ekstra ödüller kazanmalarını sağlar. Bu ödüller genellikle EXP, item, gold veya özel stat kazanımları olabilir. Sistem, MaviAyGames tarafından resmi olarak sunulmuş olup, özelleştirilebilir yapıdadır.
2. Gereksinimler
- Metin2 Client Source Kodları
- Metin2 Game Server Source Kodları
- Python GUI (Py Root / UIScript)
- MSSQL / MySQL Bilgisi
- MaviAyGames Extra Bonus Script Paketi
3. Client Tarafında Kurulum
Client tarafında yapılacak olan değişiklikler genellikle uiscript dosyaları üzerinden yapılır. Öncelikle locale_inc.h dosyasına yeni bonus tanımlamaları eklenmelidir. Ardından ui.py veya benzeri Python dosyalarında arayüz parçacıkları (bonus window) oluşturulmalıdır. Bu pencere, oyuncunun bonuslarını takip edebilmesi için önemlidir.
4. Game Server Tarafında Kurulum
Game server tarafında, bonusların kontrol edildiği fonksiyonlar eklenmelidir. Bu fonksiyonlar genellikle char.cpp, char_manager.cpp gibi dosyalarda yer alır. Ayrıca, bonusların verilme mantığı için özel event handler'lar yazılabilir. Bu event handlerlar, oyuncunun belirli bir görevi tamamlaması durumunda bonusu otomatik olarak almasını sağlar.
5. Database Ayarlamaları
Bonus sistemine özel verilerin saklanması için database tarafında yeni tablolar veya mevcut tablolara yeni alanlar eklenebilir. Örneğin player_extra_bonus adında bir tablo oluşturulabilir. Bu tabloya bonus ID, player ID, bonus miktarı gibi bilgiler yazılır. Oyuncu giriş yaptığında bu bilgiler kontrol edilir ve aktif bonuslar uygulanır.
6. Bonus Türleri ve Yapılandırılabilirlik
Sistem, aşağıdaki bonus türlerini destekleyecek şekilde genişletilebilir:
- EXP Bonus
- Gold Bonus
- Item Bonus
- Stat Bonus
- PvP Bonus
Her bonus türü, farklı bir komutla tetiklenebilir ve özelleştirilebilir. Örneğin, pvp_kill_bonus gibi bir event handler, oyuncu bir PvP öldürme yaptığında bonusu otomatik verir.
7. Güvenlik ve Hile Önleme
Bonus sistemleri, hile riskini artırabileceğinden dolayı dikkatli tasarlanmalıdır. Sunucu tarafında bonus alma koşullarının kontrolü mutlaka yapılmalıdır. Client tarafında sadece bilgilendirme yapılması önerilir. Bonus alma limitleri, cooldown süreleri gibi kontroller eklenmelidir.
8. Test ve Optimizasyon
Bonus sisteminin doğru çalışıp çalışmadığını test etmek için çeşitli senaryolar hazırlanmalı ve test sunucusunda denenmelidir. Bonus verme frekansı, miktarı ve süresi gibi parametreler optimize edilmelidir. Performans etkileri göz önünde bulundurulmalıdır.
Sonuç
MaviAyGames tarafından sağlanan Official Extra Bonus sistemi, Metin2 özel sunucularında oyuncu motivasyonunu artırmak için etkili bir yöntemdir. Doğru uygulandığında, oyuncuların daha fazla etkileşim kurmasını ve oyun içinde kalmalarını sağlar. Bu rehber sayesinde, sistemi hem kurabilir hem de ihtiyaç duyduğunuz şekilde özelleştirebilirsiniz.
MaviAyGames | Adding and Editing Official Extra Bonus System Guide
Adding advanced bonus systems to Metin2 private servers can significantly enhance the player experience. In this article, we will explain step by step how to add and customize the Extra Bonus feature provided by MaviAyGames. This process involves minor modifications on both the game server and client sides.
Important Note: This guide is intended for developers familiar with or learning about Metin2 private server development. Basic knowledge of C++, Python, and UIScript is required.
1. Overview of Extra Bonus System
The Extra Bonus system allows players to earn additional rewards when they complete certain actions. These rewards typically include EXP, items, gold, or special stat gains. The system is officially provided by MaviAyGames and is customizable.
2. Requirements
- Metin2 Client Source Codes
- Metin2 Game Server Source Codes
- Python GUI (Py Root / UIScript)
- MSSQL / MySQL Knowledge
- MaviAyGames Extra Bonus Script Package
3. Client-Side Installation
Modifications on the client side are usually done through uiscript files. First, new bonus definitions must be added to the locale_inc.h file. Then, UI components (bonus window) should be created in Python files such as ui.py. This window is important for players to track their bonuses.
4. Game Server-Side Installation
On the game server side, functions that control bonuses must be added. These functions are generally located in files like char.cpp and char_manager.cpp. Additionally, custom event handlers can be written so that players automatically receive bonuses upon completing certain tasks.
5. Database Configurations
New tables or fields may be added to the database to store specific bonus data. For example, a table named player_extra_bonus can be created. Information such as bonus ID, player ID, and bonus amount can be stored in this table. When a player logs in, this data is checked and active bonuses are applied.
6. Types of Bonuses and Customization
The system can be extended to support the following types of bonuses:
- EXP Bonus
- Gold Bonus
- Item Bonus
- Stat Bonus
- PvP Bonus
Each type of bonus can be triggered by different commands and customized accordingly. For example, an event handler like pvp_kill_bonus can automatically award a bonus when a player scores a PvP kill.
7. Security and Anti-Cheat Measures
Since bonus systems can increase the risk of cheating, they must be designed carefully. Conditions for receiving bonuses must be checked on the server-side. Only notifications should be displayed on the client-side. Limits and cooldowns for bonus acquisition should also be implemented.
8. Testing and Optimization
To ensure the bonus system works correctly, various scenarios should be prepared and tested on a test server. Parameters such as bonus frequency, amount, and duration should be optimized. Performance impacts must be considered.
Conclusion
The Official Extra Bonus system provided by MaviAyGames is an effective way to boost player motivation in Metin2 private servers. When properly implemented, it encourages players to interact more and stay longer within the game. With this guide, you can install and customize the system according to your needs.
