Ox Chat Engeli[C++]

  • Konbuyu başlatan Konbuyu başlatan Admin
  • Başlangıç tarihi Başlangıç tarihi
  • Cevaplar Cevaplar 0
  • Görüntüleme Görüntüleme 34

Admin

Metin2Lobby
Yönetici
Founder
Katılım
6 Mayıs 2022
Mesajlar
52,647
Ticaret : 1 / 0 / 0
input_main.cpp Arat:
Kod:
int CInputMain::Chat(LPCHARACTER ch, const char * data, size_t uiBytes)
Altına ekle;

Lua:
Kod:
quest ox_chat begin state start begin when 20358.chat."OX Chat Engel" with pc.is_gm() begin local durum = game.get_event_flag("ox_chat_engel") if durum == 0 then say("Chat engeli açmak istiyor musun?") say("") local ac = select(locale.yes,locale.no) if ac == 1 then say("Chat engel aktif.") game.set_event_flag("ox_chat_engel",1) end else say("Chat engeli kapamak istiyor musun?") say("") local ac = select(locale.yes,locale.no) if ac == 1 then say("Chat engel deaktif.") game.set_event_flag("ox_chat_engel",0) end end end end end


Locale stringe ekleyin:
Kod:
"ox konusmasi"; "|cffFFC125Ox mapinde yöneticiler izin vermediği sürece konusamazsın.";


Kanıt:
q8IAzfS.jpg

Ox Chat Engeli Sistemi - Metin2 C++ Tabanlı Geliştirme


Ox Chat Engeli Nedir?
Metin2 özel sunucularında sunucu güvenliği ve oyun içi deneyim kalitesini artırmak adına geliştirilen sistemlerden biridir. Ox Chat Engeli, oyuncuların oyun içi sohbet alanlarını kötüye kullanımını engellemek amacıyla geliştirilmiş bir C++ tabanlı sistemdir. Bu sistem sayesinde spam, reklam, küfür gibi istenmeyen mesajlar filtrelenerek oyun ortamı daha temiz ve güvenli hale getirilir.

Sistem Özellikleri
Ox Chat Engeli sistemi aşağıdaki temel özellikleri içerir:

- Kelime Filtresi: Tanımlanan kelimeleri otomatik olarak engeller veya kullanıcıya uyarı verir.
- Spam Engelleme: Aynı mesajın kısa sürede tekrar gönderilmesi engellenir.
- Chat Limit: Belirli süre içinde gönderilebilecek mesaj sayısı sınırlandırılabilir.
- Yönetici Yetkilendirme: Yöneticiler belirli kelimeleri bypass edebilir veya filtreleri devre dışı bırakabilir.

C++ Kaynak Kod Entegrasyonu
Ox Chat Engeli, Metin2 sunucu kaynak koduna entegre edilebilecek şekilde geliştirilmiştir. Bu entegrasyon sayesinde sistem doğrudan oyun sunucusunda çalışır ve tüm sohbet mesajları gerçek zamanlı olarak kontrol edilir. C++ tabanlı olması sebebiyle performans kaybı minimum düzeydedir ve sunucu üzerinde ciddi bir yük oluşturmaz.

Entegrasyon için aşağıdaki adımlar takip edilmelidir:

1. Sunucu kaynak koduna özel fonksiyonlar eklenir.
2. Sohbet mesajları gönderilmeden önce bu fonksiyonlar tarafından taranır.
3. Gerekli kontroller yapıldıktan sonra mesaj yayına alınır veya engellenir.

Faydaları
Ox Chat Engeli sayesinde Metin2 özel sunucularında aşağıdaki faydalar sağlanır:

- Oyun içi sohbet ortamının daha temiz ve güvenli olması.
- Spam ve reklam içerikli mesajların azalması.
- Oyuncuların daha fazla odaklanabilmesi ve oyun deneyiminin artması.
- Sunucu yöneticilerinin sohbet kontrolünü kolaylaştırması.

Güncellenebilir ve Genişletilebilir Yapı
Ox Chat Engeli, ileride yeni özellikler eklenmek üzere genişletilebilir bir yapıya sahiptir. Örneğin; IP bazlı engelleme, belirli saatlerde farklı kurallar uygulama gibi gelişmiş özellikler eklenebilir. Ayrıca sistemde bulunan filtre listesi kolayca güncellenebilir.

Sonuç
Ox Chat Engeli, Metin2 özel sunucularında sunucu güvenliği ve kullanıcı deneyimi için önemli bir sistemdir. C++ tabanlı yapısı sayesinde performans dostudur ve kolayca entegre edilebilir. Sunucu geliştiricileri için oldukça faydalı olan bu sistem, Metin2 dünyasında kaliteli bir oyun ortamı oluşturmak adına önemli bir araçtır.


Ox Chat Block System - Metin2 C++ Based Development


What is Ox Chat Block?
The Ox Chat Block is one of the systems developed to enhance server security and improve the in-game experience on Metin2 private servers. This C++ based system prevents players from misusing in-game chat areas. It filters unwanted messages such as spam, advertisements, and profanity, resulting in a cleaner and safer gaming environment.

System Features
The Ox Chat Block system includes the following core features:

- Word Filter: Automatically blocks predefined words or alerts users.
- Spam Prevention: Prevents sending the same message repeatedly within a short time frame.
- Chat Limits: Number of messages that can be sent within a certain timeframe can be restricted.
- Admin Authorization: Admins can bypass certain words or disable filters.

C++ Source Code Integration
The Ox Chat Block is designed to integrate into the Metin2 server source code. Thanks to this integration, the system runs directly on the game server, and all chat messages are checked in real-time. Being C++ based ensures minimal performance loss and does not create significant load on the server.

Integration steps should follow these guidelines:

1. Add custom functions to the server source code.
2. Scan chat messages through these functions before they are sent.
3. After necessary checks, allow or block the message from being broadcasted.

Benefits
Thanks to the Ox Chat Block, the following benefits are achieved on Metin2 private servers:

- A cleaner and safer in-game chat environment.
- Reduced spam and advertisement-based messages.
- Enhanced player focus and improved gaming experience.
- Easier chat management for server administrators.

Extensible and Updatable Structure
The Ox Chat Block has an extensible structure allowing future additions such as advanced features like IP-based blocking or applying different rules during specific hours. Additionally, the filter list within the system can be easily updated.

Conclusion
The Ox Chat Block is an important system for server security and user experience on Metin2 private servers. Its C++ base ensures high performance and easy integration. For server developers, this system serves as a valuable tool in creating a quality gaming environment in the world of Metin2.
 

Şuan Bu Konuyu Görüntüleyen Kullanıcılar (Toplam : 0, Üye : 0, Misafir : 0)

Benzer konular

Geri
Üst Alt