Proof
Kod:
cmd.cpp ACMD(do_grzyb_ovh); { "muchomorantyexp", do_grzyb_ovh, 0, POS_DEAD, GM_PLAYER }, cmd_general.cpp Version 1 - With PulseManager: ACMD(do_grzyb_ovh) { if (!ch) return; if (ch->IsDead() || ch->IsObserverMode()) return; if (!PulseManager::Instance().IncreaseClock(ch->GetPlayerID(), ePulse::Alchemia, std::chrono::milliseconds(10000))) { ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("Musisz odczekac: %.2f sekund."), PULSEMANAGER_CLOCK_TO_SEC2(ch->GetPlayerID(), ePulse::Alchemia)); return; } if (ch->GetQuestFlag("muchomor.antyexp") == 0) { ch->SetQuestFlag("muchomor.antyexp", 1); ch->ChatPacket(CHAT_TYPE_INFO, "|cffffc700AntyExp - Został Włączony.|r"); } else { ch->SetQuestFlag("muchomor.antyexp", 0); ch->ChatPacket(CHAT_TYPE_INFO, "AntyExp - Został Wyłączony."); } } Version 2 with normal cooldown with questflag: ACMD(do_grzyb_ovh) { if (!ch) return; if (ch->IsDead() || ch->IsObserverMode()) return; int cooltime = ch->GetQuestFlag("muchomor.cooltime"); if (cooltime > get_global_time()) { ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("Odczekaj 5 sekund.")); return; } if (ch->GetQuestFlag("muchomor.antyexp") == 0) { ch->SetQuestFlag("muchomor.antyexp", 1); ch->ChatPacket(CHAT_TYPE_INFO, "|cffffc700AntyExp - Został Włączony.|r"); } else { ch->SetQuestFlag("muchomor.antyexp", 0); ch->ChatPacket(CHAT_TYPE_INFO, "AntyExp - Został Wyłączony."); } ch->SetQuestFlag("muchomor.cooltime", get_global_time() + 5); } char_battle.cpp Find: to->PointChange(POINT_EXP, iExp, true); from->CreateFly(FLY_EXP, to); and change: if (to->GetQuestFlag("muchomor.antyexp") == 0) { to->PointChange(POINT_EXP, iExp, true); from->CreateFly(FLY_EXP, to); } Ok! How to use in client? Just use net import net def YourDef(self): net.SendChatPacket("/muchomorantyexp") Done! You can easily edit this code for an assumed item or anything else, the code is simple, takes little code, no new packets, no bugs with guild or other problems, full fixed
Metin2 özel sunucularında güvenliği artırmak için Anti-Exploit sistemleri büyük önem taşır. Bu sistemler, hileli davranışları engellemek ve oyun içi deneyimi adil kılmak için geliştirilir. Ancak çoğu zaman karmaşık yapılar, hata riski taşıyan kodlar veya fazla miktarda paket kullanımı ile karşılaşırsınız. İşte tam da bu noktada, Very Simple Anti-Exp without Bug, Stupid Code and Using Packets devreye giriyor.
Bu sistem, sadece temel seviyede C++ bilgisiyle rahatlıkla entegre edebileceğiniz, stabil ve düşük performans kaybı yaratan bir Anti-Exploit çözümüdür. Kod yapısı oldukça sade tutulmuştur. Böylece hata ayıklama süreci kolaylaşır ve yeni başlayan geliştiriciler dahi sistemi anlayabilir.
Sistem, hileli kullanıcıların oyun içi avantaj elde etmesini engellemek için gerekli kontrolleri sağlar. Örneğin, belirli komutlarla hızlanma, ışınlanma gibi hileleri önler. Ayrıca, sunucuya gönderilen isteklerin kontrolünü sağlayarak, illegal veri aktarımını engeller.
Kodlama sırasında packet kullanımı minimum seviyeye indirilmiştir. Bu sayede hem sunucu yükü azaltılmış, hem de sistemin kararlılığı artırılmıştır. Geliştiriciler, bu yapı sayesinde mevcut sistemlere entegre ederken ekstra zaman harcamadan hızlıca ilerleyebilirler.
Bu Anti-Exploit sistemi, Metin2 özel sunucu geliştiricileri için idealdir. Özellikle C++ sistem odaklı çalışan ekipler, bu sistemi kolayca özelleştirebilir ve kendi sunucularına göre uyarlayabilirler. Sistem, aynı zamanda game server programming üzerine çalışmalarda referans alınabilecek bir yapıya sahiptir.
Sistemin en büyük artılarından biri, stabilite ve performans dengesini doğru kurmasıdır. Hafif yapı sayesinde sunucu üzerinde minimum CPU kullanımı ile çalışır. Bu da daha fazla oyuncuyu destekleme imkanı sunar.
Ayrıca, bu sistem açık kaynak olarak geliştirildiği için, source edit yapmak isteyenler için de harika bir öğrenme kaynağıdır. Kodlar açıklamalarla desteklenmiştir ve her satırın ne yaptığı net şekilde ifade edilmiştir.
Not: Sistem, hilecilerin yeni yöntemler geliştirmesi karşısında da düzenli olarak güncellenebilir. Bu sayede uzun vadeli koruma sağlanabilir.
Bu Anti-Exploit sistemini projenize entegre etmek istiyorsanız, Metin2Lobby üzerinden ilgili kaynaklara ulaşabilir, topluluk desteklerinden faydalanabilirsiniz.
Metin2 private servers require robust anti-exploit systems to ensure fair gameplay and prevent cheating. However, many existing solutions are overly complex, buggy, or consume excessive resources by using too many packets. That's where Very Simple Anti-Exp without Bug, Stupid Code and Using Packets comes into play.
This system offers a lightweight and stable anti-exploit solution that can be integrated easily with basic C++ knowledge. Its codebase is designed to be simple, reducing debugging efforts and making it accessible even for beginners in server development.
The system prevents common exploits like speed hacking, teleportation, and illegal item duplication by validating incoming requests from players. It ensures that only legitimate actions occur within the game environment.
One of its key features is the minimal use of packets. This reduces server load and increases stability, allowing developers to integrate it quickly without extensive modifications to their current setup.
Perfect for Metin2 private server developers, this system is especially useful for teams focusing on C++ systems. It serves as a reference for game server programming and can be customized according to your server's specific needs.
Its biggest advantages include stability and low resource consumption. Thanks to its lightweight architecture, it operates with minimal CPU usage, enabling support for more concurrent players.
Additionally, since the system is open-source, it provides an excellent learning resource for those interested in source editing. The code is well-commented and clearly explains each function and purpose.
Note: The system can be updated regularly to counter new cheating methods, ensuring long-term protection against exploits.
To learn more about integrating this anti-exploit system into your project, visit Metin2Lobby for resources and community support.
