Jump to content

Recommended Posts

  • Premium

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

 

Can anyone help me?

 

 

#edit

 

The problem was from root->interfacemodule.py

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
https://metin2.dev/topic/20074-probleam-great-offline-shop-i-cant-open-shops/
Share on other sites

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

  • Premium

Dude??

You opened a npc_shop, then you try to open the offline shop target.

There was an LC_TEXT saying that you can't open because there is a npc_shop opened.

 

 

I think that you fucked up the npc_shop check functions installing the offshop codes.

Or

There is a wrong check o something else.

You can't open any shop (npc shop, offline shop, etc)? or it only happens after that you try to open a npc shop?

It happens after you add the offline shop system? So you must check the offline shop source. Probably you should start by checking the common functions of shop and npc shops (or trades in general).

  • 2 years later...
  • Developer

For people who encounter this problem and cannot solve it, the solution is multifactorial.

The first can be in the interface module, diff the file with a working one, find it online.

 

I solved it personally by editing in char.cpp

 

#ifdef ENABLE_OFFLINE_SHOP
	if (IsPC() || IsNPC() ||/*error*/ GetRaceNum() == 30000) //like to  if (IsPC() || IsNPC() && GetRaceNum() == 30000)
	{		
		if (!CTargetManager::instance().GetTargetInfo(pkChrCauser->GetPlayerID(), TARGET_TYPE_VID, GetVID()) || GetRaceNum() == 30000)
#else
	if (IsPC())
	{
		if (!CTargetManager::instance().GetTargetInfo(pkChrCauser->GetPlayerID(), TARGET_TYPE_VID, GetVID()))
#endif

 

for obscure reason, there was an && instead of || °-° before GetRaceNum

if I find others I will let you know, I took this system online and it was written incorrectly.

Edited by Mitachi

Villains are not born, they are made.
Join

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.