Jump to content

Dragonsoul rubin problem


Go to solution Solved by M3ragon,

Recommended Posts

Hey guys i have a Problem with my Dragonsoul Alchemi...
wnt27AZ.png

This Slot, wont work. I Cannot Refine then.

Video:

https://metin2.download/picture/r3F9504x09DVmF8K988YXgTtGTP6KMUj/.gif

I Saw this topic:

Bug the guy only postet "Fixed" and not how...

I found out the its a Problem with the Beld inventroy... but i dont know how to fix this.

Can somebody tell me the Fix?

 

Some infos about my Src.

Martyfiles ( v4.9.40 )

4 Inventroypages + Belt + Dragonsoul

 

 

 

~Meragon

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

sorry but i think im blind.
Did you see any fail?

and yes, bought the Switchbot.

enum EMisc2
{
	DRAGON_SOUL_EQUIP_SLOT_START = INVENTORY_MAX_NUM + WEAR_MAX_NUM, 
	// (DRAGON_SOUL_EQUIP_SLOT_START (212) |INVENTORY_MAX_NUM (180) |WEAR_MAX_NUM (32)
	DRAGON_SOUL_EQUIP_SLOT_END = DRAGON_SOUL_EQUIP_SLOT_START + (DS_SLOT_MAX * DRAGON_SOUL_DECK_MAX_NUM),
	// DRAGON_SOUL_EQUIP_SLOT_END (224) |DRAGON_SOUL_EQUIP_SLOT_START (212) |DS_SLOT_MAX (6) |DRAGON_SOUL_DECK_MAX_NUM (2)
	DRAGON_SOUL_EQUIP_RESERVED_SLOT_END = DRAGON_SOUL_EQUIP_SLOT_END + (DS_SLOT_MAX * DRAGON_SOUL_DECK_RESERVED_MAX_NUM), 
	// DRAGON_SOUL_EQUIP_RESERVED_SLOT_END (242) |DRAGON_SOUL_EQUIP_SLOT_END (224) |DS_SLOT_MAX (6) |DRAGON_SOUL_DECK_RESERVED_MAX_NUM (3)
	BELT_INVENTORY_SLOT_START = DRAGON_SOUL_EQUIP_RESERVED_SLOT_END,
	// BELT_INVENTORY_SLOT_START (242) |DRAGON_SOUL_EQUIP_RESERVED_SLOT_END (242)
	BELT_INVENTORY_SLOT_END = BELT_INVENTORY_SLOT_START + BELT_INVENTORY_SLOT_COUNT,
	// BELT_INVENTORY_SLOT_END (258) |BELT_INVENTORY_SLOT_START (242) |BELT_INVENTORY_SLOT_COUNT (26)
	INVENTORY_AND_EQUIP_SLOT_MAX = BELT_INVENTORY_SLOT_END,
	// INVENTORY_AND_EQUIP_SLOT_MAX (258) |BELT_INVENTORY_SLOT_END (258)
};

#pragma pack(push, 1)

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;
		case SAFEBOX:
		case MALL:
			return false;
#ifdef ENABLE_SWITCHBOT
		case SWITCHBOT:
			return cell < SWITCHBOT_SLOT_COUNT;
#endif
		default:
			return false;
		}
		return false;
	}

	bool IsEquipPosition() const
	{
		return ((INVENTORY == window_type || EQUIPMENT == window_type) && cell >= INVENTORY_MAX_NUM && cell < INVENTORY_MAX_NUM + WEAR_MAX_NUM)
			|| IsDragonSoulEquipPosition();
	}

	bool IsDragonSoulEquipPosition() const
	{
		return (DRAGON_SOUL_EQUIP_SLOT_START <= cell) && (DRAGON_SOUL_EQUIP_SLOT_END > cell);
	}

	bool IsBeltInventoryPosition() const
	{
		return (BELT_INVENTORY_SLOT_START <= cell) && (BELT_INVENTORY_SLOT_END > cell);
	}

	bool IsDefaultInventoryPosition() const
	{
		return INVENTORY == window_type && cell < INVENTORY_MAX_NUM;
	}
#ifdef ENABLE_SWITCHBOT
	bool IsSwitchbotPosition() const
	{
		return SWITCHBOT == window_type && cell < SWITCHBOT_SLOT_COUNT;
	}
#endif
	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;

const TItemPos NPOS (RESERVED_WINDOW, WORD_MAX);

typedef enum
{
	SHOP_COIN_TYPE_GOLD, // DEFAULT VALUE
	SHOP_COIN_TYPE_SECONDARY_COIN,
} EShopCoinType;

 

Link to comment
Share on other sites

  • Solution

for all with same bug...
Bug comes from 4 Inventorypages

Lenght.h

//search:
	bool IsDragonSoulEquipPosition() const

//replace with:
	bool IsDragonSoulEquipPosition() const
	{
		return (window_type == INVENTORY) && (DRAGON_SOUL_EQUIP_SLOT_START <= cell) && (DRAGON_SOUL_EQUIP_SLOT_END > cell);
	}

 

Edited by MeragonGER
  • Love 3
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.