Jump to content

klars99

Member
  • Posts

    31
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by klars99

  1. 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;
        }

     

×
×
  • 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.