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

Help GM block open_safebox


Hakos

Question

  • Answers 3
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

3 answers to this question

Recommended Posts

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

 

Link to comment
  • 0
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

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


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.