Jump to content
  • 0

Commands showing in chat / pm box


RagnaDev

Question


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  39
  • Reputation:   0
  • Joined:  05/05/17
  • Last Seen:  

I have this issue...

- GM has @warp
- Player Not
- Player write @warp  / @warp appears in chat like text (Expected behaviour: @warp is Unknown Command)
- Player writes @dasdasdasd  / @dasdasdasd appears in chat like text (Expected behaviour: @dasdasdasd is Unknown Command)
- GM writes @dasdasdasd / @dasdasdasd is Unknown Command (OK!)

In a nutshell.. I need to show "@<command> is Unknown Command" if player doesn't have that command or if the command doesn't exists.

Any help will be appreciated.
Regards!

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

if i recall correctly, it control by the client hexing

when you diff your client, the option "fix char atcommand" or something similar.

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  505
  • Reputation:   126
  • Joined:  04/04/16
  • Last Seen:  

Have you tried this one on feature.conf?

// Atcommand suggestions (Note 1)
// If one type incomplete atcommand, it will suggest the complete ones.
feature.atcommand_suggestions: off


Not sure what it actually does but might help ?
 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  39
  • Reputation:   0
  • Joined:  05/05/17
  • Last Seen:  

Quote

when you diff your client, the option "fix char atcommand" or something similar.

Yep, is enabled @Bug fix (plz see attached pic)

 

Quote

Have you tried this one on feature.conf?

Yep, I disabled it to try and its the same. (Is a very useful feature, if one type incomplete atcommand, it will suggest the complete ones.)

I currently diff the exe with NEMO, I'll try with Wee

image.png

 

Maybe I should use different client version? I'm using 2013-08-07aRagexe.exe because I read that was stable for a pre-re

Any suggestions?

 

On 8/26/2018 at 1:02 AM, Emistry said:

if i recall correctly, it control by the client hexing

when you diff your client, the option "fix char atcommand" or something similar.

 

Well, I made a fix on atcommand.c

changed this:

		
	// type == 1 : player invoked
	if (type == 1) {
		if ((is_atcommand && info->at_groups[sd->group_pos] == 0) ||
			(!is_atcommand && info->char_groups[sd->group_pos] == 0) )
			return false;

to this

	// type == 1 : player invoked
	if (type == 1) {
		if ((is_atcommand && info->at_groups[sd->group_pos] == 0) || (!is_atcommand && info->char_groups[sd->group_pos] == 0) ){
			sprintf(output, msg_txt(sd,153), command); // "%s is Unknown Command."
			clif_displaymessage(fd, output);
			return true;

And now its working like a charm.

image.png.7a7cd8b7c960a482e40647e4ac7fb083.png

Thank you

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...