Skip to content

SetPlayerAreaTrespass

An area’s trespass level for one player.

Over the area’s own (SetAreaTrespass) - "public" for the owner of a house, "prohibited" for someone banished from a guild hall; an area with no level of its own becomes a trespass zone for this player alone. nil gives them the area’s own again. Kept while they are connected.

SetPlayerAreaTrespass(pid, name, level)
Parameter Type
pid number the player
name string the area
level string|nil the trespass level, or nil

boolean - true; false and the reason (no such area, an unknown level, not connected)

-- the plot's owner is at home there
SetPlayerAreaTrespass(pid, "Plot 7", "public")

SetAreaTrespass · SetPlayerTrespass · the The map’s areas group of the index