From ac5dd5f11f5f6bedcdc9d95b8c985367f3892083 Mon Sep 17 00:00:00 2001 From: ya4ept Date: Mon, 23 Dec 2024 01:19:30 +0300 Subject: [PATCH] suppress the output of the sprite_change message (#3910) We don't know what type 7 and 13 are. Type 7 looks like body palette or body color. Type 13 looks like body2 --- src/Network/Receive.pm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Network/Receive.pm b/src/Network/Receive.pm index 78675acdcc..f75d459a9b 100644 --- a/src/Network/Receive.pm +++ b/src/Network/Receive.pm @@ -4533,7 +4533,7 @@ sub sprite_change { } elsif ($type == 5) { message TF("%s changed Middle headgear to %s (%d)\n", $player, headgearName($value1), $value1), "parseMsg_statuslook"; $player->{headgear}{mid} = $value1; - } elsif ($args->{part} == 6) { + } elsif ($type == 6) { message TF("%s changed Hair color to: %s (%d)\n", $player, $haircolors{$value1}, $value1), "parseMsg_statuslook"; $player->{hair_color} = $value1; } elsif ($type == 9) { @@ -4542,7 +4542,10 @@ sub sprite_change { } $player->{shoes} = $value1; } elsif ($type == 12) { - message TF("%s changed Robe to: SPRITE_ROBE_ID=%d\n", $player, $value1, $value1), "parseMsg_statuslook"; + message TF("%s changed Robe to: SPRITE_ROBE_ID=%d\n", $player, $value1, $value1), "parseMsg_statuslook", 2; + } elsif ($type== 7 || $type == 13) { + # Type 7 looks like body palette or body color. Type 13 looks like body2 + debug sprintf("%s changed type= %d. value1=%d, value2=%d\n", $player, $type, $value1, $value2); } else { error TF("%s changed unknown sprite type (%d), write about it to OpenKore developer\n", $player, $type), "parseMsg_statuslook"; }