Jump to content

Help GM block open_safebox


Recommended Posts

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • Active Member
2 hours ago, Hakos said:

How can I block "game.open_safebox ()" to GM?

(Open wharehouse)

On this forum is a tutorial on that. And for next use Google before you ask. I hope you will find it :) 

Or you can do it with this quest function:

when warehouse_keeper.click with not pc.is_gm() begin

 

I'll be always helpful! 👊 

Link to comment
Share on other sites

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;
	}

Thanks!

Link to comment
Share on other sites

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.