RX Fishing Boats & Traps

Both live in config_world.lua.

Boats

A fishmonger with a dock close by rents out a canoe, a rowboat, or a pirogue, one at a time per angler. The boat is spawned by the server at the dock, handed back there, and removed when its time is up, so none are left lying around.

A boat that sinks, is wrecked, or goes missing ends the rental at once and costs its lost fee. The counter also has a Report it lost button for a boat stuck somewhere, so nobody waits out the clock for a boat they no longer have.

Lua
Config.Boats = {
    enabled = true,
    rentMinutes = 20,
    dockRange = 80.0,
    returnRange = 40.0,
    warnMinutes = 2,
    graceSeconds = 90,
    models = {
        { key = 'canoe',   model = 'canoe',   price = 3.00, lostFee = 6.00,  seats = 1, label = { en = 'Canoe' } },
        { key = 'rowboat', model = 'rowboat', price = 5.00, lostFee = 10.00, seats = 2, label = { en = 'Rowboat' } },
        { key = 'pirogue', model = 'pirogue', price = 6.00, lostFee = 12.00, seats = 2, label = { en = 'Pirogue' } }
    },
    bonus = { sizeBias = 0.15, rareLuck = 0.10 },
    boatModels = { 'canoe', 'canoeTreeTrunk', 'rowboat', 'rowboatSwamp', 'rowboatSwamp02', 'pirogue', 'pirogue2', 'skiff', 'keelboat' }
}
SettingDefaultBehaviour
rentMinutes20How long a rental lasts.
dockRange80.0Metres: a fishmonger rents from a dock this close to him.
returnRange40.0Metres: a boat this close to its dock can be handed back.
warnMinutes2Warning before the time is up.
graceSeconds90Extra time for anyone still aboard when the rental ends.
modelsCanoe, rowboat, pirogueRentable boats with their price, lost fee, and seats. lostFee = 0 charges nothing.
bonus0.15 size, 0.10 rareFishing from any boat reaches open water: bigger and rarer fish. The cast card says so.
boatModelsStock boatsWhat counts as a boat for the open water bonus, rented or not.

Docks are placed on the water from the admin panel.

Traps

A crawfish trap and a fish trap. Using one sets it in the shallow water in front of the angler, baited with the first bait they carry, from the bank or standing in the shallows; not from a pier, a bridge, or a boat. It fills while nobody is around. The owner empties it for crawfish or small fish (into a keepnet when they carry one) and some XP, and it baits itself again from the satchel. Picking it up returns the item. Traps survive a restart.

Lua
Config.Traps = {
    enabled = true,
    perPlayer = 4,
    steal = false,
    expireHours = 48,
    reach = 1.2,
    baits = { 'cheese', 'bread', 'corn', 'worm', 'cricket' },
    xp = 5,
    kinds = {
        {
            key = 'crawfish', item = 'rx_trap_crawfish', model = 'p_basketcreel01x', minutes = 30, price = 4.00,
            label = { en = 'Crawfish Trap' },
            catch = { item = 'p_crawdad01x', amount = { 3, 6 } },
            habitats = { 'river', 'swamp', 'creek', 'lake', 'pond' }
        },
        {
            key = 'fish', item = 'rx_trap_fish', model = 'p_basketfish01x', minutes = 45, price = 6.00,
            label = { en = 'Fish Trap' },
            catch = { species = { 'bluegill', 'perch', 'rockbass', 'redfinpickerel', 'bullheadcatfish' }, amount = { 1, 3 } },
            habitats = { 'river', 'swamp', 'creek', 'lake', 'pond' }
        }
    }
}
SettingDefaultBehaviour
perPlayer4Traps one angler may have set.
stealfalsetrue lets anyone empty a full trap; only the owner can pick it up.
expireHours48A trap its owner has not visited for this long falls apart.
reach1.2Metres the angler’s feet may be above the water to set one.
baitsFive baitsBaits a trap takes, in order of preference.
xp5XP per trap emptied.

Trap kinds

FieldBehaviour
item, modelInventory item and the prop placed in the water.
minutesHow long it takes to fill.
priceFishmonger price; 0 means not sold.
catchAn item for crawfish, or a species list for fish, with an amount range.
habitatsWaters it can be set in.

Crawfish from the trap are also the crawfish bait, so a crawfish trap keeps an angler stocked for the species that prefer it.