Oltayı geliştirirken başarısız olursa 1 seviye geri düşmez, yalnızca %10 ustalık puanı kaybettirir.
*Güncelleme*
Oyuncu bilgilendirme mesajları dahil edildi.
Log detaylandırıldı.
Ziyaretçiler için gizlenmiş link,görmek için üye olmalısınız!
Giriş yap veya üye ol.
*Güncelleme*
Oyuncu bilgilendirme mesajları dahil edildi.
Test sunucusu destekli debug
Değişkenler martysama uyarlandı.
Kod:
LogManager::instance().RefineLog(ch->GetPlayerID(), rod->GetName(), rod->GetID(), iAdv, 0, "ROD"); #ifdef ENABLE_FISHINGROD_RENEWAL { int curSocketValue = rod->GetSocket(0); if (curSocketValue > 0) { int reducedValue = curSocketValue - (curSocketValue * 10 / 100); rod->SetSocket(0, reducedValue); ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("Geliştirme başarısız oldu. Oltanın ustalık puanı %%10 azaldı.")); if (test_server) { ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("[DEBUG] Önceki ustalık puanı: %d"), curSocketValue); ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("[DEBUG] Yeni ustalık puanı: %d"), reducedValue); } } else { rod->SetSocket(0, 0); ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("Oltanın ustalık puanı zaten sıfırdı.")); } LogManager::instance().ItemLog(ch, rod, "REFINE_FISH_ROD_FAIL", rod->GetName()); return 0; } #else { DWORD newItemVnum = rod->GetValue(4); LPITEM pkNewItem = ITEM_MANAGER::instance().CreateItem(newItemVnum, 1); if (pkNewItem) { BYTE bCell = rod->GetCell(); ITEM_MANAGER::instance().RemoveItem(rod, "REMOVE_REFINE_FISH_ROD"); pkNewItem->AddToCharacter(ch, TItemPos(INVENTORY, bCell)); ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("Geliştirme başarısız oldu. Oltanız kırıldı ve yerine yeni bir eşya verildi.")); LogManager::instance().ItemLog(ch, pkNewItem, "REFINE_FISH_ROD_FAIL", pkNewItem->GetName()); return 0; } } #endif return 2;
MaviAyGames | Olta Yükseltmesine Bir Yenilik [C++] - Metin2 Lobby
Metin2 özel sunucularında geliştirilen sistemlerden biri olan olta yükseltme mekanizması, oyuncuların karakter gelişimini daha keyifli hale getirmektedir. Ancak bu sistemlerin sadece estetik değil, aynı zamanda oyun dengesi açısından da optimize edilmesi büyük önem taşır. MaviAyGames, bu doğrultuda C++ tabanlı, özgün bir olta yükseltme sistemi geliştirmiş ve Metin2 özel sunucu geliştiricileri için yeni bir pencere aralamıştır.
C++ tabanlı sistemler, Metin2 özel sunucularının ana yapısını oluşturan game server ve client tarafında yapılabilecek en güçlü ve esnek düzenlemeleri sağlar. Bu sayede, olta gibi genellikle estetik veya ikincil sistem olarak düşünülen özellikler bile, karmaşık algoritmalar ve özel şans mekanikleri ile yeniden yorumlanabilmektedir.
Orijinal Sistemler ile ayırt edici bir konum elde eden MaviAyGames, bu projede olta yükseltme işlemini sadece basit bir +%B mekaniğiyle değil, aynı zamanda özel animasyonlar, gelişmiş grafik efektleri ve özel item düşme mekanikleri ile desteklemiştir. Bu sayede, oyuncular olta seviyesini yükseltirken hem görsel olarak zengin hem de stratejik bir deneyim yaşamaktadır.
Neden C++ Kullanılır?
Metin2 özel sunucularında server-side işlemler, genellikle C++ ile yazılmaktadır. Game server ve auth server gibi temel yapılar C++ ile geliştirildiği için, bu sistemlere entegre olacak herhangi bir özel sistem de C++ dilinde yazılarak daha hızlı ve güvenli çalışabilir. Olta yükseltme gibi sistemlerin, veritabanı ile entegre çalışması ve canlı server üzerinde dinamik olarak değişmesi, C++ ile daha kolay hale gelmektedir.
Sistemin Özellikleri
- Kod bazlı geliştirme: Tüm sistem C++ ile yazılmıştır.
- DB entegrasyonu: Oltaların veritabanında tutulması ve yükseltmelerin DB üzerinden kontrol edilmesi.
- Otomatik sistem: Oltayı yükseltmek için özel item veya NPC gerekmez.
- Yedekleme: Sunucu çökse bile oltaların kaybolmaması için sistem tasarımı yapılmıştır.
- Özel efektler: Oltayı yükselterken görsel efektler ile kullanıcıya geri bildirim verilir.
Metin2 Lobby olarak biz de bu tarz özgün ve kaliteli sistemleri takip ediyor, Metin2 geliştiricileri için kaynak kod, script, py GUI, uiscript, pack ve server src gibi içeriklerle destek oluyoruz. Martysama ve diğer geliştiricilerin katkılarıyla Metin2 özel sunucu dünyasında sürekli yeniliklere imza atıyoruz.
Sonuç
MaviAyGames tarafından geliştirilen bu sistem, Metin2 özel sunucularında olta mekaniğini daha da keyifli ve stratejik hale getiriyor. C++ ile yazılmış olması, sistemin performans ve güvenlik açısından üst düzey bir çözüm sunmasının yanında, geliştiriciler için de kolayca entegre edilebilir bir yapı sunmaktadır. Metin2 lobby olarak, bu tip yenilikleri takip edip, topluluğumuza aktarmaya devam edeceğiz.
MaviAyGames | A New Twist on Fishing Rod Enhancement [C++] - Metin2 Lobby
In Metin2 private servers, fishing rod enhancement systems are among the features that make character progression more enjoyable. However, these systems must be optimized not only aesthetically but also in terms of game balance. MaviAyGames has developed an original, C++-based fishing rod enhancement system, opening up new possibilities for Metin2 private server developers.
C++ based systems provide the most powerful and flexible customizations on both game server and client sides, which form the core structure of Metin2 private servers. This allows features like fishing – often considered aesthetic or secondary – to be reinterpreted with complex algorithms and custom chance mechanics.
Original Systems like those from MaviAyGames distinguish themselves by supporting the fishing rod upgrade process not just with a simple +%B mechanism, but also through special animations, enhanced visual effects, and unique drop mechanisms. This way, players experience a visually rich and strategic gameplay while leveling their fishing rod.
Why C++?
Server-side operations in Metin2 private servers are typically coded in C++. Since fundamental structures such as game server and auth server are built with C++, any custom systems integrated into them can run faster and more securely when written in C++. Systems like fishing rod enhancement, which require database integration and dynamic updates on live servers, become easier to implement with C++.
Features of the System
- Code-based development: Entire system coded in C++.
- Database integration: Rods stored in database and upgrades managed via DB.
- Automatic system: No special items or NPCs required to upgrade the fishing rod.
- Backup system: Designed to prevent rod loss even if server crashes.
- Special effects: Visual feedback provided during the upgrade process.
Metin2 Lobby supports such original and high-quality systems by providing source code, scripts, py GUI, uiscript, packs, and server src for Metin2 developers. With contributions from Martysama and other developers, we continue to bring innovations to the world of Metin2 private servers.
Conclusion
The system developed by MaviAyGames makes the fishing mechanic in Metin2 private servers more enjoyable and strategic. Being written in C++, this solution offers high-level performance and security, while also providing an easily integrable structure for developers. As Metin2 Lobby, we will continue to follow and share such innovations with our community.
