Jump to content
×
×
  • Create New...
  • 0

[C++]Fix duplicate Acce in ShopOffline


xSaG

Question

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

8 answers to this question

Recommended Posts

  • 0
  • 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
  • 0

Update: open cmd_general.cpp and search:

ACMD(do_acce)

Add affter

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

 

Link to comment
  • 0

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

Link to comment
  • 0
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
  • 0

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

Hidden Content

    Give reaction to this post to see the hidden content.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


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.