Jump to content
  • 0

remove/disable /who


domez86

Question


  • Group:  Members
  • Topic Count:  85
  • Topics Per Day:  0.02
  • Content Count:  207
  • Reputation:   0
  • Joined:  06/11/13
  • Last Seen:  

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
Link to comment
Share on other sites

16 answers to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  351
  • Reputation:   263
  • Joined:  09/08/13
  • Last Seen:  

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 2
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  85
  • Topics Per Day:  0.02
  • Content Count:  207
  • Reputation:   0
  • Joined:  06/11/13
  • Last Seen:  

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
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  351
  • Reputation:   263
  • Joined:  09/08/13
  • Last Seen:  

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.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  85
  • Topics Per Day:  0.02
  • Content Count:  207
  • Reputation:   0
  • Joined:  06/11/13
  • Last Seen:  

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? 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  351
  • Reputation:   263
  • Joined:  09/08/13
  • Last Seen:  

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
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  85
  • Topics Per Day:  0.02
  • Content Count:  207
  • Reputation:   0
  • Joined:  06/11/13
  • Last Seen:  

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
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  351
  • Reputation:   263
  • Joined:  09/08/13
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  85
  • Topics Per Day:  0.02
  • Content Count:  207
  • Reputation:   0
  • Joined:  06/11/13
  • Last Seen:  

sorry, is there no script mode?

On 4/13/2019 at 6: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...

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  351
  • Reputation:   263
  • Joined:  09/08/13
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  85
  • Topics Per Day:  0.02
  • Content Count:  207
  • Reputation:   0
  • Joined:  06/11/13
  • Last Seen:  

19 hours ago, Functor said:

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

which one can i use?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  351
  • Reputation:   263
  • Joined:  09/08/13
  • Last Seen:  

For example free Hex editor "XVI32".

Download: http://www.handshake.de/user/chmaas/delphi/download/xvi32.zip

Example: http://i7.5cm.ru/i/CKSe.png

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  85
  • Topics Per Day:  0.02
  • Content Count:  207
  • Reputation:   0
  • Joined:  06/11/13
  • Last Seen:  

On 4/17/2019 at 11:21 AM, Functor said:

For example free Hex editor "XVI32".

Download: http://www.handshake.de/user/chmaas/delphi/download/xvi32.zip

Example: http://i7.5cm.ru/i/CKSe.png

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

the fist is ok, the second: Search bytes: 00 2F 77 00
Replace by: 00 00 77 00 not found, but work also fist modified, /who invalid command ^^

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  351
  • Reputation:   263
  • Joined:  09/08/13
  • Last Seen:  

12 hours ago, domez86 said:

the second: 

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

not found

It isn't possible. Try again.

12 hours ago, domez86 said:

but work also fist modified, /who invalid command ^^

The second patch is for "/w" command.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  85
  • Topics Per Day:  0.02
  • Content Count:  207
  • Reputation:   0
  • Joined:  06/11/13
  • Last Seen:  

8 hours ago, Functor said:

It isn't possible. Try again.

The second patch is for "/w" command.

not found bytes second

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  351
  • Reputation:   263
  • Joined:  09/08/13
  • Last Seen:  

Send me your EXE.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  85
  • Topics Per Day:  0.02
  • Content Count:  207
  • Reputation:   0
  • Joined:  06/11/13
  • Last Seen:  

18 hours ago, Functor said:

Send me your EXE.

done!  your exe editor is perfect!  I replaced 00 to / of who and w, with text mode in your editor ? now works perfectly.  will never give me the right modification error?

tnx! 

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