Disable other player's emoticons

Forum closed. All further discussion to be discussed at https://github.com/OpenKore/

Moderator: Moderators

Message
Author
unsafe1413
Noob
Noob
Posts: 3
Joined: 15 May 2011, 06:05
Noob?: No

Disable other player's emoticons

#1 Post by unsafe1413 »

I want to disable other players emotes in the console

squelchDomains didn't do much...

The string I want to disable is

[dist=<#>] <Character name> (<index>): *(emote)*

Example:
[dist=5] Botter_2011 (4): *Ok*

EternalHarvest
Developers
Developers
Posts: 1798
Joined: 05 Dec 2008, 05:42
Noob?: Yes

Re: Disable other player's emoticons

#2 Post by EternalHarvest »

Code: Select all

--- openkore/trunk/src/Network/Receive/ServerType0.pm   (revision 7763)
+++ openkore/trunk/src/Network/Receive/ServerType0.pm   (working copy)
@@ -2717,6 +2717,7 @@
        my ($self, $args) = @_;
        my $emotion = $emotions_lut{$args->{type}}{display} || "<emotion #$args->{type}>";
 
+       return unless $args->{ID} eq $accountID;
        if ($args->{ID} eq $accountID) {
                message "$char->{name}: $emotion\n", "emotion";
                chatLog("e", "$char->{name}: $emotion\n") if (existsInList($config{'logEmoticons'}, $args->{type}) || $config{'logEmoticons'} eq "all");

Locked