diff --git a/data/scripts/network/toggle_mount.lua b/data/scripts/network/toggle_mount.lua new file mode 100644 index 0000000..36da2c6 --- /dev/null +++ b/data/scripts/network/toggle_mount.lua @@ -0,0 +1,8 @@ +local handler = PacketHandler(0xD4) + +function handler.onReceive(player, msg) + local mount = msg:getByte() ~= 0 + player:toggleMount(mount) +end + +handler:register()