• 0
Sign in to follow this  
domez86

remove/disable /who

Question

Posted (edited)

hi, how do i remove/disable the '/who' command?

maybe obscuring the number of online players or changing the message that gives the command.

thank you.

Edited by domez86

Share this post


Link to post
Share on other sites

12 answers to this question

Recommended Posts

  • 0

Open "../src/map/clif.cpp" and change:

void clif_user_count(struct map_session_data* sd, int count)
{
	int fd = sd->fd;

	WFIFOHEAD(fd,packet_len(0xc2));
	WFIFOW(fd,0) = 0xc2;
	WFIFOL(fd,2) = count;
	WFIFOSET(fd,packet_len(0xc2));
}

to:

void clif_user_count(struct map_session_data* sd, int count)
{
/*
	int fd = sd->fd;

	WFIFOHEAD(fd,packet_len(0xc2));
	WFIFOW(fd,0) = 0xc2;
	WFIFOL(fd,2) = count;
	WFIFOSET(fd,packet_len(0xc2));
*/
}

Save changes and re-compile emulator.

  • Upvote 1

Share this post


Link to post
Share on other sites
  • 0
Posted (edited)
1 hour ago, Functor said:

Open "../src/map/clif.cpp" and change:

void clif_user_count(struct map_session_data* sd, int count)
{
	int fd = sd->fd;

	WFIFOHEAD(fd,packet_len(0xc2));
	WFIFOW(fd,0) = 0xc2;
	WFIFOL(fd,2) = count;
	WFIFOSET(fd,packet_len(0xc2));
}

to:

void clif_user_count(struct map_session_data* sd, int count)
{
/*
	int fd = sd->fd;

	WFIFOHEAD(fd,packet_len(0xc2));
	WFIFOW(fd,0) = 0xc2;
	WFIFOL(fd,2) = count;
	WFIFOSET(fd,packet_len(0xc2));
*/
}

Save changes and re-compile emulator.

a solution without recompiling? maybe obscuring the number of online players or changing the message that gives the command.

Edited by domez86

Share this post


Link to post
Share on other sites
  • 0

If you will fix it on client-side - player will use EXE without fix or will send packet by using WPE.

So, the best way to fix it - "src" modification.

Share this post


Link to post
Share on other sites
  • 0
43 minutes ago, Functor said:

If you will fix it on client-side - player will use EXE without fix or will send packet by using WPE.

So, the best way to fix it - "src" modification.

ok, but i can without recompile? 

Share this post


Link to post
Share on other sites
  • 0
Posted (edited)

If you mean fix on the server-side - you can't do it without re-compilation.
If you mean fix on the client-side - you can do it, but it is useless.

Edited by Functor

Share this post


Link to post
Share on other sites
  • 0
Posted (edited)
10 hours ago, Functor said:

If you mean fix on the server-side - you can't do it without re-compilation.
If you mean fix on the client-side - you can do it, but it is useless.

ok, how i can?

Edited by domez86

Share this post


Link to post
Share on other sites
  • 0

Open EXE by using any HEX editor.

Search bytes: 00 2F 77 68 6F 00
Replace by: 00 00 77 68 6F 00

Search bytes: 00 2F 77 00
Replace by: 00 00 77 00

Share this post


Link to post
Share on other sites
  • 0
On 4/13/2019 at 12:13 PM, Functor said:

Open EXE by using any HEX editor.

Search bytes: 00 2F 77 68 6F 00
Replace by: 00 00 77 68 6F 00

Search bytes: 00 2F 77 00
Replace by: 00 00 77 00

not found...

Share this post


Link to post
Share on other sites
  • 0
19 hours ago, Functor said:

Because you search text, not bytes. Which HEX editor do you use?

which one can i use?

Share this post


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

Loading...
Sign in to follow this