Adding a periodic IMC2 keepalive event. Other IMC2-connected games are now aware of our presence via the keepalive. Woot.
This commit is contained in:
parent
a7e89c1e54
commit
191f49ff4c
5 changed files with 106 additions and 9 deletions
|
|
@ -21,4 +21,15 @@ def cmd_imctest(command):
|
|||
packet = IMC2PacketWhois(source_object, 'Cratylus')
|
||||
imc2_conn.IMC2_PROTOCOL_INSTANCE.send_packet(packet)
|
||||
source_object.emit_to("Sent")
|
||||
GLOBAL_CMD_TABLE.add_command("imctest", cmd_imctest)
|
||||
GLOBAL_CMD_TABLE.add_command("imctest", cmd_imctest)
|
||||
|
||||
def cmd_imckeepalive(command):
|
||||
"""
|
||||
Shows a player's inventory.
|
||||
"""
|
||||
source_object = command.source_object
|
||||
source_object.emit_to("Sending")
|
||||
packet = IMC2PacketIsAlive()
|
||||
imc2_conn.IMC2_PROTOCOL_INSTANCE.send_packet(packet)
|
||||
source_object.emit_to("Sent")
|
||||
GLOBAL_CMD_TABLE.add_command("imckeepalive", cmd_imckeepalive)
|
||||
Loading…
Add table
Add a link
Reference in a new issue