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

Block gm to negotiate and pick up items on the floor


Metin2Taipan

Question

6 answers to this question

Recommended Posts

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


 

Link to comment
Share on other sites

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

Can you help me also how to block for gm not play items on the floor?

Link to comment
Share on other sites

  • 0
  • Premium

char_item.cpp

find

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

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

 

 

Edited by .T4Ump


 

Link to comment
Share on other sites

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

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

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:

Clipboardimage2015-10-29164322.png

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

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


  • Activity

    1. 14

      CRK - Cronikal [Play now][Official start on April 24, 2022 at 16:00][11 languages available]

    2. 57

      Forever Metin2

    3. 1

      NPC direct item enchant

    4. 37

      Official Mailbox

    5. 0

      [Request] Underground-MT2 Serverfiles, Database , Homepage & Client

    6. 0

      3 countries 3 phrases

    7. 1

      NPC direct item enchant

    8. 0

      Origins2 Global | International | A new concept - 10.06.2022

  • Recently Browsing

    • No registered users viewing this page.

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.