brianman 1 Posted September 6, 2014 Share Posted September 6, 2014 Hi Devs, I have this bug when i have 3. and 4. inventory: Can someone help me to solve this problem? Regards, Brianman Link to comment Share on other sites More sharing options...
TheSLZ 107 Posted September 6, 2014 Share Posted September 6, 2014 I have this bug too. When i removed 3. and 4 inventory, there is no bug. So it's caused by the 3. and 4. inventory. Pls help us Link to comment Share on other sites More sharing options...
Honorable Member xP3NG3Rx 19762 Posted September 6, 2014 Honorable Member Share Posted September 6, 2014 (edited) Could you explain it? Because -> link (Slow internet 32kbps T_T) I know this bug, and I fixxed this 4 month ago Prewritten txt with pictures: ds fix.7z But the problem is the SItemPos struct in common/length.h. Here is the fixxed: typedef struct SItemPos { BYTE window_type; WORD cell; SItemPos () { window_type = INVENTORY; cell = WORD_MAX; } SItemPos (BYTE _window_type, WORD _cell) { window_type = _window_type; cell = _cell; } bool IsValidItemPosition() const { switch (window_type) { case RESERVED_WINDOW: return false; case INVENTORY: case EQUIPMENT: case BELT_INVENTORY: return cell < INVENTORY_AND_EQUIP_SLOT_MAX; case DRAGON_SOUL_INVENTORY: return cell < (DRAGON_SOUL_INVENTORY_MAX_NUM); // µżŔűŔ¸·Î Ĺ©±â°ˇ Á¤ÇŘÁö´Â window´Â valid ĂĽĹ©¸¦ ÇŇ Ľö°ˇ ľř´Ů. case SAFEBOX: case MALL: return false; default: return false; } return false; } bool IsEquipPosition() const { return (IsDefaultInventoryEquipPosition() || IsDragonSoulEquipPosition()); } bool IsDefaultInventoryEquipPosition() const { return ((INVENTORY == window_type || EQUIPMENT == window_type) && cell >= INVENTORY_MAX_NUM && cell < INVENTORY_MAX_NUM + WEAR_MAX_NUM); } bool IsDragonSoulEquipPosition() const { return ((INVENTORY == window_type || EQUIPMENT == window_type) && cell >= DRAGON_SOUL_EQUIP_SLOT_START && cell < DRAGON_SOUL_EQUIP_SLOT_END); } bool IsBeltInventoryPosition() const { return ((INVENTORY == window_type) && cell >= BELT_INVENTORY_SLOT_START && cell < BELT_INVENTORY_SLOT_END); } bool IsDefaultInventoryPosition() const { return ((INVENTORY == window_type) && cell < INVENTORY_MAX_NUM); } bool operator==(const struct SItemPos& rhs) const { return (window_type == rhs.window_type) && (cell == rhs.cell); } bool operator<(const struct SItemPos& rhs) const { return (window_type < rhs.window_type) || ((window_type == rhs.window_type) && (cell < rhs.cell)); } } TItemPos; Me works Edited August 23, 2022 by Metin2 Dev Core X - External 2 Internal 3 Link to comment Share on other sites More sharing options...
TheSLZ 107 Posted September 6, 2014 Share Posted September 6, 2014 DS slot bug solved, thx P3NG3R But the belt bug still there. We can change belt when the belt's slots is not empty. Link to comment Share on other sites More sharing options...
Honorable Member xP3NG3Rx 19762 Posted September 6, 2014 Honorable Member Share Posted September 6, 2014 I do not know, If I have an item into the belt inventory I can't change belt. Link to comment Share on other sites More sharing options...
Makaveli 4 Posted August 19, 2023 Share Posted August 19, 2023 it works. bug doesnt exist just in case of 3/4th inventory. Little refresh for anybody who need some help with that. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now