Jump to content

Recommended Posts

Hello , 

If someone can help me , just with a piece of code or ...

I want a quest that when the GM from the server starts trading items event if they drag that item to a player , they should be kicked out of the server , and if they put any item in inventory the same. I want to make the GM's being forbidden by kicking them from the server trading , showing and putting the items in vault.

Thank you :)

Link to comment
https://metin2.dev/topic/9283-quest-for-gm-trade-items/
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

GM Cant drop items!

Search game/src/char_item.cpp:

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

and add this:

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

 

devs.thumb.PNG.c0d664d3faeb945f52ba57827

 

 

GM Cant Trade:

 

Search game/src/exchange.cpp:

	if ( IsOpenSafebox() || GetShopOwner() || GetMyShop() || IsCubeOpen())
	{
		ChatPacket( CHAT_TYPE_INFO, LC_TEXT("?? ???? ?????? ??? ?? ????." ) );
		return false;
	}

and add under :

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

devs2.thumb.PNG.7f584abdc820e87c4be3d9a4

 

Edited by Cyxer
  • Love 1
Link to comment
https://metin2.dev/topic/9283-quest-for-gm-trade-items/#findComment-56202
Share on other sites

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.