Jump to content
  • 0
Sign in to follow this  
Svanhild

GM 99 below @commands fail like Admin

Question

The title sound a lil bit messy, but my point here is, how to make GMs below id 99 when they type any @ or # command should always show an error message like 99 admins instead of parsing it to a literal public chat, to protect low lvl gms who doesn't have all the commands so it won't have to be embarrassing when they accidentally type or misspelled typing a command that is not on their list.

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Find this in atcommand.c under atcommand_exec:

if( !pc_get_group_level(sd) ) {if( x >= 1 || y >= 1 ) { /* we have command */info = atcommand->get_info_byname(atcommand->check_alias(command + 1));if( !info || info->char_groups[pcg->get_idx(sd->group)] == 0 ) /* if we can't use or doesn't exist: don't even display the command failed message */return false;} elsereturn false;/* display as normal message */}

Relace with:

if( !pc_get_group_level(sd) ) {				if( x >= 1 || y >= 1 ) { /* we have command */					info = atcommand->get_info_byname(atcommand->check_alias(command + 1));					if( !info || info->char_groups[pcg->get_idx(sd->group)] == 0 ) /* if we can't use or doesn't exist: don't even display the command failed message */					//Our desired plug to stop showing misstyped @commands from GMs above level 5						if ( pc_get_group_level(sd) > 5 ) {							sprintf(output, msg_txt(153), command);							clif->message(fd, output);							return true;						}						return false;				} else					return false;/* display as normal message */			}
Edited by Garr

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.