Retro 132 Posted August 1, 2016 Share Posted August 1, 2016 (edited) Heya, i was browsing the forum and i saw this topic: Firstly i want to say that i din't this post to make a bad image to the people who written there, i saw that they complicated it very much, the fix is pretty easy so i'm gonna share with you. Open char.cpp Search for: if (g_bNeedMoney) { if (GetGold() < static_cast<int>(g_dwNeedMoney)) { ChatPacket(CHAT_TYPE_INFO, "Your money is not enough for open offline shop. Required money : %u", g_dwNeedMoney); return; } } After that function you will see that: char szSign[SHOP_SIGN_MAX_LEN+1]; strlcpy(szSign, c_pszSign, sizeof(szSign)); m_stOfflineShopSign = szSign; if (m_stOfflineShopSign.length() == 0) return; if (CBanwordManager::instance().CheckString(m_stShopSign.c_str(), m_stShopSign.length())) { ChatPacket(CHAT_TYPE_INFO, LC_TEXT("비속어나 은어가 포함된 상점 이름으로 상점을 열 수 없습니다.")); return; } There's also a image: https://metin2.download/picture/dz8FBGD0F8oWYaUCoh8Zxi3wYO51TrA4/.png So replace this: char szSign[SHOP_SIGN_MAX_LEN+1]; strlcpy(szSign, c_pszSign, sizeof(szSign)); m_stOfflineShopSign = szSign; if (m_stOfflineShopSign.length() == 0) return; if (CBanwordManager::instance().CheckString(m_stShopSign.c_str(), m_stShopSign.length())) { ChatPacket(CHAT_TYPE_INFO, LC_TEXT("비속어나 은어가 포함된 상점 이름으로 상점을 열 수 없습니다.")); return; } With: if (!check_name(c_pszSign)) { ChatPacket(CHAT_TYPE_INFO, "Pretty easy,huh?"); ChatPacket(CHAT_TYPE_INFO, "If it works go to the topic title and give a thanks to the author."); ChatPacket(CHAT_TYPE_INFO, "Just Kidding!"); return; } m_stOfflineShopSign = c_pszSign; if (CBanwordManager::instance().CheckString(m_stShopSign.c_str(), m_stShopSign.length())) { ChatPacket(CHAT_TYPE_INFO, LC_TEXT("비속어나 은어가 포함된 상점 이름으로 상점을 열 수 없습니다.")); return; } There's a image again to see how it should look like: https://metin2.download/picture/K4uOqryS4tB6JS4Og68qXhNoe13DGGHZ/.png Have a nice day! Edited September 3, 2022 by Metin2 Dev Core X - External 2 Internal 2 Link to comment Share on other sites More sharing options...
Artnesor 1 Posted August 1, 2016 Share Posted August 1, 2016 Why dont you just use EscapeString? Link to comment Share on other sites More sharing options...
Retro 132 Posted August 1, 2016 Author Share Posted August 1, 2016 This is more simple i think, and this is the fix ken did(i think ^_^) .So , first give him a thanks , not mine , i just posted this . Link to comment Share on other sites More sharing options...
Artnesor 1 Posted August 1, 2016 Share Posted August 1, 2016 With this fix you cant use special marks (exclamation etc.) so its bad. Link to comment Share on other sites More sharing options...
Active+ Member Abel(Tiger) 1195 Posted August 31, 2016 Active+ Member Share Posted August 31, 2016 With check_name function you can't use space in title and lenght must be less than 12 characters ... Link to comment Share on other sites More sharing options...
BekirAKDMR 5 Posted September 1, 2016 Share Posted September 1, 2016 its here last version Link to comment Share on other sites More sharing options...
stein20 15 Posted September 21, 2016 Share Posted September 21, 2016 @Retro only complete fix. public good work and thx Link to comment Share on other sites More sharing options...
Recommended Posts