Jump to content
  • 0

@commands help!


lionheart

Question


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  56
  • Reputation:   0
  • Joined:  12/30/13
  • Last Seen:  

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

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.01
  • Content Count:  206
  • Reputation:   13
  • Joined:  01/07/12
  • Last Seen:  

hmm, I see, have you checked atcommand source? maybe there is some configuration you can set on/off

Edited by eKoh
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  56
  • Reputation:   0
  • Joined:  12/30/13
  • Last Seen:  

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
Link to comment
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.   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.

×
×
  • Create New...