Bağırmadan konuşmaya Level ekleme

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

Admin

Metin2Lobby
Yönetici
Founder
Katılım
6 Mayıs 2022
Mesajlar
52,647
Ticaret : 1 / 0 / 0
kUGKll8.png

Root uichat.py aratılır;
Kod:
def __SendShoutChatPacket(self, text):[/FONT]
Kod bloğu full değiştirilir ( - );
Kod:
def __SendShoutChatPacket(self, text):         import player         if 1 == len(text):             self.RunCloseEvent()             return                      if app.GetTime() < self.lastShoutTime + 15:             chat.AppendChat(chat.CHAT_TYPE_INFO, localeInfo.CHAT_SHOUT_LIMIT)             self.__ResetChat()             return                      self.__SendChatPacket("[Lv. " + str(player.GetStatus(player.LEVEL)) + "]: " + text[1:], chat.CHAT_TYPE_SHOUT)         self.__ResetChat()         self.lastShoutTime = app.GetTime()



Size uygun olanını verdiğim sitelerden alt kısımdan kopyalayın yada down edin.



Saygılarımla Vectors..

Bağırmadan Konuşmaya Level Ekleme

Metin2 özel sunucularında geliştirme yaparken, oyuncuların oyun içi deneyimini artırmak için birçok küçük ama etkili sistem entegre edilebilir. Bunlardan birisi de 'bağırmadan konuşmaya level ekleme' sistemidir. Bu sistem sayesinde, oyuncular level seviyesine göre belirli bir mesaj uzunluğunu aşmadan sohbete katılabilmektedir. Bu özellik, özellikle düşük seviye oyuncuların sohbet spamini engeller ve sunucu atmosferini daha kontrollü hale getirir.

Sistem Nedir ve Nasıl Çalışır?

Bu sistem genellikle Python kök dosyalarında (py root) tanımlanır. Oyuncunun mevcut leveline göre konuşma uzunluğu belirlenir. Örneğin, 1-10 level arası oyuncular sadece 10 karakter uzunluğunda mesaj gönderebilirken, 50+ level oyuncuları 50 karaktere kadar mesaj gönderebilir. Bu, sohbeti daha disiplinli hale getirir ve yüksek level oyuncuların sesini duyurmasını sağlar.

Python GUI ve Uiscript Entegrasyonu

Sistemi kullanıcı dostu hale getirmek için Py GUI veya uiscript kullanabilirsiniz. Örneğin, bir UI penceresi üzerinden oyuncuların kendi level sınırlamalarını görebilmesi sağlanabilir. Bu tür küçük arayüz değişiklikleri, kullanıcı memnuniyetini artırır ve sistem kullanımı kolaylaşır.

C++ Kaynak Kod ile Entegrasyon

Sunucu tarafında çalışan bu sistem, game server programming ile C++ dilinde geliştirilen src dosyalarında da tanımlanabilir. Özellikle auth ve game core sistemleri ile entegre çalışarak, mesaj gönderme sırasında level kontrolü yapılabilir. Bu, daha güçlü bir güvenlik ve kontrol sağlar.

Neden Kullanmalısınız?

Bu tür sistemler, Metin2 özel sunucularında PvP ortamını daha keyifli hale getirir. Spam engeli sayesinde gerçek sohbetler gelişir, düşük seviye bot hesapları sohbette etkisiz hale gelir. Bu da genel oyun deneyimini ciddi anlamda artırır.

Sonuç

Level bazlı konuşma uzunluğu sistemi, Metin2 özel sunucularında küçük ama etkili bir yenilik olabilir. Hem server src hem de client src üzerinde geliştirilebilir. Martysama gibi sistemlerle uyumlu olarak çalışabilir. Bu sistem, core yapılarla entegre olduğunda, sunucu yöneticilerine büyük kolaylıklar sağlar.


Adding Level-Based Chat Limits Without Shouting

When developing Metin2 private servers, many small but effective systems can be integrated to enhance the player experience within the game. One such feature is adding level-based limits to chat messages without shouting. This system allows players to send messages up to a certain character limit based on their level. It helps prevent low-level players from spamming the chat and maintains a more controlled server atmosphere.

What Is The System and How Does It Work?

This system is generally defined in the Python root files (py root). Depending on the player's current level, the allowed message length is determined. For instance, players between levels 1-10 may only send messages up to 10 characters long, while players above level 50 might be allowed up to 50 characters. This makes chat more disciplined and ensures higher-level players are heard more clearly.

Integration with Python GUI and Uiscript

To make this system user-friendly, you can utilize Py GUI or uiscript. For example, through a UI window, players can view their own level-based chat limits. Such minor interface adjustments increase user satisfaction and simplify the usage of the system.

Integration with C++ Source Code

This system can also be implemented in C++ source files used for game server programming, particularly within auth and game core systems. By integrating with these components, level checks can occur during message sending, providing stronger security and control.

Why Should You Use It?[/BR][/BR]Such systems make the PvP environment in Metin2 private servers more enjoyable. With anti-spam measures in place, real conversations develop, and low-level bot accounts become less disruptive in chat. This significantly enhances the overall gaming experience.

Conclusion[/BR][/BR]A level-based chat length system can be a small but impactful addition to Metin2 private servers. It can be developed on both server src and client src. Compatible with systems like Martysama, this system provides great conveniences for server administrators when integrated with core structures.
 

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

Benzer konular

Geri
Üst Alt