Metin2 Envanter Say?s?n? 5 Yapma
Server Klas�r�ndeki common klas�r� a�?l?r i�erisindeki length.h a�?l?r ve arat?l?r
INVENTORY_MAX_NUM = 90,
INVENTORY_MAX_NUM = 225,
Bu ?ekilde De?i?tirilir Ve length.h Kapat?l?r.
?imdi Game / src ?�indeki exchange.cpp a�?l?r ve arat?l?r.
static CGrid s_grid1(5, INVENTORY_MAX_NUM/5 / 2); // inven page 1
static CGrid s_grid2(5, INVENTORY_MAX_NUM/5 / 2); // inven page 2
Alt?na eklenir
static CGrid s_grid3(5, INVENTORY_MAX_NUM/5 / 2); // inven page 3
static CGrid s_grid4(5, INVENTORY_MAX_NUM/5 / 2); // inven page 3
static CGrid s_grid5(5, INVENTORY_MAX_NUM/5 / 2); // inven page 3
exchange.cpp i�erisinde tekrar arat?l?r :
s_grid1.Clear();
s_grid2.Clear();
Alt?na eklenir
s_grid3.Clear();
s_grid4.Clear();
s_grid5.Clear();
Tekrar exchange.cpp de arat?l?r
for (i = 0; i < INVENTORY_MAX_NUM / 2; ++i)
Ve Kod Blo?unu Tamamen ?u ?ekilde De?i?tiriniz
for (i = 0; i < INVENTORY_MAX_NUM / 5; ++i)
{
if (!(item = victim->GetInventoryItem(i)))
continue;
s_grid1.Put(i, 1, item->GetSize());
}
for (i = INVENTORY_MAX_NUM / 5; i < INVENTORY_MAX_NUM; ++i)
{
if (!(item = victim->GetInventoryItem(i)))
continue;
s_grid2.Put(i - INVENTORY_MAX_NUM / 5, 1, item->GetSize());
}
for (i = INVENTORY_MAX_NUM / 5; i < INVENTORY_MAX_NUM; ++i)
{
if (!(item = victim->GetInventoryItem(i)))
continue;
s_grid3.Put(i - INVENTORY_MAX_NUM / 5, 1, item->GetSize());
}
for (i = INVENTORY_MAX_NUM / 5; i < INVENTORY_MAX_NUM; ++i)
{
if (!(item = victim->GetInventoryItem(i)))
continue;
s_grid4.Put(i - INVENTORY_MAX_NUM / 5, 1, item->GetSize());
}
for (i = INVENTORY_MAX_NUM / 5; i < INVENTORY_MAX_NUM; ++i)
{
if (!(item = victim->GetInventoryItem(i)))
continue;
s_grid5.Put(i - INVENTORY_MAX_NUM / 5, 1, item->GetSize());
}
Client K?sm?nda Client/Userinterface i�erisindeki GameType.h a�?l?r ve arat?l?r
const DWORD c_Inventory_Page_Count = 2;
Bu ?ekilde de?i?tirilir
const DWORD c_Inventory_Page_Count = 5;
Ta?ma Sorununu Engelleyen Kodlar:
char_item.cpp a�?l?r ve ne kadar
INVENTORY_MAX_NUM / 2
Varsa Arat?l?r Hepsi ?u ?ekilde De?i?tirilir
INVENTORY_MAX_NUM / 5
Python Eklentileri Haz?r .py ler
uinventory.py root i�ierisine inventorywindow.py locale_tr i�erisine at?l?r
INVENTORY_MAX_NUM = 90,
INVENTORY_MAX_NUM = 225,
Bu ?ekilde De?i?tirilir Ve length.h Kapat?l?r.
?imdi Game / src ?�indeki exchange.cpp a�?l?r ve arat?l?r.
static CGrid s_grid1(5, INVENTORY_MAX_NUM/5 / 2); // inven page 1
static CGrid s_grid2(5, INVENTORY_MAX_NUM/5 / 2); // inven page 2
Alt?na eklenir
static CGrid s_grid3(5, INVENTORY_MAX_NUM/5 / 2); // inven page 3
static CGrid s_grid4(5, INVENTORY_MAX_NUM/5 / 2); // inven page 3
static CGrid s_grid5(5, INVENTORY_MAX_NUM/5 / 2); // inven page 3
exchange.cpp i�erisinde tekrar arat?l?r :
s_grid1.Clear();
s_grid2.Clear();
Alt?na eklenir
s_grid3.Clear();
s_grid4.Clear();
s_grid5.Clear();
Tekrar exchange.cpp de arat?l?r
for (i = 0; i < INVENTORY_MAX_NUM / 2; ++i)
Ve Kod Blo?unu Tamamen ?u ?ekilde De?i?tiriniz
for (i = 0; i < INVENTORY_MAX_NUM / 5; ++i)
{
if (!(item = victim->GetInventoryItem(i)))
continue;
s_grid1.Put(i, 1, item->GetSize());
}
for (i = INVENTORY_MAX_NUM / 5; i < INVENTORY_MAX_NUM; ++i)
{
if (!(item = victim->GetInventoryItem(i)))
continue;
s_grid2.Put(i - INVENTORY_MAX_NUM / 5, 1, item->GetSize());
}
for (i = INVENTORY_MAX_NUM / 5; i < INVENTORY_MAX_NUM; ++i)
{
if (!(item = victim->GetInventoryItem(i)))
continue;
s_grid3.Put(i - INVENTORY_MAX_NUM / 5, 1, item->GetSize());
}
for (i = INVENTORY_MAX_NUM / 5; i < INVENTORY_MAX_NUM; ++i)
{
if (!(item = victim->GetInventoryItem(i)))
continue;
s_grid4.Put(i - INVENTORY_MAX_NUM / 5, 1, item->GetSize());
}
for (i = INVENTORY_MAX_NUM / 5; i < INVENTORY_MAX_NUM; ++i)
{
if (!(item = victim->GetInventoryItem(i)))
continue;
s_grid5.Put(i - INVENTORY_MAX_NUM / 5, 1, item->GetSize());
}
Client K?sm?nda Client/Userinterface i�erisindeki GameType.h a�?l?r ve arat?l?r
const DWORD c_Inventory_Page_Count = 2;
Bu ?ekilde de?i?tirilir
const DWORD c_Inventory_Page_Count = 5;
Ta?ma Sorununu Engelleyen Kodlar:
char_item.cpp a�?l?r ve ne kadar
INVENTORY_MAX_NUM / 2
Varsa Arat?l?r Hepsi ?u ?ekilde De?i?tirilir
INVENTORY_MAX_NUM / 5
Python Eklentileri Haz?r .py ler
uinventory.py root i�ierisine inventorywindow.py locale_tr i�erisine at?l?r
Metin2 Envanter Say?s?n? 5 Yapma
Reviewed by Blog
on
Ağustos 11, 2015
Rating:
Hiç yorum yok: