daradevil124 370 Posted April 23, 2017 Share Posted April 23, 2017 M2 Download Center This is the hidden content, please Sign In or Sign Up ( Internal ) quest channel_id begin state start begin when login begin chat("You are connected to channel "..pc.get_channel_id()..".") end end end quest channel_id begin state start begin when login begin chat("Kanal "..pc.get_channel_id().." ile bağlısın.") end end end 7 1 1 1 6 Link to comment Share on other sites More sharing options...
r00t3r 67 Posted April 29, 2017 Share Posted April 29, 2017 Thx man, is working . 1 Link to comment Share on other sites More sharing options...
Supecchi 0 Posted August 9, 2018 Share Posted August 9, 2018 How we can do in c++ or python ? @VegaS™ @VegaS Link to comment Share on other sites More sharing options...
Premium ragem0re 155 Posted August 9, 2018 Premium Share Posted August 9, 2018 input_login.cpp CInputLogin::Entergame() ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("You're connected to channel %d."), g_bChannel); don't miss the locale_string part Link to comment Share on other sites More sharing options...
Saito 7 Posted October 27, 2018 Share Posted October 27, 2018 Am 9.8.2018 um 14:53 schrieb ragem0re: input_login.cpp CInputLogin::Entergame() ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("You're connected to channel %d."), g_bChannel); don't miss the locale_string part better like this: #ifdef __WEBZEN_CHANNEL_REMINDER__ if (ch->IsPC()) { if (g_bChannel >= 1 && g_bChannel <= 8) { ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("SAITO_CHANNEL_REMINDER %d"), g_bChannel); } else { ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("SAITO_CHANNEL_REMINDER_GAME99")); } } #endif 1 Link to comment Share on other sites More sharing options...
metin2team 757 Posted October 27, 2018 Share Posted October 27, 2018 "SAITO_ I like that. 5 Link to comment Share on other sites More sharing options...
Forum Moderator VegaS™ 10266 Posted November 4, 2018 Forum Moderator Share Posted November 4, 2018 On 10/27/2018 at 6:33 AM, Saito said: better like this: Spoiler #ifdef __WEBZEN_CHANNEL_REMINDER__ if (ch->IsPC()) { if (g_bChannel >= 1 && g_bChannel <= 8) { ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("SAITO_CHANNEL_REMINDER %d"), g_bChannel); } else { ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("SAITO_CHANNEL_REMINDER_GAME99")); } } #endif On 4/23/2017 at 5:05 PM, daradevil124 said: Spoiler quest channel_id begin state start begin when login begin chat("You are connected to channel "..pc.get_channel_id()..".") end end end If I'm not mistaken, that's how it should work. LUA -- gameforge.channel_reminder = {} -- gameforge.channel_reminder._010_syschat = "You're connected to channel %d." quest channel_reminder begin state start begin when login begin local channelID = pc.get_channel_id() syschat(string.format(gameforge.channel_reminder._010_syschat, (channelID == 99 and 0 or channelID))) end end end Source // "CHANNEL_REMINDER_SYSCHAT"; // "You're connected to channel %d."; ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("CHANNEL_REMINDER_SYSCHAT"), g_bChannel == 99 ? 0 : g_bChannel); 2 Check my GitHub Profile Click to find all the threads started by me [TOOL] Text file loader + JSON Link to comment Share on other sites More sharing options...
Shang 369 Posted November 4, 2018 Share Posted November 4, 2018 Guys we have a very recent root scripts and if you open the game.py you'll see they use a cmdchat every login on the game. 1 Link to comment Share on other sites More sharing options...
Saito 7 Posted November 6, 2018 Share Posted November 6, 2018 (edited) -- Edited November 8, 2018 by Saito Deleted Link to comment Share on other sites More sharing options...
Saito 7 Posted November 8, 2018 Share Posted November 8, 2018 Am 27.10.2018 um 12:54 schrieb metin2team: "SAITO_ I like that. I make this with all LC_TEXT i made because i dont like to do it in english as lc_text and translate it to german in locale_string. The "saito" does not belong to the whole string it doesnt mean that i make the system (at this point, i write the code by myself.. xd), its only a thing i made on all lc_text wich i add to the game by myself to know on this position, that i write it there and if theres a problem, i know its my fault then xd, im sorry I think its better to do it only in source. It makes no sense to do it in lua or python + lua + source. But ymir never make sense... so... 1 Link to comment Share on other sites More sharing options...
metin2team 757 Posted November 8, 2018 Share Posted November 8, 2018 34 minutes ago, Saito said: I make this with all LC_TEXT i made because i dont like to do it in english as lc_text and translate it to german in locale_string. The "saito" does not belong to the whole string it doesnt mean that i make the system (at this point, i write the code by myself.. xd), its only a thing i made on all lc_text wich i add to the game by myself to know on this position, that i write it there and if theres a problem, i know its my fault then xd, im sorry #VCS Link to comment Share on other sites More sharing options...
Recommended Posts