Jump to content

Block gm to negotiate and pick up items on the floor


Recommended Posts

Exchange.cpp
this code add under
//PREVENT_TRADE_WINDOW
if (ch->GetGMLevel() > GM_PLAYER || victim->GetGMLevel() > GM_PLAYER)
        {
            ChatPacket(CHAT_TYPE_INFO, LC_TEXT("With GM cant trade !"));
            return false;

Makefile:132: recipe for target 'OBJDIR/exchange.o' failed
gmake[1]: *** [OBJDIR/exchange.o] Error 1
gmake[1]: Leaving directory '/mainline/Server/game/src'
Makefile:60: recipe for target 'all' failed
gmake: *** [all] Error 2

Link to comment
Share on other sites

  • Premium

char_item.cpp

 

Look for:

bool CHARACTER::DropItem(TItemPos Cell, BYTE bCount)
{
	LPITEM item = NULL;

Add this under:

if (GetGMLevel() > GM_PLAYER)
		{
			ChatPacket(CHAT_TYPE_INFO, LC_TEXT("GM cant drop items."));
			return false;
		}

Like this:

Spoiler

Clipboardimage2015-10-29164409.png

exchange.cpp

Look for:

//PREVENT_TRADE_WINDOW
	if ( IsOpenSafebox() || GetShopOwner() || GetMyShop() || IsCubeOpen())
	{
		ChatPacket( CHAT_TYPE_INFO, LC_TEXT("다른 거래창이 열려있을경우 거래를 할수 없습니다." ) );
		return false;
	}

Add this under:

if (GetGMLevel() > GM_PLAYER || victim->GetGMLevel() > GM_PLAYER)
	{
		ChatPacket(CHAT_TYPE_INFO, LC_TEXT("GM cant trade."));
		return false;
	}

Like this:

Spoiler

Clipboardimage2015-10-29164322.png

  • Good 1
  • Love 1
Link to comment
Share on other sites

  • 5 months later...

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.