Jump to content

Alpha Characters in the Offline Shop


IonutRO

Recommended Posts

  • 9 months later...
  • 8 months later...

fix like 

find     LPCHARACTER npc = CHARACTER_MANAGER::instance().SpawnMob

add Before

Spoiler

    char szSign[SHOP_SIGN_MAX_LEN * 2 + 1];
    DBManager::instance().EscapeString(szSign, sizeof(szSign), c_pszSign, strlen(c_pszSign));
    if (strlen(szSign) == 0)
    {
        ChatPacket(CHAT_TYPE_INFO, "You cannot open an offline-shop without title!");
        return;
    }
    
    m_stOfflineShopSign = szSign;
    if (m_stOfflineShopSign.length() == 0)
        return;
    
    if (CBanwordManager::instance().CheckString(m_stOfflineShopSign.c_str(), m_stOfflineShopSign.length()))
    {
        ChatPacket(CHAT_TYPE_INFO, LC_TEXT("؛ٌ¼س¾î³ھ ہ؛¾î°، ئ÷اشµب »َء، ہج¸§ہ¸·خ »َء،ہ» ؟­ ¼ِ ¾ّ½ہ´د´ظ."));
        return;
    }
    
    std::string szSpecialCharName = m_stOfflineShopSign.c_str();
    std::size_t szSpecialCheck = szSpecialCharName.find("%");
    if (szSpecialCheck != std::string::npos)
    {
        ChatPacket(CHAT_TYPE_INFO, LC_TEXT("The name inserted is invalid, please don't use special characters!"));
        return;
    }

 

Link to comment
Share on other sites

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.