Dosyaları yabancı kaynaklardan edinerek arşivledim, TEST ETMEDİM bilginiz olsun.
Kullanmak, denemek isteyenler arkadaşlar faydalanabilir.
İndirme Linkleri:
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.
[C ++] Şans Kutusu (1.0)
Metin2 özel sunucularında gelişmiş sistemler kurmak isteyen geliştiriciler için hazırlanan bu makale, C++ tabanlı bir Şans Kutusu sistemini detaylı olarak açıklamaktadır.
Sistem Hakkında
Bu sistem, oyuncuların belirli eşyaları kullanarak rastgele ödüller kazanabileceği bir Şans Kutusu mekanizmasını içerir. Sistem tamamen C++ tabanlıdır ve Martysama kaynak kodları üzerinden entegre edilebilir. Kullanıcı dostu bir yapıya sahip olan bu modül, Metin2 özel sunucularında PVP sistemlerine entegrasyon için idealdir.
Özellikler
- Rastgele ödüller.
- Eşya bazlı kullanım.
- DB bağlantılı sistem.
- Kolay entegrasyon.
- Sunucu tarafında çalışır.
Gereksinimler
- Metin2 Client SRC
- Metin2 Game Server SRC
- C++ Bilgisi
- Python Script Desteği (Py Root)
Kurulum Adımları
1. Kaynak kodunuzda 'char_item.cpp' dosyasına gerekli fonksiyonları ekleyin.
2. 'item_manager.h' dosyasında Şans Kutusu fonksiyonlarını tanımlayın.
3. 'locale_inc.h' dosyasında sistem için sabitleri oluşturun.
4. Oyun içi eşyayı oluşturmak için 'item_proto' tablosuna giriş yapın.
5. Ödül listesini 'item_award' gibi bir tabloya tanımlayın.
Not: Bu sistem DBCore ile uyumlu olacak şekilde tasarlanmıştır. Sunucu derlemesi sırasında dikkat edilmelidir.
Örnek Kod Bloğu
Kod:
void CItem::UseLuckBox(){[BR][/BR] // Örnek şans kutusu fonksiyonu[BR][/BR] int reward = number(1, 100);[BR][/BR] if(reward <= 10) {[BR][/BR] ChatPacket(CHAT_TYPE_INFO, 'Tebrikler! Büyük ödül kazandınız!');[BR][/BR] } else {[BR][/BR] ChatPacket(CHAT_TYPE_INFO, 'Daha şanslı olabilirsiniz.');[BR][/BR] }[BR][/BR]}
Teknik Notlar
Sistem, Martysama SRC ile tam uyumlu olup, Py Root ile entegre çalışabilir. Özellikle PVP sistemleri üzerine odaklanan sunucularda yüksek ilgi görebilir. DBCore ile uyumlu bir yapıdadır ve kolayca özelleştirilebilir.
Sonuç
Bu sistem sayesinde oyunculara daha fazla etkileşim ve eğlence sunulabilir. Geliştiriciler için özgürce düzenlenebilir ve Metin2 özel sunucularına özel özellikler katabilir.
[C ++] Lucky Box System (1.0)
This article explains a Lucky Box system based on C++, designed for developers who want to implement advanced systems into their Metin2 private servers.
About The System
This system allows players to use specific items to obtain random rewards through a Lucky Box mechanism. It is fully based on C++ and can be integrated via Martysama source codes. This module features a user-friendly structure and is ideal for integration with PVP systems on Metin2 private servers.
Features
- Random rewards.
- Item-based usage.
- Database-integrated system.
- Easy integration.
- Server-side operation.
Requirements
- Metin2 Client SRC
- Metin2 Game Server SRC
- C++ Knowledge
- Python Script Support (Py Root)
Installation Steps
1. Add necessary functions to the 'char_item.cpp' file in your source code.
2. Define Lucky Box functions in the 'item_manager.h' file.
3. Create constants for the system in the 'locale_inc.h' file.
4. Insert the in-game item into the 'item_proto' table.
5. Define the reward list in a table like 'item_award'.
Note: This system is designed to be compatible with DBCore. Attention should be paid during compilation of the server.
Sample Code Block
Kod:
void CItem::UseLuckBox(){[BR][/BR] // Example lucky box function[BR][/BR] int reward = number(1, 100);[BR][/BR] if(reward <= 10) {[BR][/BR] ChatPacket(CHAT_TYPE_INFO, 'Congratulations! You won a big prize!');[BR][/BR] } else {[BR][/BR] ChatPacket(CHAT_TYPE_INFO, 'You may have more luck next time.');[BR][/BR] }[BR][/BR]}
Technical Notes
The system is fully compatible with Martysama SRC and can work integrated with Py Root. It can attract high interest in servers focusing on PVP systems. It is compatible with DBCore and can be easily customized.
Conclusion
With this system, more interaction and fun can be provided to players. Developers can freely customize it and add unique features to their Metin2 private servers.
