Jump to content

Recommended Posts

  • Honorable Member
2 minutes ago, r00t3r said:

C++14 <memory>

Edited by Metin2 Dev
Core X - External 2 Internal
  • Good 3

 

Link to comment
https://metin2.dev/topic/27704-shop-sold-info/#findComment-141984
Share on other sites

  • Honorable Member
4 minutes ago, xP3NG3Rx said:

It's a very nice feature, I've done this as well couple of years ago. Keep it up ?

  Reveal hidden contents

 

 

The idea is old but gold.

 

by the way what we do is almost the same ?

  • Metin2 Dev 1

 

Link to comment
https://metin2.dev/topic/27704-shop-sold-info/#findComment-142030
Share on other sites

  • 1 month later...
  • Premium
1 hour ago, SmyleMDFK said:

Dont work... martysama buy testetd.

 

spacer.png

std::unique_ptr<SShopSoldItemData> m_Sold = nullptr;

>

std::shared_ptr<SShopSoldItemData> m_Sold = nullptr;

Edited by Metin2 Dev
Core X - External 2 Internal
  • Good 1
  • Love 2


 

Link to comment
https://metin2.dev/topic/27704-shop-sold-info/#findComment-143796
Share on other sites

  • 3 months later...
  • 2 weeks later...
  • 1 year later...
  • Active Member
On 1/20/2022 at 1:28 PM, blaxis said:

spacer.png

 

After buy.. any idea?

@blaxis
The fix for the problem is the following:
go to Client -> src -> UserInterface -> GameType.h

// search for typedef struct packet_shop_item 
// and make sure the order of the variables is as follows

typedef struct packet_shop_item
{
    DWORD       vnum;
    DWORD       price;
    BYTE        count;
	BYTE		display_pos;
	long		alSockets[ITEM_SOCKET_SLOT_MAX_NUM];
    TPlayerItemAttribute aAttr[ITEM_ATTRIBUTE_SLOT_MAX_NUM];
#if defined(__BL_SHOP_SOLD__)	// this if with the following variables must be the last
	char		szBuyerName[/*CHARACTER_NAME_MAX_LEN*/24 + 1];
	char		szBuyTime[19 + 1];
#endif
} TShopItemData;

go to Server -> game -> src -> packet.h

// look for struct packet_shop_item 
// and make sure the order is the same as the file edited before

struct packet_shop_item
{   
	DWORD       vnum;
	DWORD       price;
	BYTE        count;
	BYTE		display_pos;
	long	alSockets[ITEM_SOCKET_MAX_NUM];
	TPlayerItemAttribute aAttr[ITEM_ATTRIBUTE_MAX_NUM];
#if defined(__BL_SHOP_SOLD__)
	char	szBuyerName[CHARACTER_NAME_MAX_LEN + 1];
	char	szBuyTime[19 + 1];
#endif
};
Edited by 4peppe
Resolved
Link to comment
https://metin2.dev/topic/27704-shop-sold-info/#findComment-155708
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.