Bağırmayı Devre Dışı Bırakmak.

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

Admin

Metin2Lobby
Yönetici
Founder
Katılım
6 Mayıs 2022
Mesajlar
52,647
Ticaret : 1 / 0 / 0
Selam arkadaşlar öncelikle şu konu bir istekte bulunulmuş. Bende yaptım ve sizlerle paylaşıyorum. Ekleyen oyun için görüntü çekip atabilir denemedim.

/e shout_disable 1 - Devre Dışı Bırakır
/e shout_disable 0 - Aktif Eder.

Eğer CMD Shortcut kullanmıyorsanız /e yerine /eventflag olarak yazmanız gerekmekte.




Metin2 Sunucularında Bağırmayı Devre Dışı Bırakmak

Metin2 özel sunucuları geliştirirken oyuncu deneyimini optimize etmek, bazı sistemleri kapatmak veya özelleştirmek oldukça önemlidir. Bunlardan birisi de bağırmayı devre dışı bırakmaktır. Bağırmak, Metin2 oyununda belirli bir mesajı harita genelinde duyurmak için kullanılan bir özelliktir. Ancak bu özellik, özellikle küçük sunucularda spam ve rahatsız edici mesajlar nedeniyle istenmeyen durumlara yol açabilir. Bu nedenle, birçok geliştirici bağırmayı devre dışı bırakmayı tercih eder. Bu yazıda, Metin2 özel sunucularında bağırmayı nasıl kapatabileceğinizi detaylı olarak ele alacağız.

Bağır Sistemi Nedir?

Metin2'de bağır komutu, oyuncuların belirli bir mesajı harita üzerindeki diğer tüm oyunculara gösterebilmesini sağlar. Varsayılan olarak, bağırma işlemi '!' karakteriyle yapılır. Örneğin '!Sunucu şu anda aktif' gibi bir mesaj tüm oyuncular tarafından görülebilir. Bu sistem, duyuru yapmak için faydalı olabilir ancak kontrolsüz kullanımında spam riski taşır.

Neden Bağırmayı Kapatmalısınız?

Oyuncu memnuniyetini artırmak adına bazı sistemleri sınırlamak mantıklıdır. Özellikle küçük ve orta ölçekli Metin2 sunucularında bağırma özelliği, spam, reklam ve rahatsız edici içerik paylaşımı için kullanılabilir. Bu da oyun içi deneyimi bozabilir. Ayrıca bazı sunucularda bağırma yetkisi sadece GM (Game Master) kullanıcılar için geçerli olabilir. Bu da bağırmayı tamamen kapatmak veya yetkilendirilmiş kullanıcılarla sınırlamak istenmesinin bir başka sebebidir.

Bağırmayı Devre Dışı Bırakma Yöntemleri

Bağırmayı devre dışı bırakmak için farklı yöntemler mevcuttur. Bu yöntemler genellikle C++ kaynak kodları üzerinden veya oyun içi ayarlarla yapılır. Aşağıda iki temel yöntemi bulabilirsiniz:

1. Client Tarafında Ayar Yapmak

Client tarafında bağırma özelliğini devre dışı bırakmak için UI scriptlerinde değişiklik yapılabilir. Uiscript alt yapısı kullanılırken, bağırma fonksiyonuna erişimi engellemek mümkündür. Bu işlem genellikle 'ChatWindow.py' veya benzeri dosyalarda yapılır. Bağır butonuna ait kod satırları silinerek veya yorum satırına alınarak bu özellik kapatılabilir.

2. Game Server Kaynak Kodlarında Değişiklik Yapmak

Game server tarafında bağırma işlemini devre dışı bırakmak için C++ kodları üzerinde çalışmak gerekir. Bağırma komutunu işleyen fonksiyonlar genellikle 'input_main.cpp' veya 'char.cpp' gibi dosyalarda yer alır. Burada 'CMD_CHAT' veya benzeri tanımlamaları yorum satırına alarak veya doğrudan kaldırarak bağırma işlemini tamamen kapatabilirsiniz. Bu işlem, daha kalıcı ve güvenli bir yöntemdir çünkü client tarafında yapılan değişiklikler bazen bypass edilebilir.

