summaryrefslogtreecommitdiff
path: root/world/map/npc/commands/class.txt
diff options
context:
space:
mode:
Diffstat (limited to 'world/map/npc/commands/class.txt')
-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\"?";