From 42b5c048e3d97be93c71f81f84ff37c502f96163 Mon Sep 17 00:00:00 2001 From: Haru Date: Mon, 3 Feb 2014 03:17:29 +0100 Subject: Added /stat+ commands support for 2013-12+ clients - Fixes /str+, /agi+ and the likes, only being able to increase stats by 1 point on 2013-12 and newer clients. - As a bonus, on those clients, processing of the /stat+ commands will be much faster, and the requested points will be added instantly and all at once rather than one at a time like in older clients. Signed-off-by: Haru --- src/map/script.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/map/script.c') diff --git a/src/map/script.c b/src/map/script.c index adea269c7..21d55ca77 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -7803,8 +7803,7 @@ BUILDIN(delequip) /*========================================== * *------------------------------------------*/ -BUILDIN(statusup) -{ +BUILDIN(statusup) { int type; TBL_PC *sd; @@ -7813,7 +7812,7 @@ BUILDIN(statusup) if( sd == NULL ) return true; - pc->statusup(sd,type); + pc->statusup(sd, type, 1); return true; } -- cgit v1.2.3-70-g09d2