Zamanı vaktinde 34kda yaptığım boş bi sistem farklılık olsun diye serverinize eklemeniz amacıyla paylaşıyorum. 
34kdan aldığım için getname fonk. sıkıntı yaparmı bilmiyorum sıkıntı yaparsa karşılaştırıp değiştirebilirsiniz.
uichat.py
Aratıyoruz ve bulduktan sonra altında flood engelleme vb. sistem varsa yani o sistemin if satırı geçiyorsa üstüne bir boşluk bırakıyoruz ve verdiğim kodları ekliyoruz.
Yani;
Bu bloğun altına ekliyoruz.
Eğer yoksa;
Ekliyoruz.Ayrıca oyuncunun bayrağınıda gösteren kod bloğu var sökmek istiyen olursa empire_id silinecek ve [Staff] - [Jinno] yazılarını içeren if bloğu komple silinecek.Yapamayanlar olursa yardımcı olurum.
Selametle :cay:
Sohbet Kısayol Komutları (Python)
Metin2 özel sunucularında geliştirme yaparken kullanıcı deneyimini artırmak oldukça önemli bir konudur. Özellikle sohbet sistemine entegre edilen kısayol komutları, oyuncuların daha hızlı ve etkili iletişim kurmasını sağlar. Bu yazıda Python tabanlı bir yapı kullanarak nasıl sohbet kısayolları tanımlanabileceğini ve bu yapıların Metin2 özel sunucularında nasıl uygulanabileceğini ele alacağız.
Python ile Sohbet Sistemi Nedir?
Python, Metin2 geliştirme sürecinde yaygın olarak kullanılan bir dildir. Özellikle UI (kullanıcı arayüzü), oyun içi eklentiler ve sunucu tarafında bazı mantıksal işlemler için tercih edilir. Sohbet sistemleri de bu yapıya entegre edilebilir. Oyuncular, belirli bir karakter dizisiyle başlayan mesajları gönderdiğinde, sistem bu mesajları özel komutlar olarak yorumlayabilir.
Kısayol Komutlarının Kullanımı
Sohbet kısayolları genellikle / ile başlar. Örneğin /yardım, /silah veya /duello gibi komutlar, sunucu tarafında özel işlevleri tetikler. Python kullanarak bu komutları tanıyıp, gerekli işlemleri gerçekleştirebilirsiniz. Örnek bir yapı şu şekilde olabilir:
Metin2 Sunucusuna Entegrasyon
Python ile yazılmış bu komut yapıları, genellikle root dizinine alınarak oyun içi sistemlere entegre edilir. Py Root klasörlerinde yer alan dosyalar, oyun tarafından doğrudan okunabilir. Bu sayede komut sistemi doğrudan oyun içi sohbet üzerinden çalıştırılabilir.
Özel Komut Tanımlama
Oyuncuların ihtiyaçlarına göre farklı kısayollar tanımlanabilir. Örneğin PvP sistemlerinde /duello komutu ile karşı oyuncuya meydan okuma yapılabilir. /banka komutu ile bankaya erişim sağlanabilir. /loot gibi bir komutla düşman öldüğünde otomatik eşya toplama aktif edilebilir.
Güvenlik ve Yetkilendirme
Tüm komutlar her oyuncu tarafından kullanılabilir olmamalıdır. Yetkisiz komut kullanımının önüne geçmek için yetkilendirme mekanizması kurulmalıdır. Oyuncu seviyesi, admin mi değil mi gibi kontroller yapılmalıdır. Bu da Python ile kolayca sağlanabilir.
Sonuç
Python ile yazılmış sohbet kısayol komutları, Metin2 özel sunucularında kullanıcı deneyimini ciddi anlamda artırabilir. Geliştiriciler, bu yapıyı kullanarak hem kullanıcı dostu hem de güçlü sistemler oluşturabilir. Metin2 geliştirme sürecinde Python bilgisi oldukça değerlidir.
Chat Shortcut Commands (Python)
When developing private Metin2 servers, enhancing user experience is a critical aspect. Especially integrating shortcut commands into the chat system allows players to communicate faster and more effectively. In this article, we will discuss how to define chat shortcuts using Python-based structures and how these can be implemented on Metin2 private servers.
What is a Chat System with Python?
Python is widely used during Metin2 development processes. It is often preferred for UI (user interface), in-game add-ons, and some logical operations on the server-side. Chat systems can also be integrated into this structure. When players send messages starting with certain character sequences, the system can interpret these messages as special commands.
Using Shortcut Commands
Chat shortcuts usually start with a /. For instance, commands like /help, /weapon, or /duel trigger special functions on the server-side. Using Python, you can recognize these commands and execute necessary actions. An example structure could look like this:
Integration with Metin2 Server
These command structures written in Python are typically placed into the root directory to be integrated into in-game systems. Files located in Py Root folders can be read directly by the game. This way, the command system can operate directly through in-game chat.
Defining Custom Commands
Different shortcuts can be defined based on player needs. For example, in PvP systems, the /duel command can challenge another player. The /bank command might provide access to the bank. A command like /loot could activate automatic item collection upon defeating an enemy.
Security and Authorization
Not all commands should be usable by every player. To prevent unauthorized command usage, authorization mechanisms must be set up. Checks such as player level, whether admin or not, etc., should be implemented. This can easily be achieved with Python.
Conclusion
Chat shortcut commands written in Python can significantly enhance user experience on Metin2 private servers. Developers can use this structure to build both user-friendly and powerful systems. Knowledge of Python is highly valuable during the Metin2 development process.
34kdan aldığım için getname fonk. sıkıntı yaparmı bilmiyorum sıkıntı yaparsa karşılaştırıp değiştirebilirsiniz.
uichat.py
Kod:
def __SendChatPacket(self, text, type):
Yani;
Kod:
if net.IsChatInsultIn(text): chat.AppendChat(chat.CHAT_TYPE_INFO, locale.CHAT_INSULT_STRING) else:
Ziyaretçiler için gizlenmiş link,görmek için üye olmalısınız!
Giriş yap veya üye ol.
Eğer yoksa;
Ziyaretçiler için gizlenmiş link,görmek için üye olmalısınız!
Giriş yap veya üye ol.
Ekliyoruz.Ayrıca oyuncunun bayrağınıda gösteren kod bloğu var sökmek istiyen olursa empire_id silinecek ve [Staff] - [Jinno] yazılarını içeren if bloğu komple silinecek.Yapamayanlar olursa yardımcı olurum.
Selametle :cay:
Sohbet Kısayol Komutları (Python)
Metin2 özel sunucularında geliştirme yaparken kullanıcı deneyimini artırmak oldukça önemli bir konudur. Özellikle sohbet sistemine entegre edilen kısayol komutları, oyuncuların daha hızlı ve etkili iletişim kurmasını sağlar. Bu yazıda Python tabanlı bir yapı kullanarak nasıl sohbet kısayolları tanımlanabileceğini ve bu yapıların Metin2 özel sunucularında nasıl uygulanabileceğini ele alacağız.
Python ile Sohbet Sistemi Nedir?
Python, Metin2 geliştirme sürecinde yaygın olarak kullanılan bir dildir. Özellikle UI (kullanıcı arayüzü), oyun içi eklentiler ve sunucu tarafında bazı mantıksal işlemler için tercih edilir. Sohbet sistemleri de bu yapıya entegre edilebilir. Oyuncular, belirli bir karakter dizisiyle başlayan mesajları gönderdiğinde, sistem bu mesajları özel komutlar olarak yorumlayabilir.
Kısayol Komutlarının Kullanımı
Sohbet kısayolları genellikle / ile başlar. Örneğin /yardım, /silah veya /duello gibi komutlar, sunucu tarafında özel işlevleri tetikler. Python kullanarak bu komutları tanıyıp, gerekli işlemleri gerçekleştirebilirsiniz. Örnek bir yapı şu şekilde olabilir:
Kod:
[B]def handle_chat_command(message):[BR][/BR][COLOR=red]if message.startswith('/yardım'):[/COLOR][BR][/BR] return 'Yardım menüsüne hoş geldiniz.'[BR][/BR][COLOR=red]elif message.startswith('/silah'):[/COLOR][BR][/BR] return 'Silah değiştirme işlemi başlatıldı.'[BR][/BR][COLOR=red]else:[/COLOR][BR][/BR] return None
Metin2 Sunucusuna Entegrasyon
Python ile yazılmış bu komut yapıları, genellikle root dizinine alınarak oyun içi sistemlere entegre edilir. Py Root klasörlerinde yer alan dosyalar, oyun tarafından doğrudan okunabilir. Bu sayede komut sistemi doğrudan oyun içi sohbet üzerinden çalıştırılabilir.
Özel Komut Tanımlama
Oyuncuların ihtiyaçlarına göre farklı kısayollar tanımlanabilir. Örneğin PvP sistemlerinde /duello komutu ile karşı oyuncuya meydan okuma yapılabilir. /banka komutu ile bankaya erişim sağlanabilir. /loot gibi bir komutla düşman öldüğünde otomatik eşya toplama aktif edilebilir.
Güvenlik ve Yetkilendirme
Tüm komutlar her oyuncu tarafından kullanılabilir olmamalıdır. Yetkisiz komut kullanımının önüne geçmek için yetkilendirme mekanizması kurulmalıdır. Oyuncu seviyesi, admin mi değil mi gibi kontroller yapılmalıdır. Bu da Python ile kolayca sağlanabilir.
Sonuç
Python ile yazılmış sohbet kısayol komutları, Metin2 özel sunucularında kullanıcı deneyimini ciddi anlamda artırabilir. Geliştiriciler, bu yapıyı kullanarak hem kullanıcı dostu hem de güçlü sistemler oluşturabilir. Metin2 geliştirme sürecinde Python bilgisi oldukça değerlidir.
Chat Shortcut Commands (Python)
When developing private Metin2 servers, enhancing user experience is a critical aspect. Especially integrating shortcut commands into the chat system allows players to communicate faster and more effectively. In this article, we will discuss how to define chat shortcuts using Python-based structures and how these can be implemented on Metin2 private servers.
What is a Chat System with Python?
Python is widely used during Metin2 development processes. It is often preferred for UI (user interface), in-game add-ons, and some logical operations on the server-side. Chat systems can also be integrated into this structure. When players send messages starting with certain character sequences, the system can interpret these messages as special commands.
Using Shortcut Commands
Chat shortcuts usually start with a /. For instance, commands like /help, /weapon, or /duel trigger special functions on the server-side. Using Python, you can recognize these commands and execute necessary actions. An example structure could look like this:
Kod:
[B]def handle_chat_command(message):[BR][/BR][COLOR=red]if message.startswith('/help'):[/COLOR][BR][/BR] return 'Welcome to the help menu.'[BR][/BR][COLOR=red]elif message.startswith('/weapon'):[/COLOR][BR][/BR] return 'Weapon change process initiated.'[BR][/BR][COLOR=red]else:[/COLOR][BR][/BR] return None
Integration with Metin2 Server
These command structures written in Python are typically placed into the root directory to be integrated into in-game systems. Files located in Py Root folders can be read directly by the game. This way, the command system can operate directly through in-game chat.
Defining Custom Commands
Different shortcuts can be defined based on player needs. For example, in PvP systems, the /duel command can challenge another player. The /bank command might provide access to the bank. A command like /loot could activate automatic item collection upon defeating an enemy.
Security and Authorization
Not all commands should be usable by every player. To prevent unauthorized command usage, authorization mechanisms must be set up. Checks such as player level, whether admin or not, etc., should be implemented. This can easily be achieved with Python.
Conclusion
Chat shortcut commands written in Python can significantly enhance user experience on Metin2 private servers. Developers can use this structure to build both user-friendly and powerful systems. Knowledge of Python is highly valuable during the Metin2 development process.
