Honorable Member Mali 41891 Posted June 28, 2017 Honorable Member Share Posted June 28, 2017 M2 Download Center This is the hidden content, please Sign In or Sign Up ( Internal ) This is the hidden content, please Sign In or Sign Up ( GitHub ) 145 2 3 1 2 1 2 1 46 4 89 Link to comment Share on other sites More sharing options...
Honorable Member Mali 41891 Posted June 29, 2017 Author Honorable Member Share Posted June 29, 2017 (edited) #Big update Don't forget V2: Fix:When do you block anyone with target, messenger list doesn't update Fix:Disconnect Fix:If player2 blocked you, player1 can't block player2 Function(You can use IsBlocked); IsBlocked_Me IsBlocked_Target Change; Whisper Block(input_main.cpp), now warning type: CHAT_TYPE_INFO->WHISPER_TYPE_SYSTEM Locale_string.txt Added; #Trade Block(exchange.cpp) #Emotion Block(cmd_emotion.cpp) #Party Block(input_main.cpp) #Duel Block(cmd_general.cpp) #Unblock button to target(uitarget.py&&locale_game&Python_messenger.cpp,h&&constInfo,uimessenger.py) Edited August 24, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Krusty 32 Posted June 29, 2017 Share Posted June 29, 2017 Where is the download for v2? Link to comment Share on other sites More sharing options...
Honorable Member Mali 41891 Posted June 29, 2017 Author Honorable Member Share Posted June 29, 2017 (edited) 1 minute ago, Krusty said: Where is the download for v2? Wait me 1 minute i remove i'll update v3 for messenger icon #Updated for icon @xP3NG3Rx Thanks! Edited August 24, 2022 by Metin2 Dev Core X - External 2 Internal 2 1 1 Link to comment Share on other sites More sharing options...
Tasho 243 Posted June 29, 2017 Share Posted June 29, 2017 Quote bool MessengerManager::IsBlocked(MessengerManager::keyA account, MessengerManager::keyA companion) { if (m_BlockRelation[account].find(companion) != m_BlockRelation[account].end() || m_BlockRelation[companion].find(account) != m_BlockRelation[companion].end()) return true; else return false; } bool MessengerManager::IsBlocked(MessengerManager::keyA account, MessengerManager::keyA companion) { return (m_BlockRelation[account].find(companion) != m_BlockRelation[account].end() || m_BlockRelation[companion].find(account) != m_BlockRelation[companion].end()); } There are more things like this what you can do, also there not need a "else" you can do it like this too: if (something) return true; return false; Link to comment Share on other sites More sharing options...
Honorable Member Mali 41891 Posted June 29, 2017 Author Honorable Member Share Posted June 29, 2017 I know simple only 1 return Link to comment Share on other sites More sharing options...
Honorable Member Mali 41891 Posted June 30, 2017 Author Honorable Member Share Posted June 30, 2017 (edited) idea:@Koray Edited August 20, 2022 by Metin2 Dev Core X - External 2 Internal 1 Link to comment Share on other sites More sharing options...
Honorable Member Mali 41891 Posted July 1, 2017 Author Honorable Member Share Posted July 1, 2017 (edited) #Update Added:Guild Block Fix:You can't block your guild friend now Changes: input_main.cpp & locale_string.txt Edited August 24, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
HaiosMotan 402 Posted July 2, 2017 Share Posted July 2, 2017 What i did wrong? input_main.cpp:832: warning: unused variable 'len_global' input_main.cpp: In member function 'int CInputMain::Messenger(CHARACTER*, const char*, size_t)': input_main.cpp:1170: error: 'class MessengerManager' has no member named 'IsFriend' input_main.cpp:1176: error: 'class MessengerManager' has no member named 'IsBlocked' input_main.cpp:1216: error: 'class MessengerManager' has no member named 'IsFriend' input_main.cpp:1222: error: 'class MessengerManager' has no member named 'IsBlocked' input_main.cpp:1242: error: 'class MessengerManager' has no member named 'IsFriend' https://pastebin.com/ZjkqirLR https://pastebin.com/98tVyv4w https://pastebin.com/38YxJEQa Link to comment Share on other sites More sharing options...
Honorable Member Mali 41891 Posted July 2, 2017 Author Honorable Member Share Posted July 2, 2017 1 hour ago, SergiuAndreiM said: What i did wrong? input_main.cpp:832: warning: unused variable 'len_global' input_main.cpp: In member function 'int CInputMain::Messenger(CHARACTER*, const char*, size_t)': input_main.cpp:1170: error: 'class MessengerManager' has no member named 'IsFriend' input_main.cpp:1176: error: 'class MessengerManager' has no member named 'IsBlocked' input_main.cpp:1216: error: 'class MessengerManager' has no member named 'IsFriend' input_main.cpp:1222: error: 'class MessengerManager' has no member named 'IsBlocked' input_main.cpp:1242: error: 'class MessengerManager' has no member named 'IsFriend' https://pastebin.com/ZjkqirLR https://pastebin.com/98tVyv4w https://pastebin.com/38YxJEQa Send your messenger_manager.h Link to comment Share on other sites More sharing options...
HaiosMotan 402 Posted July 2, 2017 Share Posted July 2, 2017 Acum 30 minute, Mali61 a spus: Send your messenger_manager.h IT s în Pastebin în The first com Link to comment Share on other sites More sharing options...
Honorable Member Mali 41891 Posted July 2, 2017 Author Honorable Member Share Posted July 2, 2017 1 hour ago, SergiuAndreiM said: IT s în Pastebin în The first com Did you add service.h:#define ENABLE_MESSENGER_BLOCK Link to comment Share on other sites More sharing options...
HaiosMotan 402 Posted July 2, 2017 Share Posted July 2, 2017 1 oră în urmă, Mali61 a spus: Did you add service.h:#define ENABLE_MESSENGER_BLOCK The errors are from compile i don t think that IT s cheking The service.h.. Link to comment Share on other sites More sharing options...
Honorable Member Mali 41891 Posted July 2, 2017 Author Honorable Member Share Posted July 2, 2017 1 hour ago, SergiuAndreiM said: The errors are from compile i don t think that IT s cheking The service.h.. 2 hours ago, Mali61 said: Did you add service.h:#define ENABLE_MESSENGER_BLOCK ?? Link to comment Share on other sites More sharing options...
HaiosMotan 402 Posted July 2, 2017 Share Posted July 2, 2017 Acum 12 ore, Mali61 a spus: ?? I will remake all the server side again. Link to comment Share on other sites More sharing options...
HaiosMotan 402 Posted July 3, 2017 Share Posted July 3, 2017 in cmd_general.cpp #ifdef ENABLE_MESSENGER_BLOCK if (MessengerManager::instance().IsBlocked_Target(ch->GetName(), pkVictim->GetName())) { //ben blokladım hacı ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("%s blokkk"), pkVictim->GetName()); return; } if (MessengerManager::instance().IsBlocked_Target(ch->GetName(), pkVictim->GetName())) { //o blokladı hacı ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("%s blokkk_me"), pkVictim->GetName()); return; } #endif the second must be IsBlocked_me same thing for exchange.cpp same thing for imput_main.cpp : partyInvite cmd_emotion.cpp Link to comment Share on other sites More sharing options...
changemylife 0 Posted July 5, 2017 Share Posted July 5, 2017 (edited) Can anyone say me what's exactly the Problem here : Player 1 blocks Player 2 but Player 2 can write a message and player 1 receive it. Edited August 20, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Honorable Member Mali 41891 Posted July 7, 2017 Author Honorable Member Share Posted July 7, 2017 (edited) On 03.07.2017 at 1:03 PM, SergiuAndreiM said: in cmd_general.cpp #ifdef ENABLE_MESSENGER_BLOCK if (MessengerManager::instance().IsBlocked_Target(ch->GetName(), pkVictim->GetName())) { //ben blokladım hacı ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("%s blokkk"), pkVictim->GetName()); return; } if (MessengerManager::instance().IsBlocked_Target(ch->GetName(), pkVictim->GetName())) { //o blokladı hacı ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("%s blokkk_me"), pkVictim->GetName()); return; } #endif the second must be IsBlocked_me same thing for exchange.cpp same thing for imput_main.cpp : partyInvite cmd_emotion.cpp Thanks dude, my mistake. On 06.07.2017 at 0:11 AM, changemylife said: Can anyone say me what's exactly the Problem here : Player 1 blocks Player 2 but Player 2 can write a message and player 1 receive it. Check out system I edited Edited August 20, 2022 by Metin2 Dev Core X - External 2 Internal 1 Link to comment Share on other sites More sharing options...
changemylife 0 Posted July 8, 2017 Share Posted July 8, 2017 vor 22 Stunden schrieb Mali61: Thanks dude, my mistake. Check out system I edited that is your actual system... theres nothing new Link to comment Share on other sites More sharing options...
Dimitar 0 Posted July 8, 2017 Share Posted July 8, 2017 Hi, please, i havent got HEADER_GG_BIG_NOTICE = 30, in my packet.h . Here is my packet.h https://pastebin.com/pC6nTGLN What can i do now? Thanks. Link to comment Share on other sites More sharing options...
Premium TAUMP 840 Posted July 9, 2017 Premium Share Posted July 9, 2017 22 hours ago, Dimitar said: Hi, please, i havent got HEADER_GG_BIG_NOTICE = 30, in my packet.h . Here is my packet.h https://pastebin.com/pC6nTGLN What can i do now? Thanks. add anywhere where HEADER_GG Link to comment Share on other sites More sharing options...
flexio 83 Posted July 9, 2017 Share Posted July 9, 2017 When a player write from channel 1 to 99(example) core drops. input_main.cpp else if (MessengerManager::instance().IsBlocked_Target(ch->GetName(), pkChr->GetName())) change to else if (pkChr && MessengerManager::instance().IsBlocked_Target(ch->GetName(), pkChr->GetName())) Link to comment Share on other sites More sharing options...
Dimitar 0 Posted July 9, 2017 Share Posted July 9, 2017 2 hours ago, .T4Ump said: add anywhere where HEADER_GG Thanks, i added it under: HEADER_GG_CHECK_AWAKENESS = 29, but now client crashed in loading and in sysser is Unknown packet header: 176, last: 255 255 Here is my packet.h https://pastebin.com/9XutxZyq i added it at line 333. I tried: HEADER_GG_MESSENGER_BLOCK_ADD = 31, HEADER_GG_MESSENGER_BLOCK_REMOVE = 32, but some problem. Thanks. Link to comment Share on other sites More sharing options...
z35 170 Posted July 9, 2017 Share Posted July 9, 2017 7 minutes ago, Dimitar said: Thanks, i added it under: HEADER_GG_CHECK_AWAKENESS = 29, but now client crashed in loading and in sysser is Unknown packet header: 176, last: 255 255 Here is my packet.h https://pastebin.com/9XutxZyq i added it at line 333. I tried: HEADER_GG_MESSENGER_BLOCK_ADD = 31, HEADER_GG_MESSENGER_BLOCK_REMOVE = 32, but some problem. Thanks. Did you add at both serverside and clientside packets? Link to comment Share on other sites More sharing options...
Dimitar 0 Posted July 9, 2017 Share Posted July 9, 2017 3 minutes ago, z35 said: Did you add at both serverside and clientside packets? How did you mean it? I just did these steps: https://pastebin.com/WFHspvrw , nothing else. Link to comment Share on other sites More sharing options...
Recommended Posts