Merhabalar chatten bağırınca PM AT eklentisini paylaşcağım py taraflı gördüm fakat c++ taraflı yani input_main.cpp eklentili halini göremediğim için paylaşıyorum var ise konu kapatılabilir. Otomatik bağırma kısmına da uyarladım PM at eklentisini.
İYİ KULLANIMLAR
NOT : GAME PY KISMI OTOMATİK BAĞIRMA İLE İLGİLİDİR OTOMATİK BAĞIRMASI OLMAYANLAR YAPMASIN.
KANIT :
NORMAL BAĞIRMA
İYİ KULLANIMLAR
NOT : GAME PY KISMI OTOMATİK BAĞIRMA İLE İLGİLİDİR OTOMATİK BAĞIRMASI OLMAYANLAR YAPMASIN.
Kod:
arat : if (CHAT_TYPE_SHOUT == pinfo->type) { LogManager::instance().ShoutLog(g_bChannel, ch->GetEmpire(), chatbuf); } değiştir : if (CHAT_TYPE_SHOUT == pinfo->type) { len = snprintf(chatbuf, sizeof(chatbuf), "|cFF98FF33|h[Lv %d] |Hchattanpmyolla:%s|h%s|h|r : %s", ch->GetLevel(), ch->GetName(), ch->GetName(), buf); } else { len = snprintf(chatbuf, sizeof(chatbuf), "%s : %s", ch->GetName(), buf); }
Kod:
importların altına ekle BagirmaPm = ""
Kod:
arat : def __SendChatPacket değiştir : def __SendChatPacket(self, text, type): if net.IsChatInsultIn(text): chat.AppendChat(chat.CHAT_TYPE_INFO, localeInfo.CHAT_INSULT_STRING) else: if type == chat.CHAT_TYPE_SHOUT and not text.startswith("!"): net.SendChatPacket(constInfo.BagirmaPm + '|cff00ff00|Hchattanpmyolla:' + str(player.GetName()) + '|h - |h|r' +'|cff00ff00|Hchattanpmyolla:' + str(player.GetName()) + '|h[PM AT]|h|r' + " : " + text, chat.CHAT_TYPE_SHOUT) elif text.startswith("!"): net.SendChatPacket(constInfo.BagirmaPm + '|cff00ff00|Hchattanpmyolla:' + str(player.GetName()) + '|h - |h|r' +'|cff00ff00|Hchattanpmyolla:' + str(player.GetName()) + '|h[PM AT]|h|r' + " : " + text[1:], chat.CHAT_TYPE_SHOUT) else: net.SendChatPacket(text, type)
Kod:
arat : net.SendChatPacket(str(constInfo.auto_shout_text),chat.CHAT_TYPE_SHOUT) değiştir : net.SendChatPacket(constInfo.BagirmaPm + '|cff00ff00|Hchattanpmyolla:' + str(player.GetName()) + '|h - |h|r' +'|cff00ff00|Hchattanpmyolla:' + str(player.GetName()) + '|h[PM AT]|h|r' + " : " + str(constInfo.auto_shout_text), chat.CHAT_TYPE_SHOUT)
Kod:
bu kodun altına : def MakeHyperlinkTooltip(self, hyperlink): tokens = hyperlink.split(":") if tokens and len(tokens): type = tokens[0] if "item" == type: self.hyperlinkItemTooltip.SetHyperlinkItem(tokens) bunu ekle : elif "chattanpmyolla" == type: self.OpenWhisperDialog(str(tokens[1]))
KANIT :
NORMAL BAĞIRMA
OTO BAĞIRMA :
PM At Eklentisi + Oto Bağırma Uyarlı Nedir?
Metin2 özel sunucularında kullanıcı deneyimini artırmak ve sunucu yöneticileri ile oyuncular arasında daha etkili iletişim kurulmasını sağlamak amacıyla geliştirilen PM At Eklentisi, Metin2 Lobby üzerinden sunulan gelişmiş bir özelliktir. Bu eklenti sayesinde sunucuda oturum açmış olan oyunculara özel mesajlar gönderilerek doğrudan etkileşim sağlanabilir. Ayrıca eklentinin oto bağırma uyarlı özelliği sayesinde, sunucu yöneticisi tarafından belirlenen zaman aralıklarında belirli mesajlar otomatik olarak sunucu içi sohbete gönderilir. Bu özellik özellikle duyuru yapma, sunucu kurallarını hatırlatma, kampanyaları duyurma gibi durumlarda oldukça faydalıdır.
PM At Eklentisi Nasıl Çalışır?
PM At eklentisi, Metin2 server src üzerinde çalışan bir C++ sistemidir. Bu sistem, auth veya game sunucusuna entegre edilerek çalışır. Sunucu üzerinde yetkisi bulunan bir admin, istenilen oyuncuya özel mesaj (PM) gönderebilir. Gönderilen mesaj, oyuncunun ekranında bir bildirim şeklinde görünür ve bu sayede önemli duyuruların kaçırılmaması sağlanır. Sistem aynı zamanda Python GUI tabanlı bir yönetim paneline sahiptir. Bu panel sayesinde sunucu yöneticileri kolayca mesaj gönderimi yapabilir, otomatik bağırma ayarlarını düzenleyebilir ve gönderilen mesajların geçmişini takip edebilir.
Oto Bağırma Uyarlı Özellikleri Nelerdir?
Oto bağırma sistemi, belirlenen zaman aralığında sunucu içi sohbette otomatik olarak mesaj yayınlamayı sağlar. Bu mesajlar; sunucu duyuruları, PvP turnuvaları, özel etkinlikler veya güvenlik uyarıları gibi birçok farklı konuda kullanılabilir. Örneğin, her 30 dakikada bir ‘Sunucu kurallarını ihlal etmek hesabınızın kapatılmasına neden olabilir’ gibi bir mesaj otomatik olarak yayınlanabilir. Bu sayede oyuncular sürekli bilgilendirilmiş olur. Bu sistem, Python tabanlı bir yapıya sahip olup, py root dosyaları üzerinde kolayca yapılandırılabilir. Eklenti, Martysama tarafından geliştirilen Metin2 development araçlarıyla uyumlu çalışmaktadır.
Neden PM At Eklentisi Kullanmalısınız?[/BR][/BR]Metin2 özel sunucularında kullanıcı memnuniyeti, sunucunun kalitesi kadar önemlidir. PM At Eklentisi ile oyuncularla doğrudan iletişim kurmak, onlara özel uyarılar veya hediyeler hakkında bilgi vermek mümkündür. Bu da kullanıcı sadakatini artırır. Oto bağırma özelliği sayesinde ise tekrarlayan duyuruları manuel olarak yapmak zorunda kalmazsınız. Bu da hem zaman kazandırır hem de yönetim yükünü azaltır. Ayrıca, C++ system ile entegre çalışan bu eklenti, stabilite ve performans açısından yüksek standartlarda çalışır. Py GUI tabanlı kontrol paneli sayesinde kullanımı oldukça kolaydır. Bu eklenti, Metin2 Lobby tarafından sağlanan tüm paketlerle uyumlu çalışır ve kurulumu basittir.
Kurulum ve Yapılandırma
PM At Eklentisi, Metin2 server src üzerinde kolayca entegre edilebilir. Kurulum sırasında gerekli C++ kaynak kodlar projeye dahil edilir ve auth veya game sunucusu yeniden derlenir (compile). Python GUI tabanlı yönetim paneli ise py root dizinine yerleştirilerek çalıştırılır. Gerekli ayarlar yapıldıktan sonra eklenti tamamen çalışmaya hazırdır. Eklenti, db core ve game core ile uyumlu çalışır ve Metin2 development süreçlerinde kolayca entegre edilebilir.
What is PM Send Plugin + Auto Shout Compatible?
The PM Send Plugin is an advanced feature offered by Metin2 Lobby to enhance user experience on Metin2 private servers and enable more effective communication between server administrators and players. With this plugin, direct messages can be sent to logged-in players on the server, allowing for direct interaction. Additionally, thanks to its auto-shout compatibility feature, predefined messages can automatically be broadcast into the in-game chat at specific intervals set by the server administrator. This function is particularly useful for announcements, reminding players about server rules, or promoting events.
How Does the PM Send Plugin Work?
The PM Send plugin operates as a C++ system integrated into the Metin2 server source code. It works by being embedded into either the auth or game server. An admin with proper permissions can send private messages directly to any player on the server. These messages appear as notifications on the player's screen, ensuring important announcements are not missed. The system also includes a Python GUI-based control panel that allows server administrators to easily send messages, configure auto-shout settings, and track message history.
What Are the Features of Auto-Shout Compatibility?
The auto-shout feature broadcasts predetermined messages automatically within the server chat at set time intervals. These messages can cover various topics such as server announcements, PvP tournaments, special events, or security warnings. For instance, every 30 minutes, a message like 'Violating server rules may result in account suspension' can be automatically posted. This ensures players remain informed. This system uses a Python-based structure and can be easily configured within the py root files. The plugin is compatible with tools developed by Martysama for Metin2 development.
Why Should You Use the PM Send Plugin?
Player satisfaction on Metin2 private servers is just as important as server quality. With the PM Send Plugin, you can communicate directly with players, sending them personalized warnings or information about gifts and promotions, which helps increase player loyalty. The auto-shout feature eliminates the need to manually post recurring announcements, saving time and reducing administrative burden. Moreover, since the plugin integrates seamlessly with the C++ system, it offers high stability and performance. Its Python GUI-based control panel ensures ease of use. This plugin is compatible with all packages provided by Metin2 Lobby and features a straightforward installation process.
Installation and Configuration[/BR][/BR]The PM Send Plugin can be easily integrated into Metin2 server source codes. During installation, the necessary C++ source files are included in the project and the auth or game server is recompiled. The Python GUI-based control panel is placed inside the py root directory and executed. After the required configurations are made, the plugin is fully operational. It works compatibly with db core and game core, integrating smoothly into Metin2 development workflows.
