Simyaya bakarak yapısını kavrayınca kolay oldu ve gerisi geldi 
Ziyaretçiler için gizlenmiş link,görmek için üye olmalısınız!
Giriş yap veya üye ol.
Ziyaretçiler için gizlenmiş link,görmek için üye olmalısınız!
Giriş yap veya üye ol.
Çoktan varola gelen bir sistem olmuş olabilir fakat eğer konuyu görürseniz kapattırırım
KREDIT :
Chatten Item Yansıtma: Herkes Arıyormuş Dediler, Kim Dedi Sen Söyle!
Metin2 özel sunucularında geliştirme yaparken karşılaşılan yaygın sorunlardan birisi, oyuncuların chatten belirli itemleri talep etmesidir. Bu durum hem sunucu sahipleri hem de geliştiriciler için zaman zaman zorlayıcı olabilir. Bu yazıda, chatten item yansıtma işlemi nasıl yapılır, hangi sistemler kullanılır ve bu konuda neler yapılabilir, detaylıca ele alacağız.
Metin2 Chat Sistemi ve Item Talepleri
Metin2 özel sunucularında, oyuncular genellikle chat üzerinden çeşitli itemlerin düşmesini veya sunucuya eklenmesini talep ederler. Bu talepler bazen mantıklı bazen de tamamen rastgele olabilir. Örneğin, bir oyuncu chat'e 'Golden Armor' yazdığı anda bu itemin düşmesini isteyebilir. İşte bu noktada geliştirici olarak devreye bir chat dinleme sistemi girer.
Chat Dinleme Sistemi Nedir?
Chat dinleme, oyuncunun chat'e yazdığı metni yakalayıp, belirli kurallara göre işlemeye yarayan bir sistemdir. Bu sistem genellikle Python ya da C++ tabanlıdır ve server-side çalışır. Oyuncu chat'e bir şey yazdığında, bu mesaj önce auth veya game sunucusuna gider. Burada bir filtreleme yapılır ve gerekirse item yansıtma gibi işlemler başlatılır.
Python GUI ve Uiscript ile Chat Dinleme
Metin2 özel sunucularında, bazı geliştiriciler Python GUI ve uiscript kullanarak daha gelişmiş chat sistemleri kurarlar. Özellikle admin paneli üzerinden chatten gelen isteklere hızlı yanıt vermek için bu yöntem oldukça tercih edilir. Python tarafında yazılan bir script, chatten gelen verileri işler ve istenen itemi belirlenen koordinatlarda veya belirli bir oyuncuya düşürür.
Chat Komutları ile Item Yansıtma Nasıl Yapılır?
Bazı sunucularda chat komutları doğrudan script ile entegre edilmiştir. Örneğin, bir oyuncu '!item GoldenHelmet' yazdığında, bu komut Python veya C++ ile yazılmış bir script tarafından işlenir ve ilgili item o oyuncunun bulunduğu konuma düşer. Bu tarz sistemlerde güvenlik çok önemlidir çünkü kötü niyetli kullanıcılar exploit oluşturabilir.
C++ ile Chat Dinleme ve Item Düşürme
C++ tabanlı sunucularda chat dinleme işlemi doğrudan game core üzerinde yapılır. Bu işlem için genellikle martysama SRC gibi kaynaklar kullanılır. Bu SRC'lerde bulunan fonksiyonlar, chat mesajlarını yakalayıp, belirli anahtar kelimelere göre item yansıtma işlemini başlatır. Bu işlem oldukça hızlı ve güvenlidir çünkü doğrudan C++ seviyesinde çalışır.
Pack ve DB Entegrasyonu
Item yansıtma işlemi sırasında, yansıtmak istediğiniz item'in sunucu veritabanında (DB) tanımlı olması gerekir. Aksi takdirde item düşse bile sistem onu tanımaz. Bu yüzden doğru bir pack ve DB yönetimi şarttır. Ayrıca item ID'leri doğru şekilde ayarlanmalıdır.
Sonuç
Chatten item yansıtma sistemi, Metin2 özel sunucularında hem eğlence hem de yönetim açısından önemli bir özelliktir. Doğru yapılandırıldığında, oyuncuların taleplerini hızlıca karşılamak mümkün olur. Ancak bu sistemin güvenliği ve stabilitesi için dikkatli planlama yapılması gerekir. Hem Python hem de C++ ile bu işlem gerçekleştirilebilir. Kullandığınız SRC, DB ve pack yapılarına dikkat etmeniz önerilir.
Kaynaklar
Metin2Lobby - Metin2 Development & Server Guides
Reflecting Items from Chat: Everyone Said They Were Looking for It, Who Said So, You Tell!
One of the common issues encountered while developing Metin2 private servers is players requesting specific items through the chat. This situation can sometimes be challenging for both server owners and developers. In this article, we will detail how to reflect items from chat, which systems are used, and what can be done regarding this topic.
Metin2 Chat System and Item Requests
In Metin2 private servers, players often request certain items to drop or be added to the server via chat. These requests can sometimes be logical, other times completely random. For example, a player might write 'Golden Armor' in the chat and expect that item to drop immediately. At this point, a chat listening system comes into play for developers.
What is a Chat Listening System?
Chat listening refers to a system that captures the text written by a player in the chat and processes it according to specific rules. This system is usually based on Python or C++ and operates server-side. When a player writes something in the chat, the message first goes to the auth or game server. There, filtering occurs, and if necessary, actions like item reflection may be triggered.
Chat Listening with Python GUI and Uiscript
Some developers in Metin2 private servers use Python GUI and uiscript to build more advanced chat systems. This method is particularly preferred for quickly responding to requests coming from the chat via an admin panel. A Python-based script processes incoming chat data and drops the requested item at designated coordinates or to a specific player.
How to Reflect Items from Chat Commands?
On some servers, chat commands are directly integrated with scripts. For instance, if a player types '!item GoldenHelmet', this command is processed by a Python or C++ script and the related item is dropped where the player is located. Security is very important in such systems since malicious users could create exploits.
Chat Listening and Item Dropping with C++
In C++ based servers, chat listening happens directly within the game core. For this process, sources like martysama SRC are commonly used. Functions found in these sources capture chat messages and initiate item reflection upon detecting certain keywords. This process is fast and secure because it operates at the C++ level.
Pack and DB Integration
During item reflection, the item you wish to reflect must be defined in the server database (DB). Otherwise, even if the item drops, the system won't recognize it. Therefore, correct pack and DB management is essential. Additionally, item IDs must be correctly configured.
Conclusion
The chat-to-item reflection system is an important feature in Metin2 private servers for both entertainment and management purposes. When properly configured, it allows quick responses to player requests. However, careful planning is required to ensure the security and stability of the system. This process can be implemented using both Python and C++. It is recommended to pay attention to your SRC, DB, and pack structures.
Resources
Metin2Lobby - Metin2 Development & Server Guides
