Skip to content

Commit 4be4d0c

Browse files
Add support for DRO knocking
1 parent 37e4239 commit 4be4d0c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

server/commands/areas.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,12 @@ def ooc_cmd_knock(client, arg):
666666
f"Failed to knock on [{area.id}] {area.name}: Current area is locked!"
667667
)
668668

669-
area.send_command("RT", "knock")
669+
for c in client.area.clients:
670+
if c.software == "DRO":
671+
# DRO client doesn't support custom RT packets. So for now just send a message with the knock effect (ding id 7) instead.
672+
c.send_command("MS", 0, "", "","", "", "", "", 0, -1, 0, 0, 0, 0, 7, 0, "")
673+
else:
674+
c.send_command("RT", "knock")
670675
if area == client.area:
671676
area.broadcast_ooc(
672677
f"💢 [{client.id}] {client.showname} knocks for attention. 💢"

0 commit comments

Comments
 (0)