Merhaba Arkadaşlar,
Konu Başlığında Belirttiğim Gibi Official Rolling Dice Sistemini Paylaşıyorum.
Sistem Mantıgı Bir grup ile boss kestiğiniz zaman hangi eşyanın size kaç oranla cıktıgını gösteriyor zar atıyor kısacası.
Sistem Kodlarını Test Edebirsiniz
kodlar:
eksik kod eklendi
not: alıntıdır.
gorsel eklenecektir.
Konu Başlığında Belirttiğim Gibi Official Rolling Dice Sistemini Paylaşıyorum.
Sistem Mantıgı Bir grup ile boss kestiğiniz zaman hangi eşyanın size kaç oranla cıktıgını gösteriyor zar atıyor kısacası.
Sistem Kodlarını Test Edebirsiniz
Ziyaretçiler için gizlenmiş link,görmek için üye olmalısınız!
Giriş yap veya üye ol.
kodlar:
Kod:
service.h //ekleyin #define __ENABLE_DICE_SYSTEM__ char_battle.cpp //ara if (ch->GetParty()) ch = ch->GetParty()->GetNextOwnership(ch, GetX(), GetY()); //değiştir if (ch->GetParty()) { ch = ch->GetParty()->GetNextOwnership(ch, GetX(), GetY()); #ifdef __ENABLE_DICE_SYSTEM__ ch = ch->GetParty()->Dice(ch, GetX(), GetY(), item->GetName()); #endif } party.cpp //dosyanın sonuna ekleyin #ifdef __ENABLE_DICE_SYSTEM__ LPCHARACTER CParty::Dice(LPCHARACTER ch, long x, long y, const char * szName) //item name { for (TMemberMap::iterator it = m_memberMap.begin(); it != m_memberMap.end(); ++it) { if (it->second.pCharacter->GetDesc() && DISTANCE_APPROX(it->second.pCharacter->GetX() - x, it->second.pCharacter->GetY() - y) < PARTY_DEFAULT_RANGE) { ChatPacketToAllMember(CHAT_TYPE_DICE_INFO, "|cffffe6ba*** Zar büyük nesne için atılıyor: %s ***", szName); while (1) { LPCHARACTER pkWinner; int iDice = 0; int iDraw = 0; for (TMemberMap::iterator it = m_memberMap.begin(); it != m_memberMap.end(); ++it) if (it->second.pCharacter->GetDesc() && DISTANCE_APPROX(it->second.pCharacter->GetX() - x, it->second.pCharacter->GetY() - y) < PARTY_DEFAULT_RANGE) { int iScore = number(1, 10000); if (iScore == iDice) iDraw == iScore; else if (iDice == 0 || iScore > iDice) { pkWinner = it->second.pCharacter; iDice = iScore; } ChatPacketToAllMember(CHAT_TYPE_DICE_INFO, "|cffffe6ba*** ->\t\t\t\t\t%s - Zar sonucu: %d ***", it->second.pCharacter->GetName(), iScore); } if (iDice != iDraw) { ChatPacketToAllMember(CHAT_TYPE_DICE_INFO, "|cffbb00ff*** Kazanan %s : %s ***", szName, pkWinner->GetName()); return pkWinner; } else { ChatPacketToAllMember(CHAT_TYPE_DICE_INFO, ""); ChatPacketToAllMember(CHAT_TYPE_DICE_INFO, "|cffffe6ba*** Zar büyük nesne için tekrar atılıyor: %s ***", szName); } } } } return ch; } #endif party.h //ara void P2PSetMemberLevel(DWORD pid, BYTE level); //veya bunu ara bool IsPartyInDungeon(int mapIndex); //ekleyin #ifdef __ENABLE_DICE_SYSTEM__ LPCHARACTER Dice(LPCHARACTER ch, long x, long y, const char * szName); #endif
Ziyaretçiler için gizlenmiş link,görmek için üye olmalısınız!
Giriş yap veya üye ol.
hatırlattıgın için teşekkürlernot: alıntıdır.
gorsel eklenecektir.
Metin2 Lobby olarak sunucu geliştirme dünyasında yenilikçi sistemlerle öne çıkıyoruz. Bu yazıda, C++ ve Python dilleriyle geliştirilmiş olan [C++/Python] Dice System BOSS Official adlı sistemden bahsedeceğiz. Bu sistem, Metin2 özel sunucularında zar mekaniği üzerinden oyun içi etkileşimleri zenginleştirmek ve özel etkinlikler düzenlemek isteyen geliştiriciler için harika bir çözümdür.
Dice System BOSS, kullanıcı dostu arayüz yapısı sayesinde hem C++ hem de Python tabanlı modüllerle entegre çalışabilir. Sistem, Martysama ve diğer Metin2 geliştirme merkezlerinde sıkça kullanılan uiscript ve py root yapılarıyla da uyumlu çalışmaktadır. Oyun içi GUI arayüzü, Py GUI teknolojisiyle oluşturulmuştur. Böylece geliştiriciler kolayca özelleştirme yapabilir, zar atma mekanizmalarını oyun içi etkinliklere entegre edebilirler.
Sistemin temel özellikleri arasında özel efektler, animasyonlar, zar sonucuna göre ödüller ve etkinlik yönetim panelleri yer almaktadır. Geliştiriciler, game core veya db core gibi temel sunucu yapılarına zar sistemini kolayca entegre edebilirler. Bu sayede hem auth hem de game sunucularında sorunsuz çalışır. Source edit süreçlerinde minimum müdahaleyle sistemi aktif hale getirebilirsiniz.
Dice System BOSS, aynı zamanda Metin2 compile süreçlerinde de sorunsuz çalışır. Geliştiriciler, client src üzerinde gerekli değişiklikleri yaparak zar sistemini doğrudan oyun içi arayüze entegre edebilir. Sistem, pack dosyalarına da kolayca eklenebilir. Metin2 server src ile uyumlu çalışması sayesinde, sunucu sahipleri kendi özel oyun mekaniklerini kolayca geliştirebilir.
Sistem, Metin2 PvP sistemleri ile de entegre çalışarak, PvP etkinliklerinde zar atma mekanizmalarıyla yeni stratejiler ve eğlence katmanları sunar. Örneğin, belirli bir PvP skoruna ulaşan oyuncular, özel bir zarda şanslarını deneyebilir ve büyük ödüller kazanabilir. Bu tür etkinlikler, oyuncuların PvP sistemlerine olan ilgisini artırır.
Dice System BOSS, Metin2 development camiasında popüler olan metin2dev standartlarına da uygundur. Geliştirme sürecinde kullanılan core yapılarla tam uyum sağlar. DB tarafında da özel tablolar üzerinden sistem verileri saklanabilir. Bu sayede zar geçmişleri, ödül durumları ve etkinlik istatistikleri gibi veriler kolayca takip edilebilir.
Sistemi satın almak ya da daha fazla bilgi almak isterseniz Metin2Lobby üzerinden bizlere ulaşabilirsiniz. Yetkili geliştirici desteği ile sistemi sunucunuza entegre etmede yardımcı oluyoruz.
Metin2 Lobby brings innovative systems to the server development world. In this article, we will discuss the [C++/Python] Dice System BOSS Official, developed with C++ and Python. This system enriches in-game interactions through dice mechanics and is perfect for developers who want to organize special events on Metin2 private servers.
The Dice System BOSS can integrate seamlessly with both C++ and Python-based modules thanks to its user-friendly interface structure. The system is compatible with uiscript and py root structures frequently used by Martysama and other Metin2 development centers. The in-game GUI is built using Py GUI technology, allowing developers to easily customize and integrate dice mechanisms into in-game activities.
Key features of the system include special effects, animations, rewards based on dice results, and event management panels. Developers can easily integrate the dice system into core server structures such as game core or db core. This ensures smooth operation on both auth and game servers. You can activate the system with minimal intervention during source edit processes.
The Dice System BOSS works flawlessly during Metin2 compile processes. Developers can integrate the dice system directly into the in-game interface by making necessary adjustments to the client src. The system can also be easily added to pack files due to its compatibility with Metin2 server src, allowing server owners to develop their own unique game mechanics.
The system also integrates with Metin2 PvP systems, offering new strategies and entertainment layers during PvP events through dice mechanisms. For example, players reaching a certain PvP score can test their luck with a special dice roll and win big rewards. Such events increase player engagement with PvP systems.
The Dice System BOSS complies with metin2dev standards popular in the Metin2 development community. It fully integrates with core structures used during development. On the DB side, system data can be stored via custom tables. This allows easy tracking of dice histories, reward statuses, and event statistics.
To purchase the system or obtain more information, you can contact us through Metin2Lobby. We provide official developer support to assist you in integrating the system into your server.
