From b5008d869eb23b601395e0e23ceda477e07ddd6a Mon Sep 17 00:00:00 2001 From: Emistry Haoyan Date: Tue, 16 Aug 2016 21:44:17 +0800 Subject: Corrected the showscript packet The showscript packet was being sent to all players logged in which can be network intensive. Thanks to @Tokeiburu & aleos89! Based on https://github.com/rathena/rathena/commit/47a69c082a9520f14b19ebfd335c4956d0c5a13b --- src/map/clif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/map/clif.c b/src/map/clif.c index f73553b72..ce88b32da 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -17747,7 +17747,7 @@ void clif_ShowScript(struct block_list *bl, const char *message) WBUFW(buf,2) = len+8; WBUFL(buf,4) = bl->id; safestrncpy(WBUFP(buf,8),message,len); - clif->send(buf,WBUFW(buf,2),bl,ALL_CLIENT); + clif->send(buf,WBUFW(buf,2),bl,AREA); } void clif_status_change_end(struct block_list *bl, int tid, enum send_target target, int type) { -- cgit v1.2.3-70-g09d2