Python ile Bağırma Sistemini Kontrol Etme

Py root sistemlerinde bağırma fonksiyonlarını kontrol etmek için Python scriptleri kullanılabilir. Özellikle 'game.py' veya 'chat.py' gibi modüllerde bağırma komutlarına özel filtreler yazarak, sadece belirli kullanıcı gruplarının bağırmasına izin verebilirsiniz. Bu sayede hem spam önlenir hem de kontrollü bir duyuru sistemi oluşturulabilir.

Sonuç

Metin2 özel sunucularında bağırma sistemini devre dışı bırakmak, oyuncu deneyimini ciddi anlamda artırabilir. Bu işlem, hem C++ server kaynak kodları hem de client tarafında yapılabileceği gibi Python sistemleri ile de özelleştirilebilir. Amacınız, spamı önlemek, oyun içi düzeni korumak ya da sadece yetkililerin duyuru yapmasını sağlamaksa bağırma sistemini kapatmanız oldukça mantıklı olacaktır.

Kaynak Kod Düzenlemeleri Hakkında Not: Bu tür düzenlemeler, Metin2 sunucu kaynak kodlarında derinlemesine bilgi gerektirir. Eğer tecrübeniz yoksa, Metin2Lobby topluluğundan destek almanız önerilir.


Disabling Shout Feature in Metin2 Servers

When developing private Metin2 servers, optimizing the player experience by disabling certain systems or customizing them is highly important. One of these features is the shout function. In Metin2, shouting allows players to broadcast messages across the entire map. However, this feature can cause unwanted situations such as spam and disruptive content, especially on smaller servers. Therefore, many developers prefer to disable the shout function. In this article, we will go into detail about how to turn off the shout function on Metin2 private servers.

What Is the Shout System?

In Metin2, the shout command allows players to display a message to all other players on the same map. By default, the shout function is triggered with the '!' character. For example, a message like '!Server is currently active' can be seen by all players on the map. While this system can be useful for announcements, it carries the risk of being misused for spamming if not controlled properly.

Why Should You Disable Shouting?

Limiting certain systems is logical in order to enhance player satisfaction. On small to medium-sized Metin2 servers, the shout feature might be misused for spam, advertisements, or disruptive content, which can ruin the in-game experience. Additionally, on some servers, the shout privilege is limited only to GM (Game Master) users. This is another reason why you might want to completely disable the shout feature or restrict it to authorized users.

Methods to Disable Shouting

There are different methods to disable the shout feature. These usually involve modifications in C++ source codes or in-game configurations. Below you can find two main approaches:

1. Modifying Client-Side Settings

To disable the shout feature on the client side, changes can be made in UI scripts. When using the uiscript framework, access to the shout function can be blocked. This is typically done within files like 'ChatWindow.py' or similar. By deleting or commenting out the lines of code related to the shout button, this feature can be turned off.

2. Modifying Game Server Source Code

To disable shouting from the game server side, you need to work on C++ code. Functions that handle the shout command are usually located in files like 'input_main.cpp' or 'char.cpp'. By commenting out or directly removing the 'CMD_CHAT' or similar definitions, you can completely disable the shout functionality. This approach is more permanent and secure because client-side modifications can sometimes be bypassed.

Controlling Shout Function with Python

In Py Root systems, Python scripts can be used to control shout functions. Particularly in modules like 'game.py' or 'chat.py', you can write custom filters for shout commands to allow only specific user groups to use the shout function. This prevents spam while allowing for a controlled announcement system.

Conclusion

Disabling the shout system on Metin2 private servers can significantly improve the player experience. This can be done through both C++ server source code and client-side modifications, and can also be customized using Python systems. If your goal is to prevent spam, maintain in-game order, or ensure only authorized personnel can make announcements, then disabling the shout system is a very logical step.

Note on Source Code Modifications: Such modifications require in-depth knowledge of Metin2 server source code. If you lack experience, it's recommended to seek support from the Metin2Lobby community.
 

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

Benzer konular

Geri
Üst Alt