Oyun içi Selam Botu Fake Chat Sistemi - Herkesin Aradıgı Sistem !

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

Admin

Metin2Lobby
Yönetici
Founder
Katılım
6 Mayıs 2022
Mesajlar
52,647
Ticaret : 1 / 0 / 0
Merhabalar, oyun içi selam botu fake chat sistemi sizlerle paylaşmaktayım.

Satışı yoktur farklıdır.


Kod:
input_main.cpp aç ve arat extern void SendShout(const char * szText, BYTE bEmpire); değiştir #ifdef ENABLE_FAKE_CHAT extern void SendShout(const char * szText, BYTE bEmpire); #endif arat static int __deposit_limit() altına ekle #ifdef ENABLE_FAKE_CHAT #define FILE_MAX_LEN 256 #include <iostream> #include <fstream> std::vector<std::string> vec_chNames; std::string textArray[9] = {     "AS", "as","aleykum selam", "ALEYKUM SELAM", "a.s", "A.S", "was", "A.s", "Aleykum Selam" }; #define TIMER_TICK_DIVIDING 6    //1 sec / x #define MIN_CHAT_COUNT_FOR_A_TICK 4 #define MAX_CHAT_COUNT_FOR_A_TICK 10 EVENTINFO(chat_shout_event_info) {     const char * szText;     int    chatCount;     int maxCount; }; EVENTFUNC(chat_shout_update_event) {     chat_shout_event_info* info = dynamic_cast<chat_shout_event_info*>(event->info);     if (info == NULL)     {         sys_err("mountsystem_update_event> <Factor> Null pointer");         return 0;     }     if (info->chatCount >= info->maxCount) { vec_chNames.clear(); return 0; }     int startIndex = info->chatCount;     const int shoutCount = number(MIN_CHAT_COUNT_FOR_A_TICK, MAX_CHAT_COUNT_FOR_A_TICK);     info->chatCount += shoutCount;     //int tekrar = 4;     //for(int bear = 0; bear <= tekrar; bear++){         for (int i = 0; i < shoutCount; i++) {             const int useIndex = startIndex + i;             if (useIndex >= vec_chNames.size()) { vec_chNames.clear();  return 0; }             char chatbuf_global[CHAT_MAX_LEN + 1];             std::string chName = vec_chNames[useIndex];             std::string chatText = textArray[number(0, _countof(textArray)-1)];             const BYTE charEmpire = number(1,3);                          const char* iconEmp[3] = {"[1]   ","[2]   ","[3]   "};             const char* colorEmp[3] = {"|cFFFF0000","|cffffff00","|cFF0080FF"};                  int len_global = snprintf(chatbuf_global, sizeof(chatbuf_global), "%s%s : %s|HVectors:%s |h[PM]|h|r : %s" , iconEmp[charEmpire - 1], chName.c_str(), colorEmp[charEmpire - 1], chName.c_str(), chatText.c_str());             SendShout(chatbuf_global, charEmpire);             TPacketGGShout p;             p.bHeader = HEADER_GG_SHOUT;             p.bEmpire = charEmpire;             strlcpy(p.szText, chatbuf_global, sizeof(p.szText));             P2P_MANAGER::instance().Send(&p, sizeof(TPacketGGShout));         }     //}     return PASSES_PER_SEC(1) / TIMER_TICK_DIVIDING; } void CreateShoutEvent() {     FILE* f;     char line[FILE_MAX_LEN];     unsigned n = 0;     f = fopen("/usr/game/share/locale/turkey/fake_names.txt", "r"); // Bu kısımı ftp üzerinde kendinize göre ayarlamayı unutmayın fake_names.txt içerisinde sadece kullanıcı adlarını çekmektedir.     if (!f) { return; }     while (fgets(line, FILE_MAX_LEN, f))    {         std::string tmpStr = (std::string)line;         std::string strLine = tmpStr.substr(0, tmpStr.size() - 2);         vec_chNames.push_back(strLine);     }     if (!feof(f)){         fclose(f);         return;     }     fclose(f);     /***/     chat_shout_event_info* info = AllocEventInfo<chat_shout_event_info>();     info->maxCount = vec_chNames.size();     info->chatCount = 0;     event_create(chat_shout_update_event, info, PASSES_PER_SEC(1)); } #endif ----------------------------- cmd_gm.cpp aç arat ACMD(do_map_notice) ve altına ekle #ifdef ENABLE_FAKE_CHAT extern void CreateShoutEvent(); #endif ACMD(do_big_notice) { #ifdef ENABLE_FAKE_CHAT     std::string strLine = static_cast<std::string>(argument), stName = static_cast<std::string>(ch->GetName());     if ((strLine == " SELAMUN ALEYKUM" || strLine == " SA" || strLine == " SELAMIN ALEYKUM" || strLine == " SELAMIN ALEYKUM") && (ch->IsGM()))         CreateShoutEvent(); #endif #ifdef ENABLE_FULL_NOTICE     BroadcastNotice(argument, true); #else     ch->ChatPacket(CHAT_TYPE_BIG_NOTICE, "%s", argument); #endif } #ifdef ENABLE_FULL_NOTICE ACMD(do_map_big_notice) {     SendNoticeMap(argument, ch->GetMapIndex(), true); } ACMD(do_notice_test) {     ch->ChatPacket(CHAT_TYPE_NOTICE, "%s", argument); } ACMD(do_big_notice_test) {     ch->ChatPacket(CHAT_TYPE_BIG_NOTICE, "%s", argument); } #endif



