File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 3838 "ooc_cmd_format_timer" ,
3939 "ooc_cmd_timer_interval" ,
4040 "ooc_cmd_ooc_actions" ,
41+ "ooc_cmd_sfx" ,
4142]
4243
4344
@@ -1124,3 +1125,19 @@ def ooc_cmd_ooc_actions(client, arg):
11241125 if client .ooc_actions :
11251126 stat = "now see"
11261127 client .send_ooc (f"You will { stat } actions in OOC." )
1128+
1129+
1130+ def ooc_cmd_sfx (client , arg ):
1131+ """
1132+ Play a sound effect directly without associating it with an emote.
1133+ Usage: /sfx [sound_path]
1134+ """
1135+ if arg == "" :
1136+ raise ArgumentError (
1137+ "sound_path can't be empty. Usage: /sfx [sound_path]"
1138+ )
1139+ client .area .send_command ("RT" , arg )
1140+ client .area .broadcast_ooc (f"has played '{ arg } '." )
1141+ database .log_area (
1142+ "sfx" , client , client .area , message = f"has played { arg } "
1143+ )
You can’t perform that action at this time.
0 commit comments