Neler yeni

SERVER KURULUM Reqload Web Item Mall | Fix Paket

yaek

Kurucu Admin
KAYIT
22 Ara 2020
Mesajlar
582
Çözümler
1
Tepki puanı
10,182
Web
ko-yardim.com
Tic. Puanı - 0%
0   0   0
Merhaba arkadaşlar,

Forumumuza özel paylaşımlarımız ile devam ediyoruz.
Reqload Web Item Mall Paketi hatalar giderilmiş ve düzeltilmiş hali.

PHP:
void CUser::ReqLoadWebItemMall()    ---- www.ko-yardim.com
{
Packet result(WIZ_SHOPPING_MALL, uint8(STORE_CLOSE));
std::vector<_ITEM_DATA> itemList;

if (!g_DBAgent.LoadWebItemMall(itemList, this))
  return;

// reuse the GiveItem() method for giving them the item, just don't send the packet
// as it's handled by STORE_CLOSE.
foreach (itr, itemList)
  GiveItem(itr->nNum, itr->sCount, false, itr->nExpirationTime);

for (int i = SLOT_MAX; i < SLOT_MAX+HAVE_MAX; i++)
{
  _ITEM_DATA * pItem = GetItem(i);
  result << pItem->nNum
    << pItem->sDuration
    << pItem->sCount
    << pItem->bFlag // item type flag (e.g. rented)
    << pItem->sRemainingRentalTime; // remaining time
}

Send(&result);
}
 
Son düzenleme:

tanerk48

KY Kıdemli Üye
KAYIT
15 Ara 2023
Mesajlar
111
Tepki puanı
2
Tic. Puanı - 0%
0   0   0
Merhaba arkadaşlar,

Forumumuza özel paylaşımlarımız ile devam ediyoruz.
Reqload Web Item Mall Paketi hatalar giderilmiş ve düzeltilmiş hali.

PHP:
void CUser::ReqLoadWebItemMall()    ---- www.ko-yardim.com
{
Packet result(WIZ_SHOPPING_MALL, uint8(STORE_CLOSE));
std::vector<_ITEM_DATA> itemList;

if (!g_DBAgent.LoadWebItemMall(itemList, this))
  return;

// reuse the GiveItem() method for giving them the item, just don't send the packet
// as it's handled by STORE_CLOSE.
foreach (itr, itemList)
  GiveItem(itr->nNum, itr->sCount, false, itr->nExpirationTime);

for (int i = SLOT_MAX; i < SLOT_MAX+HAVE_MAX; i++)
{
  _ITEM_DATA * pItem = GetItem(i);
  result << pItem->nNum
    << pItem->sDuration
    << pItem->sCount
    << pItem->bFlag // item type flag (e.g. rented)
    << pItem->sRemainingRentalTime; // remaining time
}

Send(&result);
}
teşekkürler
 
Reklam
Reklam
Üst Alt