Magic >Spells (Paizo) >R >

Rope Trick

School transmutation; Level sorcerer/wizard 2

CASTING

Casting Time 1 standard action
Components V, S, M (powdered corn and a twisted loop of parchment)

EFFECT

Range touch
Target one touched piece of rope from 5 ft. to 30 ft. long
Duration 1 hour/level (D)
Saving Throw none; Spell Resistance no

By the way…
The entrance to the extradimensional space created by this spell does not move with a ship.

Source Skull & Shackles Player’s Guide

DESCRIPTION

When this spell is cast upon a piece of rope from 5 to 30 feet long, one end of the rope rises into the air until the whole rope hangs perpendicular to the ground, as if affixed at the upper end. The upper end is, in fact, fastened to an extra-dimensional space that is outside the usual multiverse of extra-dimensional spaces. Creatures in the extra-dimensional space are hidden, beyond the reach of spells (including divinations), unless those spells work across planes. The space holds as many as eight creatures (of any size). The rope cannot be removed or hidden. The rope can support up to 16,000 pounds. A weight greater than that can pull the rope free.

Spells cannot be cast across the extra-dimensional interface, nor can area effects cross it. Those in the extra-dimensional space can see out of it as if a 3-foot-by-5-foot window were centered on the rope. The window is invisible, and even creatures that can see the window can’t see through it. Anything inside the extra-dimensional space drops out when the spell ends. The rope can be climbed by only one person at a time. The rope trick spell enables climbers to reach a normal place if they do not climb all the way to the extra-dimensional space.