Jump to content

Fazer

Inactive Member
  • Posts

    98
  • Joined

  • Last visited

  • Days Won

    6
  • Feedback

    0%

Posts posted by Fazer

  1. Wrong post.

     
    1 hour ago, arves100 said:

    if (item->GetType() & ITEM_RING)
        {
            if ((GetWear(WEAR_RING1) && GetWear(WEAR_RING1)->GetVnum()) || (GetWear(WEAR_RING2) && GetWear(WEAR_RING2)->GetVnum()))
            {
                ChatPacket(CHAT_TYPE_INFO, LC_TEXT("You can't put two same items in the same time."));
                return false;
            }
        }

     

    Try with this

    this is work i use it too.

  2. 	 long CItem::GetPetVnum()
    {
        char szQuery[1024];
        snprintf(szQuery, sizeof(szQuery), "SELECT Petvnum FROM pet_summon WHERE PetSummonItemVnum='%d'", GetVnum());
        std::auto_ptr<SQLMsg> msg(CDBManager::instance().DirectQuery(szQuery));
      MYSQL_ROW row = mysql_fetch_row(pMsg->Get()->pSQLResult);
        long alrow = atoi(row[0]);
        sys_log(0, "TEST_VNUM : %d\n", alrow);
        return alrow;
    }
    

    try this

    • Love 1
  3. 17 hours ago, profik said:

    what all ?

    gold_max.png
     

    from:  
    if (GOLD_MAX <= nTotalMoney)
        {
            sys_err("[OVERFLOW_GOLD] Overflow (GOLD_MAX) id %u name %s", GetPlayerID(), GetName());
            ChatPacket(CHAT_TYPE_INFO, LC_TEXT("20억 냥을 초과하여 상점을 열수가 없습니다"));
            return;
        }

     

    to
    //if (GOLD_MAX <= nTotalMoney)
     //   {
     //       sys_err("[OVERFLOW_GOLD] Overflow (GOLD_MAX) id %u name %s", GetPlayerID(), GetName());
     //       ChatPacket(CHAT_TYPE_INFO, LC_TEXT("20억 냥을 초과하여 상점을 열수가 없습니다"));
    //        return;
    //    }

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