Jump to content

[C++]Fix duplicate Acce in ShopOffline


Recommended Posts

Hello,

Search in game source cmd_general.cpp and open then search

ACMD(do_open_offline_shop)

Add affter

   if (ch->IsAcceOpen())
   {
      ch->ChatPacket(CHAT_TYPE_INFO, "Nu poti sa folosesti magazinul offline cand craftezi o esarfa.");
      return;
   }

Update 1: open cmd_general.cpp and search: ACMD(do_acce)

ACMD(do_acce)

Add affter

   if (ch->GetOfflineShopOwner())
   {
      ch->ChatPacket(CHAT_TYPE_INFO, "Nu poti crafta o esarfa cand ai magazinul offline deschis.");
      return;
   }

 

Manifestation:

 

Good luck !

  • Love 3
Link to comment
Share on other sites

  • Premium

or in offlineshop_manger.cpp in

Spoiler

void COfflineShopManager::AddItem(LPCHARACTER ch, BYTE bDisplayPos, BYTE bPos, int iPrice)

add

Spoiler

   if (ch->IsAcceOpen())
   {
      ch->ChatPacket(CHAT_TYPE_INFO, "Nu poti sa folosesti magazinul offline cand craftezi o esarfa.");
      return;
   }

maybe not the same result because now it can open offlineshop when the acce window is open but he can't put any item in the offlineshop

Thank you

Link to comment
Share on other sites

1 hour ago, Hesher said:

Much easy if you add in offlineshop_manager.cpp in function void COfflineShopManager::AddItem


  if (ch->IsCubeOpen() || ch->IsAcceOpen())
    {
        ch->ChatPacket(CHAT_TYPE_INFO, "You cannot do this.");
        return ;
    }

 

  

and in char.cpp in function void CHARACTER::OpenMyOfflineShop the same thing

Or

if ((ch->GetExchange() || ch->IsOpenSafebox() || ch->GetShopOwner()) || ch->IsCubeOpen() || ch->GetOfflineShopOwner() || ch->IsAcceOpen())
	{
		ch->ChatPacket(CHAT_TYPE_INFO, "You cannot do this.");
		return;
	}

 

  • Love 1
Link to comment
Share on other sites

  • 2 years later...

I have a similar problem, cant block Acce combine or Acce absorption window when offline shop window is open.

I applied these fixes but it didnt work.See screenshot below

The commented lines are the fix I tried.But no success

https://metin2.download/picture/Su6aCiRHoA9n80LW49gMrIopui0YXQXT/.png

Edited by Metin2 Dev
Core X - External 2 Internal
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.