Jump to content
  • 0

How to Remove /w or /who in game?


Question

5 answers to this question

Recommended Posts

  • 0
Posted
2 hours ago, Forshaken said:

just go to your truck folder conf/groups.yml and comment who command or set it to false.

Thank you for replying,

I need the ' / ' command not the ' @ ' command 😞

  • 0
Posted
1 hour ago, K i n G said:

Thank you for replying,

I need the ' / ' command not the ' @ ' command 😞

oh my bad, go to clif.cpp and find 

/// Amount of currently online players, reply to /w /who (ZC_USER_COUNT).
/// 00c2 <count>.L
void clif_user_count(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));
}

Change to 

 

/// Amount of currently online players, reply to /w /who (ZC_USER_COUNT).
/// 00c2 <count>.L
void clif_user_count(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));
*/
}

  • 0
Posted
Just now, Forshaken said:

oh my bad, go to clif.cpp and find 

/// Amount of currently online players, reply to /w /who (ZC_USER_COUNT).
/// 00c2 <count>.L
void clif_user_count(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));
}

Change to 

 

/// Amount of currently online players, reply to /w /who (ZC_USER_COUNT).
/// 00c2 <count>.L
void clif_user_count(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));
*/
}

dont forget to compile after applying the changes

  • 0
Posted
19 hours ago, K i n G said:

Thank you for replying,

I need the ' / ' command not the ' @ ' command 😞

or if you just want to remove it for normal player's perspective just follow the code below

 

/// Amount of currently online players, reply to /w /who (ZC_USER_COUNT).
/// 00c2 <count>.L
void clif_user_count(map_session_data* sd, int count)
{
+ if(sd->group_id >= 1) { // you can adjust the group id here
       int fd = sd->fd;

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

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