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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

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