Grouping countable items[18xx,19xx, 20xx]

  • Konbuyu başlatan Konbuyu başlatan jarmen
  • Başlangıç tarihi Başlangıç tarihi

  • HyperFilter | DoS Protection | DDoS Protection | DoS Mitigation | DDoS Mitigation | AntiDoS | AntiDDoS | Proxy Shielding

jarmen

Hızlı Cüce
Kayıtlı Üye
Katılım
2 Eylül 2012
Mesajlar
609
Reaction score
2
Puanları
18
Yaş
35
Dünkü kayıpta giden paylaşımları tekrardan paylaşıyorum...

Konu link görüntülemek için konuya cevap yazmalısınız.
Kod:
Sendmyinfo (..Agruparınventory (); ..



[COLOR=#333333][FONT=Monaco]bool CUser::AgruparInventory(){[/FONT][/COLOR]

[COLOR=#333333][FONT=Monaco]//Inventario solamente [/FONT][/COLOR]

[COLOR=#333333][FONT=Monaco]int bTemp = 1;[/FONT][/COLOR]



[COLOR=#333333][FONT=Monaco]for (int i = SLOT_MAX; i < SLOT_MAX+HAVE_MAX; i++)[/FONT][/COLOR]

[COLOR=#333333][FONT=Monaco]{[/FONT][/COLOR]

[COLOR=#333333][FONT=Monaco]//verificar si el items es contable [/FONT][/COLOR]

[COLOR=#333333][FONT=Monaco]_ITEM_TABLE * pTable = g_pMain->GetItemPtr( m_sItemArray[i].nNum);[/FONT][/COLOR]

[COLOR=#333333][FONT=Monaco]if (pTable == nullptr)[/FONT][/COLOR]

[COLOR=#333333][FONT=Monaco]continue;[/FONT][/COLOR]





[COLOR=#333333][FONT=Monaco]if(!pTable->isStackable() || pTable->GetKind() == 98)[/FONT][/COLOR]

[COLOR=#333333][FONT=Monaco]continue;[/FONT][/COLOR]



[COLOR=#333333][FONT=Monaco]for (int j = SLOT_MAX+bTemp; j < SLOT_MAX+HAVE_MAX; j++)[/FONT][/COLOR]

[COLOR=#333333][FONT=Monaco]{[/FONT][/COLOR]

[COLOR=#333333][FONT=Monaco]if (i == j)[/FONT][/COLOR]

[COLOR=#333333][FONT=Monaco]continue;[/FONT][/COLOR]





[COLOR=#333333][FONT=Monaco]_ITEM_TABLE * pTable2 = g_pMain->GetItemPtr( m_sItemArray[j].nNum);[/FONT][/COLOR]

[COLOR=#333333][FONT=Monaco]if (pTable2 == nullptr)[/FONT][/COLOR]

[COLOR=#333333][FONT=Monaco]continue;[/FONT][/COLOR]





[COLOR=#333333][FONT=Monaco]if(!pTable2->isStackable() || pTable->GetKind() == 98)[/FONT][/COLOR]

[COLOR=#333333][FONT=Monaco]continue;[/FONT][/COLOR]



[COLOR=#333333][FONT=Monaco]if (m_sItemArray[i].nNum == m_sItemArray[j].nNum)[/FONT][/COLOR]

[COLOR=#333333][FONT=Monaco]{[/FONT][/COLOR]

[COLOR=#333333][FONT=Monaco]m_sItemArray[i].sCount += m_sItemArray[j].sCount;[/FONT][/COLOR]



[COLOR=#333333][FONT=Monaco]//Asigna valor 0 a la columna de donde sacaste los items [/FONT][/COLOR]

[COLOR=#333333][FONT=Monaco]m_sItemArray[j].nNum = 0;[/FONT][/COLOR]

[COLOR=#333333][FONT=Monaco]m_sItemArray[j].sCount = 0;[/FONT][/COLOR]

[COLOR=#333333][FONT=Monaco]m_sItemArray[j].sDuration = 0;[/FONT][/COLOR]

[COLOR=#333333][FONT=Monaco]m_sItemArray[j].sRemainingRentalTime = 0;[/FONT][/COLOR]

[COLOR=#333333][FONT=Monaco]m_sItemArray[j].bFlag = 0;[/FONT][/COLOR]

[COLOR=#333333][FONT=Monaco]m_sItemArray[j].nExpirationTime = 0;[/FONT][/COLOR]

[COLOR=#333333][FONT=Monaco]m_sItemArray[j].nSerialNum = 0;[/FONT][/COLOR]

[COLOR=#333333][FONT=Monaco]m_sItemArray[j].IsSelling = false;[/FONT][/COLOR]

[COLOR=#333333][FONT=Monaco]}[/FONT][/COLOR]

[COLOR=#333333][FONT=Monaco]}[/FONT][/COLOR]





[COLOR=#333333][FONT=Monaco]bTemp++;[/FONT][/COLOR]

[COLOR=#333333][FONT=Monaco]}[/FONT][/COLOR]





[COLOR=#333333][FONT=Monaco]return true;[/FONT][/COLOR]

[COLOR=#333333][FONT=Monaco]}[/FONT][/COLOR]

ALINTIDIR.



Credits by Christian!
 
Cevap: Grouping countable items[18xx,19xx, 20xx]



Credits by Christian!
 
Cevap: Grouping countable items[18xx,19xx, 20xx]



Teşekkür ederim...
 
Cevap: Grouping countable items[18xx,19xx, 20xx]



Tesekkurler
 
Cevap: Grouping countable items[18xx,19xx, 20xx]



teşekkürler
 
Cevap: Grouping countable items[18xx,19xx, 20xx]



Teşekkürler
 
Cevap: Grouping countable items[18xx,19xx, 20xx]



teşekkürler
 
Cevap: Grouping countable items[18xx,19xx, 20xx]



teşekkürler
 
Cevap: Grouping countable items[18xx,19xx, 20xx]



Paylaşım için teşekkürler
 
Cevap: Grouping countable items[18xx,19xx, 20xx]



Tesekkurler
 
Cevap: Grouping countable items[18xx,19xx, 20xx]



sagolasın
 
Cevap: Grouping countable items[18xx,19xx, 20xx]



Teşekkürler
 
Cevap: Grouping countable items[18xx,19xx, 20xx]



teşekkürler yavaş yavaş bir şeyler çıkıyor ha piyasaya 😀
 
Cevap: Grouping countable items[18xx,19xx, 20xx]



thank you
 
Cevap: Grouping countable items[18xx,19xx, 20xx]



Tskr
 
Geri
Üst Alt
Reklam
Reklam