Jump to content
Araştır
  • Diğer seçenekler ...
Sonuçları bul ...
Sonuçları bul ...
stinq3r

1453 Pus İtem çekme sorunu

Önerilen Mesajlar

Selamın aleyküm
pus sistemin'de hiç bir sorun yok bakiye felan herşey görünüyor pus'da fakat pustan itemi çekiyorum inventory'e gelmiyor. Farklı bir gameserver ile deniyorum üzerime çektiğim itemler geliyor. özetler olursak kullandığım gameserver ile pustaki itemler üzerime gelmiyor başka bir gameserver ile pus'dan item çekmede bir sorun çıkmıyor yardımlarınızı bekliyorum iyi forumlar.

İletiyi paylaş


Link to post
Sitelerde Paylaş

sorunu çözüm sıkıntı olan yer ReqLoadWebItemMall düzeltilmiş hali :

void CUser::ReqLoadWebItemMall()

{

	try {

		Packet result(WIZ_SHOPPING_MALL, uint8(STORE_CLOSE));



		g_DBAgent.UpdateAccountKnightCashInGame(this->GetAccountName());



		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);



		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);

İletiyi paylaş


Link to post
Sitelerde Paylaş

×
×
  • Yeni Oluştur...