From 8367c024ef4276b531e1a6f73b6979ec4b78872f Mon Sep 17 00:00:00 2001 From: gumi Date: Fri, 9 Mar 2018 14:57:57 -0500 Subject: make the @class command automatically fix headstyles --- world/map/npc/commands/class.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'world/map/npc/commands') 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\"?"; -- cgit v1.2.3-60-g2f50