112232.gif



Oyun içi Selam Botu Fake Chat Sistemi - Herkesin Aradıgı Sistem !

Metin2 sunucularında oyuncuların daha aktif ve keyifli vakit geçirmesi için pek çok sistem geliştirilmektedir. Bu sistemlerden birisi de Selam Botu olarak bilinen ve oyun içi sohbette sanal karakterlerin mesaj gönderdiği Fake Chat Sistemi'dir. Bu yazıda, Metin2 özel sunucularında kullanılan Selam Botu Fake Chat Sistemi hakkında detaylı bilgi vereceğiz.

Fake Chat Sistemi Nedir?
Fake Chat sistemi, oyun içinde gerçek oyuncularla etkileşime girmeden, sunucuya özel olarak ayarlanmış botların belirli zaman aralıklarında sohbete mesaj göndermesini sağlar. Bu sayede oyunculara canlı bir atmosfer hissi verilir ve yeni gelen oyuncuların oyunu daha hızlı adapte olması sağlanır. Özellikle az sayıda oyuncunun bulunduğu sunucularda bu sistem büyük fayda sağlar.

Selam Botu Nasıl Çalışır?
Selam botu, genellikle Python[/COORD] veya C++ tabanlı olarak geliştirilir. Sunucunun chat sistemine entegre edilen bu botlar, önceden tanımlanmış komut setleriyle çalışır. Mesela bir oyuncu giriş yaptığında veya belirli bir zaman geçtiğinde, bot otomatik olarak 'Hoş geldin oyuncu_ismi!' gibi mesajlar gönderebilir. Bu sayede sunucu daha aktif görünür.

Sistem Avantajları
  • Yeni oyuncuların sunucuya adapte olmasında yardımcı olur.
  • Sunucunun daha canlı bir atmosferde olduğunu gösterir.
  • Oyuncular arasında etkileşimi artırabilir.
  • Sunucu sahipleri için pazarlama aracı olarak kullanılabilir.

Teknik Uygulama
Bu sistem genellikle Py Root ve Game Core üzerinde çalıştırılır. Geliştiriciler, botun ne zaman ne mesaj göndereceğini belirlemek için UIScript ve Py GUI gibi araçlardan yararlanabilir. Ayrıca bot, Auth Server ile de entegre çalışarak kullanıcı girişlerini takip edebilir.

Örnek Kod Yapısı (Python)
Kod:
def send_welcome_message(player_name):[BR][/BR]    message = f'Hoş geldin {player_name}!'[BR][/BR]    game_server.send_chat(message, 'SelamBot')

Sonuç
Selam Botu Fake Chat Sistemi, Metin2 özel sunucularında etkileşimi artırmak ve oyunculara daha keyifli bir deneyim sunmak için ideal bir çözümdür. Metin2Lobby olarak bizler de bu tarz gelişmiş sistemleri sürekli takip ediyor ve geliştiricilerle paylaşıyoruz. Eğer Metin2 özel sunucu geliştirme konusunda destek almak isterseniz, sitemizi ziyaret edebilirsiniz.


In-Game Greeting Bot Fake Chat System - The System Everyone Is Looking For!

Many systems are being developed for players to have a more active and enjoyable experience on Metin2 servers. One of these systems is the Greeting Bot, known for sending messages in-game through virtual characters, also called the Fake Chat System. In this article, we will provide detailed information about the Greeting Bot Fake Chat System used in Metin2 private servers.

What is the Fake Chat System?
The fake chat system allows bots, set up specifically for the server, to send messages in the game chat at certain intervals without interacting with real players. This creates a sense of lively atmosphere for players and helps new arrivals adapt to the game faster. Especially on servers with fewer players, this system provides great benefits.

How Does the Greeting Bot Work?
The greeting bot typically runs on Python or C++ based scripts. Integrated into the server's chat system, these bots operate with predefined command sets. For example, when a player logs in or after a certain time has passed, the bot can automatically send messages such as 'Welcome player_name!'. This makes the server appear more active.

System Advantages
  • Helps new players integrate into the server.
  • Shows that the server has a lively atmosphere.
  • Can increase interaction among players.
  • Can be used as a marketing tool by server owners.

Technical Implementation
This system usually operates on Py Root and Game Core. Developers can use tools like UIScript and Py GUI to determine when and which messages the bot sends. Additionally, the bot can interact with the Auth Server to track user logins.

Sample Code Structure (Python)
Kod:
def send_welcome_message(player_name):[BR][/BR]    message = f'Welcome {player_name}!'[BR][/BR]    game_server.send_chat(message, 'GreetingBot')

Conclusion
The Greeting Bot Fake Chat System is an ideal solution for increasing interaction and providing a more enjoyable experience for players in Metin2 private servers. At Metin2Lobby, we continuously follow and share such advanced systems with developers. If you need support in developing Metin2 private servers, feel free to visit our website.
 

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

Geri
Üst Alt