- Katılım
- 15 Nis 2016
- Konular
- 115
- Mesajlar
- 4,815
- Çözüm
- 58
- Online süresi
- 8mo 4d
- Reaksiyon Skoru
- 1,107
- Altın Konu
- 3
- Başarım Puanı
- 279
- MmoLira
- 6,261
- DevLira
- 66
HERAKLES Otomatik Avlı kalıcı sunucu. 19 Haziran'da açılıyor. Atius & Wizard güvencesiyle hemen kayıt ol, ön kayıt ödülleri aktif. HEMEN TIKLA!
Yanıyoruz gene![]()
Teşkrlr.
- Katılım
- 6 Eyl 2009
- Konular
- 66
- Mesajlar
- 2,434
- Çözüm
- 1
- Online süresi
- 3d 9h
- Reaksiyon Skoru
- 2,157
- Altın Konu
- 0
- TM Yaşı
- 16 Yıl 9 Ay 17 Gün
- Başarım Puanı
- 283
- MmoLira
- 239
- DevLira
- 56
ayak 70 numara galiba :FCWDsag
- Katılım
- 20 Kas 2016
- Konular
- 65
- Mesajlar
- 1,263
- Çözüm
- 12
- Online süresi
- 1mo 3d
- Reaksiyon Skoru
- 619
- Altın Konu
- 0
- TM Yaşı
- 9 Yıl 7 Ay
- Başarım Puanı
- 201
- MmoLira
- 2,443
- DevLira
- 82
- Katılım
- 8 Eki 2017
- Konular
- 2,420
- Mesajlar
- 10,263
- Çözüm
- 89
- Online süresi
- 4mo 8h
- Reaksiyon Skoru
- 4,207
- Altın Konu
- 244
- Başarım Puanı
- 422
- MmoLira
- 7,171
- DevLira
- 15
Teşekkürler ...
- Katılım
- 16 Eki 2009
- Konular
- 82
- Mesajlar
- 2,278
- Çözüm
- 1
- Online süresi
- 22d 19h
- Reaksiyon Skoru
- 825
- Altın Konu
- 16
- Başarım Puanı
- 239
- Yaş
- 36
- MmoLira
- 4,621
- DevLira
- 12
Simya envanteri slot genişletilmesidir. ticarette simya alışverişinizde sıkıntı yaşanmamasını sağlayan kodlar.
Char_item.cpp arat
Kod:bool CHARACTER::IsEmptyItemGrid(TItemPos Cell, BYTE bSize, int iExceptionCell) const
Kod bloğu altına ekle
Kod:bool CHARACTER::IsEmptyItemGridSpecial(const TItemPos &Cell, BYTE bSize, int iExceptionCell, std::vector<WORD>& vec) const { if (std::find(vec.begin(), vec.end(), Cell.cell) != vec.end()) { return false; } switch (Cell.window_type) { case INVENTORY: { WORD bCell = (WORD)Cell.cell; // bItemCellÀº 0ÀÌ falseÀÓÀ» ³ªÅ¸³»±â À§ÇØ + 1 ÇØ¼ ó¸®ÇÑ´Ù. // µû¶ó¼ iExceptionCell¿¡ 1À» ´õÇØ ºñ±³ÇÑ´Ù. ++iExceptionCell; if (Cell.IsBeltInventoryPosition()) { LPITEM beltItem = GetWear(WEAR_BELT); if (NULL == beltItem) return false; if (false == CBeltInventoryHelper::IsAvailableCell(bCell - BELT_INVENTORY_SLOT_START, beltItem->GetValue(0))) return false; if (m_pointsInstant.bItemGrid[bCell]) { if (m_pointsInstant.bItemGrid[bCell] == iExceptionCell) return true; return false; } if (bSize == 1) return true; } else if (bCell >= INVENTORY_MAX_NUM) return false; if (m_pointsInstant.bItemGrid[bCell]) { if (m_pointsInstant.bItemGrid[bCell] == iExceptionCell) { if (bSize == 1) return true; int j = 1; WORD bPage = bCell / (45); do { WORD p = bCell + (5 * j); if (p >= INVENTORY_MAX_NUM) return false; if (p / (45) != bPage) return false; if (m_pointsInstant.bItemGrid[p]) if (m_pointsInstant.bItemGrid[p] != iExceptionCell) return false; } while (++j < bSize); return true; } else return false; } // Å©±â°¡ 1À̸é ÇÑÄÀ» Â÷ÁöÇÏ´Â °ÍÀ̹ǷΠ±×³É ¸®ÅÏ if (1 == bSize) return true; else { int j = 1; WORD bPage = bCell / (45); do { WORD p = bCell + (5 * j); if (p >= INVENTORY_MAX_NUM) return false; if (p / (45) != bPage) return false; if (m_pointsInstant.bItemGrid[p]) if (m_pointsInstant.bItemGrid[p] != iExceptionCell) return false; } while (++j < bSize); return true; } } break; case DRAGON_SOUL_INVENTORY: { WORD wCell = Cell.cell; if (wCell >= DRAGON_SOUL_INVENTORY_MAX_NUM) return false; // bItemCellÀº 0ÀÌ falseÀÓÀ» ³ªÅ¸³»±â À§ÇØ + 1 ÇØ¼ ó¸®ÇÑ´Ù. // µû¶ó¼ iExceptionCell¿¡ 1À» ´õÇØ ºñ±³ÇÑ´Ù. iExceptionCell++; if (m_pointsInstant.wDSItemGrid[wCell]) { if (m_pointsInstant.wDSItemGrid[wCell] == iExceptionCell) { if (bSize == 1) return true; int j = 1; do { WORD p = wCell + (DRAGON_SOUL_BOX_COLUMN_NUM * j); if (p >= DRAGON_SOUL_INVENTORY_MAX_NUM) return false; if (m_pointsInstant.wDSItemGrid[p]) if (m_pointsInstant.wDSItemGrid[p] != iExceptionCell) return false; } while (++j < bSize); return true; } else return false; } // Å©±â°¡ 1À̸é ÇÑÄÀ» Â÷ÁöÇÏ´Â °ÍÀ̹ǷΠ±×³É ¸®ÅÏ if (1 == bSize) return true; else { int j = 1; do { WORD p = wCell + (DRAGON_SOUL_BOX_COLUMN_NUM * j); if (p >= DRAGON_SOUL_INVENTORY_MAX_NUM) return false; if (m_pointsInstant.bItemGrid[p]) if (m_pointsInstant.wDSItemGrid[p] != iExceptionCell) return false; } while (++j < bSize); return true; } } break; } return false; }
aynı cppde arat
Kod:int CHARACTER::GetEmptyInventory(BYTE size) const
kod bloğu altına ekle
Kod:int CHARACTER::GetEmptyDragonSoulInventoryWithExceptions(LPITEM pItem, std::vector<WORD>& vec /*= -1*/) const { if (NULL == pItem || !pItem->IsDragonSoul()) return -1; if (!DragonSoul_IsQualified()) { return -1; } BYTE bSize = pItem->GetSize(); WORD wBaseCell = DSManager::instance().GetBasePosition(pItem); if (WORD_MAX == wBaseCell) return -1; for (int i = 0; i < DRAGON_SOUL_BOX_SIZE; ++i) if (IsEmptyItemGridSpecial(TItemPos(DRAGON_SOUL_INVENTORY, i + wBaseCell), bSize, -1, vec)) return i + wBaseCell; return -1; }
char.h aç ve arat
Kod:void CopyDragonSoulItemGrid(std::vector<WORD>& vDragonSoulItemGrid) const;
altına ekle
Kod:int GetEmptyDragonSoulInventoryWithExceptions(LPITEM pItem, std::vector<WORD>& vec /*= -1*/) const;
arat
Kod:bool IsEmptyItemGrid(TItemPos Cell, BYTE size, int iExceptionCell = -1) const;
altına ekle
Kod:IsEmptyItemGridSpecial(const TItemPos &Cell, BYTE bSize, int iExceptionCell, std::vector<WORD>& vec) const;
exchange.cpp aç ve arat
Kod:bool CExchange::CheckSpace() {
altına ekle
Kod:LPCHARACTER me = GetOwner();
arat
Kod:static std::vector <WORD> s_vDSGrid(DRAGON_SOUL_INVENTORY_MAX_NUM);
elseye kadar değiştir
Kod:static std::vector <WORD> s_vDSGrid(DRAGON_SOUL_INVENTORY_MAX_NUM); std::vector<WORD> exceptDSCells; exceptDSCells.clear(); for (i = 0; i < EXCHANGE_ITEM_MAX_NUM; ++i) { if (!((item = GetCompany()->GetItemByPosition(i)))) continue; BYTE itemSize = item->GetSize(); if (item->IsDragonSoul()) { WORD foundCell = me->GetEmptyDragonSoulInventoryWithExceptions(item, exceptDSCells); if (foundCell != -1) { exceptDSCells.push_back(foundCell); continue; } return false;
exchange.h aç ve arat
Kod:bool GetAcceptStatus() { return m_bAccept; }
altına ekle
Kod:CItem * GetItemByPosition(int i) const { return m_apItems[i]; }
Paylaşım için teşekkürler.
Şu an konuyu görüntüleyenler (Toplam : 0, Üye: 0, Misafir: 0)
Benzer konular
- Cevaplar
- 12
- Görüntüleme
- 612
- Cevaplar
- 9
- Görüntüleme
- 454
- Cevaplar
- 20
- Görüntüleme
- 820
- Cevaplar
- 8
- Görüntüleme
- 310
- Cevaplar
- 3
- Görüntüleme
- 393







