Jump to content
  • 0

Question

Posted

As you can see the screenshot below, lionheart's account group_id is 0, but when I type something regards to admin commands, it shows on the public chat instead of showing "@monster is unknown command" compared to the "@typo-command" I made.
 

What I want to happen is:
A normal players with group_id 0 and no commands configured in  conf/groups.conf will display as

"@<command here> is Unknown Command".

 

So how can I fix this issue?
A little help from you guys is highly appreciated. Thank you! :)

post-23072-0-25521900-1407570900_thumb.jpg

post-23072-0-64429000-1407570902_thumb.jpg

2 answers to this question

Recommended Posts

Posted (edited)

Did you mean src/map/atcommands.c? I just commented some code to make the "<@typo-command> is unknown command" to work. I don't remember which line is. I'm not home right now. Maybe I could check it out later.

 

Here is the code I commented on the line 9917 located at src/map/atcommand.c

to make the "<@typo-command> is unknown command" to work.

but it seems that "<@command here>" still shows on public chat from normal players.

	//Grab the command information and check for the proper GM level required to use it or if the command exists
	info = get_atcommandinfo_byname(atcommand_checkalias(command + 1));
	if (info == NULL) {
		//if( pc_get_group_level(sd) ) { // TODO: remove or replace with proper permission
			sprintf(output, msg_txt(sd,153), command); // "%s is Unknown Command."
			clif_displaymessage(fd, output);
			atcommand_get_suggestions(sd, command + 1, *message == atcommand_symbol);
			return true;
	//	} else
	//		return false;
	}
Edited by lionheart

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.   Paste as plain text instead

  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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...