Jump to content
  • 0

Commands showing in chat / pm box


Question

Posted

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!

3 answers to this question

Recommended Posts

  • 0
Posted

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 ?
 

  • 0
Posted
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

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