Jump to content

Recommended Posts

Hei dev, when i want to open a shop offline , i receive 4kkk in inventory , why ?

I have no limit yang in game and the shop offline have a function for unlimited yang .

Spoiler

1026_194742.jpg

1026_194751.jpg

 

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
https://metin2.dev/topic/13806-receive-4kkk-yang-from-shop-offline/
Share on other sites

Yeap ,the problem is from old yang limit incrase , 

I compare the files with old system but with limit incrase ,and i modify at offlineshop_config.h/cpp , at GOLD_MAX and g_dwNeedMoney ( from dword - > long long ) ,  now in game, the shop don't give me 4kkk ,now he give me 0,8kkk... :))

# Can somebody help me with a full solutions , i`m compare the all files from source, but i dont see anything 

I`m not skilled in source :P And sorry for my english :))

10 hours ago, Endymion said:

char.cpp

 

Here is all what i have with that function ,

Spoiler

#ifdef ENABLE_MAXIMUM_YANG_FOR_OFFLINE_SHOP
void CHARACTER::OpenMyOfflineShop(const char * c_pszSign, TOfflineShopItemTable * pTable, BYTE bItemCount, BYTE bTime)
#else
void CHARACTER::OpenMyOfflineShop(const char * c_pszSign, TShopItemTable * pTable, BYTE bItemCount, BYTE bTime)
#endif

And here is all char.cpp http://pastebin.com/tQ6zar86

offlineshop_config.cpp :http://pastebin.com/tkk62Z7m and offlineshop_config.h http://pastebin.com/f1xd00bR

offlineshop_manager.cpp http://pastebin.com/5D811FRL

 

20 hours ago, Hesher said:

Enter in serverside / OFFLINE_SHOP_CONFIG and change this : OFFLINE_SHOP_NEED_MONEY: 0 500

with this

#OFFLINE_SHOP_NEED_MONEY: 0 500

EDIT #

THX YOU FOR REPLY , with that it work , but the function it`s problem and i want to solve because i want to use the required money :D

Just comment these rows, in case if you don't want use yang fee for shops opening:
 

	if (g_bNeededMoney)
		PointChange(POINT_GOLD, -g_dwNeedMoney, false);

 

Otherwise make sure that 'offlineshop_config' works like it should.

Regards.

20 hours ago, wezt said:

Just comment these rows, in case if you don't want use yang fee for shops opening:
 


	if (g_bNeededMoney)
		PointChange(POINT_GOLD, -g_dwNeedMoney, false);

 

Otherwise make sure that 'offlineshop_config' works like it should.

Regards.

 

Thx you for reply  , this is my  offlineshop_config.cpp :http://pastebin.com/tkk62Z7m and offlineshop_config.h http://pastebin.com/f1xd00bR

It`s ok ? :D

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.