R 1
Roksam
[DEV]AB 1
[DEV]AB
Sevdamsın 1
Sevdamsın
farkmt2official 1
farkmt2official
emirhanHCL 1
emirhanHCL
Scarlet 1
Scarlet
Best Studio 1
Best Studio
mannaxxx 1
mannaxxx
Agora Metin2 1
Agora Metin2
Hikaye Ekle

İkarus v2 K envanteri uyarlama

Türkiye'de ilk Mobil & PC Aynı Anda Metin2 Oyna. Triarchonline kalıcı ve uzun ömürlü yapısı ile 24 Temmuz'da açılıyor. | 1-99 Mobil Metin2 Triarch HEMEN TIKLA!

char.cpp dosyası açılır
arat
bool CHARACTER::CanTakeInventoryItem(LPITEM item, TItemPos* pos)

değiştir

bool CHARACTER::CanTakeInventoryItem(LPITEM item, TItemPos* pos)
{
int emptyPos = -1;
if (item->IsDragonSoul())
{
pos->cell = emptyPos = GetEmptyDragonSoulInventory(item);
pos->window_type = DRAGON_SOUL_INVENTORY;
}
#ifdef ENABLE_SPLIT_INVENTORY_SYSTEM
else if (item->IsSkillBook())
{
pos->cell = emptyPos = GetEmptySkillBookInventory(item->GetSize());
pos->window_type = INVENTORY;
}
else if (item->IsUpgradeItem())
{
pos->cell = emptyPos = GetEmptyUpgradeItemsInventory(item->GetSize());
pos->window_type = INVENTORY;
}
else if (item->IsStone())
{
pos->cell = emptyPos = GetEmptyStoneInventory(item->GetSize());
pos->window_type = INVENTORY;
}
else if (item->IsBox())
{
pos->cell = emptyPos = GetEmptyBoxInventory(item->GetSize());
pos->window_type = INVENTORY;
}
else if (item->IsEfsun())
{
pos->cell = emptyPos = GetEmptyEfsunInventory(item->GetSize());
pos->window_type = INVENTORY;
}
else if (item->IsCicek())
{
pos->cell = emptyPos = GetEmptyCicekInventory(item->GetSize());
pos->window_type = INVENTORY;
}
#endif
else
{
pos->cell = emptyPos = GetEmptyInventory(item->GetSize());
pos->window_type = INVENTORY;
}
return emptyPos != -1;
}
 
Son düzenleme:
char.cpp dosyası açılır
arat
bool CHARACTER::CanTakeInventoryItem(LPITEM item, TItemPos* pos)

değiştir

bool CHARACTER::CanTakeInventoryItem(LPITEM item, TItemPos* pos)
{
int emptyPos = -1;
if (item->IsDragonSoul())
{
pos->cell = emptyPos = GetEmptyDragonSoulInventory(item);
pos->window_type = DRAGON_SOUL_INVENTORY;
}
#ifdef ENABLE_SPLIT_INVENTORY_SYSTEM
else if (item->IsSkillBook())
{
pos->cell = emptyPos = GetEmptySkillBookInventory(item->GetSize());
pos->window_type = INVENTORY;
}
else if (item->IsUpgradeItem())
{
pos->cell = emptyPos = GetEmptyUpgradeItemsInventory(item->GetSize());
pos->window_type = INVENTORY;
}
else if (item->IsStone())
{
pos->cell = emptyPos = GetEmptyStoneInventory(item->GetSize());
pos->window_type = INVENTORY;
}
else if (item->IsBox())
{
pos->cell = emptyPos = GetEmptyBoxInventory(item->GetSize());
pos->window_type = INVENTORY;
}
else if (item->IsEfsun())
{
pos->cell = emptyPos = GetEmptyEfsunInventory(item->GetSize());
pos->window_type = INVENTORY;
}
else if (item->IsCicek())
{
pos->cell = emptyPos = GetEmptyCicekInventory(item->GetSize());
pos->window_type = INVENTORY;
}
#endif
else
{
pos->cell = emptyPos = GetEmptyInventory(item->GetSize());
pos->window_type = INVENTORY;
}
return emptyPos != -1;
}
teşekkürler
 

Şu an konuyu görüntüleyenler (Toplam : 0, Üye: 0, Misafir: 0)

Geri
Üst