From 4d51983e59c4d4008c7ed83380588959be7fad0c Mon Sep 17 00:00:00 2001 From: skotlex Date: Thu, 27 Apr 2006 13:40:15 +0000 Subject: - Added the missing clif_* calls to make changebase's view-class change update on the client. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6312 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/script.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/map/script.c b/src/map/script.c index 40cb81e93..e5994c0e3 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -6346,8 +6346,12 @@ int buildin_changebase(struct script_state *st) return 0; } - if(!sd->disguise && vclass != sd->vd.class_) + if(!sd->disguise && vclass != sd->vd.class_) { status_set_viewdata(&sd->bl, vclass); + clif_changelook(&sd->bl,LOOK_BASE,sd->vd.class_); + if (sd->vd.cloth_color) + clif_changelook(&sd->bl,LOOK_CLOTHES_COLOR,sd->vd.cloth_color); + } return 0; } -- cgit v1.2.3-70-g09d2