Jump to content

Recommended Posts

How can i block GM open the safebox i try this but cuz i am very noob yet i have a error on compile.

char.cpp

Spoiler

void CHARACTER::ReqSafeboxLoad(const char* pszPassword)
{
//    LPCHARACTER tch;
//    if(tch->GetGMLevel() > GM_PLAYER)
//    {
//        ch->ChatPacket(CHAT_TYPE_INFO, "You can not open the Safebox!");
//        return;
//    }

plz help me thanks in advance!

Link to comment
https://metin2.dev/topic/12113-cblock-safebox-on-gm/
Share on other sites

  • Premium
void CHARACTER::ReqSafeboxLoad(const char* pszPassword)
{
	if (!*pszPassword || strlen(pszPassword) > SAFEBOX_PASSWORD_MAX_LEN)
	{
		ChatPacket(CHAT_TYPE_INFO, LC_TEXT("<â°í> À߸øµÈ ¾ÏÈ£¸¦ ÀÔ·ÂÇϼ̽À´Ï´Ù."));
		return;
	}
	else  if (IsGM())
	{
		ChatPacket(CHAT_TYPE_INFO, "Proibido mover itens para o armazem como GM.");
		return;
	}
  • Love 1
Link to comment
https://metin2.dev/topic/12113-cblock-safebox-on-gm/#findComment-70287
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.