summaryrefslogtreecommitdiff
path: root/src/emap/script.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emap/script.c')
-rw-r--r--src/emap/script.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/emap/script.c b/src/emap/script.c
index 67c88e0..c60861d 100644
--- a/src/emap/script.c
+++ b/src/emap/script.c
@@ -1957,3 +1957,17 @@ BUILDIN(emotion)
}
return true;
}
+
+BUILDIN(setLook)
+{
+ const int type = script_getnum(st, 2);
+ const int val = script_getnum(st, 3);
+
+ struct map_session_data *sd = script->rid2sd(st);
+ if (sd == NULL)
+ return true;
+
+ pc->changelook(sd, type, val);
+ send_changelook2(sd, &sd->bl, sd->bl.id, type, val, 0, NULL, 0, AREA);
+ return true;
+}