Merhaba, 55-120 sunucularda kullanılan 2x eventidir. Aslında warezdeki fileslerde
bulabilirsiniz. Paylaşma sebebim ufak bir kodlama için 200 lira fiyat çeken warezcilerdir.
iyi kullanımlar...
Before :
After :
For
bulabilirsiniz. Paylaşma sebebim ufak bir kodlama için 200 lira fiyat çeken warezcilerdir.
iyi kullanımlar...
Before :
After :
For
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.
Ziyaretçiler için gizlenmiş link,görmek için üye olmalısınız!
Giriş yap veya üye ol.
Metin2 Lobby olarak, Metin2 özel sunucularında gelişmiş sistemler geliştirmeye devam ediyoruz. Bu yazıda, C++ tabanlı bir 2X Metin Eventi nasıl yapılır, onu ele alacağız. Bu tür etkinlik sistemleri, Metin2 PvP sunucularında oyuncuların katılımını artırmak ve sunucu trafiğini canlı tutmak için kritik öneme sahiptir. Event sistemi, hem game core hem de db core üzerinde değişiklik gerektirebilir. Bu sebeple hem server src hem de database üzerinde çalışmanız gerekir.
2X Metin Eventi Nedir?
2X Metin Eventi, belirli bir süre boyunca Metin2 sunucusunda drop oranlarının veya EXP kazançlarının iki katına çıktığı özel bir etkinliktir. Oyuncular bu dönemde daha fazla item ve experience kazanabilir. Bu eventler, genellikle PvP sunucularında haftalık veya aylık düzenli olarak aktif edilir. C++ tabanlı olarak kodlanması, sistemin source edit ile yapıldığı durumlarda daha stabil ve güvenli çalışmasını sağlar.
C++ ile 2X Event Sistemi Geliştirme
C++ ile 2X event sistemi oluşturmak için birkaç ana bileşen üzerinde çalışmalısınız. Bunlar:
- Game Server tarafında EXP ve drop modülünü kontrol eden fonksiyonlar
- Auth Server ile senkronize çalışan bir event başlatma komutu
- Database tabanlı event zamanlayıcı veya aktiflik kontrolü
EXP Multiplier Ayarı
CharacterManager.cpp dosyasında bulunan CalculateExperience fonksiyonuna müdahale ederek, EXP multiplier'ı dinamik hale getirebilirsiniz. Örneğin, global bir bool değişken tanımlayıp, event aktifse bu değeri true yaparak EXP miktarını ikiye katlayabilirsiniz. Benzer işlem DropHandler.cpp içindeki GenerateItem fonksiyonunda da yapılabilir.
Event Zamanlayıcı ve Aktivasyon
Python veya doğrudan C++ tabanlı bir zamanlayıcı sistemi kurarak, belirli zamanlarda event'in otomatik olarak başlamasını sağlayabilirsiniz. Bu işlem genellikle timer sınıfları ile yapılır. Martysama gibi Metin2 development uzmanları tarafından önerilen bu yöntem, manuel müdahaleyi azaltarak sistemin daha profesyonel çalışmasını sağlar.
Client-Side Etkileşim
Py GUI veya UIScript ile oluşturulan arayüzler sayesinde, oyunculara event başladı bilgisi gönderilebilir. Game core üzerinden notice mesajları veya chat box bildirimleriyle bu bilgi aktarılmalıdır. Metin2 Lobby olarak, kullanıcı deneyimini artırmak için bu tür görsel ve işitsel uyarıları önemsiyoruz.
Test ve Deploy
Oluşturduğunuz 2X event sistemini compile ettikten sonra, test sunucunuzda tüm fonksiyonların beklendiği gibi çalışıp çalışmadığını kontrol etmelisiniz. Auth ve game sunucuları arasında bağlantı kopması, database erişimi gibi sorunlar oluşabilir. Metin2Dev topluluğu ile tecrübelerinizi paylaşarak, sistemi daha da optimize edebilirsiniz.
Metin2 Lobby as, we continue developing advanced systems for Metin2 private servers. In this article, we will discuss how to create a C++ based 2X Metin Event. These types of event systems are critical for increasing player participation and maintaining active traffic on Metin2 PvP servers. The Event system may require modifications to both game core and db core. Therefore, you will need to work on both server src and database.
What is a 2X Metin Event?
2X Metin Event is a special event where drop rates or EXP gains double for a certain period on a Metin2 server. During this period, players can gain more items and experience. These events are typically activated weekly or monthly on PvP servers. Developing such a system with C++ ensures more stable and secure operation, especially when the system is built through source edit.
Developing 2X Event System with C++
To build a 2X event system with C++, you need to work on several key components:
- Functions controlling EXP and drop modules on the Game Server
- An event activation command synchronized with the Auth Server
- Database based timer or activity control for the event
Setting EXP Multiplier
You can modify the CalculateExperience function found in CharacterManager.cpp to make the EXP multiplier dynamic. For example, define a global bool variable and when the event is active, set this value to true to double the EXP amount. A similar process can be applied to the GenerateItem function inside DropHandler.cpp.
Event Timer and Activation
By setting up a timer-based system using Python or directly C++, you can automatically start the event at specific times. This process is typically done with timer classes. This method, recommended by Metin2 development experts like Martysama, reduces manual intervention and allows the system to operate more professionally.
Client-Side Interaction
With interfaces created via Py GUI or UIScript, players can be notified about the event start. Information should be transmitted through notice messages or chat box notifications from the game core. At Metin2 Lobby, we prioritize such visual and auditory alerts to enhance user experience.
Testing and Deployment[/BR]After compiling your 2X event system, you should check if all functions work as expected on your test server. Issues such as disconnections between auth and game servers or database access errors might occur. You can share your experiences with the Metin2Dev community to further optimize the system.
