summaryrefslogtreecommitdiff
path: root/world/map
diff options
context:
space:
mode:
authorgumi <git@gumi.ca>2018-03-09 14:57:57 -0500
committergumi <git@gumi.ca>2018-03-09 14:57:57 -0500
commit8367c024ef4276b531e1a6f73b6979ec4b78872f (patch)
tree1e94e7c1e2deca30d00a307469940af3987303c0 /world/map
parent86fe713269e28ea8d042dc6f11279ffd8ebe08b4 (diff)
downloadserverdata-8367c024ef4276b531e1a6f73b6979ec4b78872f.tar.gz
serverdata-8367c024ef4276b531e1a6f73b6979ec4b78872f.tar.bz2
serverdata-8367c024ef4276b531e1a6f73b6979ec4b78872f.tar.xz
serverdata-8367c024ef4276b531e1a6f73b6979ec4b78872f.zip
make the @class command automatically fix headstyles
Diffstat (limited to 'world/map')
-rw-r--r--world/map/npc/commands/class.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/world/map/npc/commands/class.txt b/world/map/npc/commands/class.txt
index 9143e08a..339f6226 100644
--- a/world/map/npc/commands/class.txt
+++ b/world/map/npc/commands/class.txt
@@ -11,10 +11,15 @@
set .@c, 1; // default to human
if (@argv[0] >= 1 || @argv[0] <= 32767) set .@c, @argv[0];
set Class, .@c, .@target_id;
+ if (.@c < 10) addtimer 0, strnpcinfo(0) + "::OnFixHead", .@target_id;
gmlog "@"+.@n$+" " + @args$;
message strcharinfo(0), .@n$+" : The operation succeeded.";
end;
+OnFixHead:
+ callfunc "fixHeadStyles";
+ end;
+
L_Failed:
// XXX: should we allow GMs to change class of users that are not logged in?
message strcharinfo(0), .@n$+" : Impossible to attach to the target player. Did you try putting the name in \"quotation marks\"?";