Padlock: Difference between revisions

From PZwiki
m (Added Navbox/Tools)
(Update distribution file)
 
(33 intermediate revisions by 12 users not shown)
Line 1: Line 1:
{{languages}}
{{Header|Project Zomboid|Items|Equipment|Security}}
{{Page version|41.78.16}}
{{Infobox item
|name=Padlock
|model=Padlock_Model.png
|icon=Padlock.png
|category=Security
|weight=0.2
|function=Lock containers
|material=Metal
|material_value=15
|item_id=Base.Padlock
}}
{{Quote|text=Used to lock containers. Items and equipment can be stored securely.|author=Padlock in-game tooltip}}
The '''Padlock''' is an item that can be used to control access to player-crafted crates.


{{Consumables
==Usage==
|image = Padlock.png
{{Unverified}}
|weight = 0.2
}}
The '''Padlock''' is an item that can be used to control access to player-crafted crates. It can be found only in "tool store" zones, such as the one in downtown West Point. Padlocks are effectively useless in single-player games, but since a padlocked crate cannot be used or even viewed by a player who does not hold a matching key, it can deter looters on a multi-player server.  However, a locked crate can be bashed to pieces, spilling its contents, just as easily as an unlocked crate can.


== How to Use ==
===Locking===
# Construct a [[Crate|Wooden Crate]]. This requires two [[Plank|Planks]], two [[Nails]], and [[Carpentry Guide|Carpentry]] level 3. Note that the player-crafted Wooden Crate is the ''only'' container that can be padlocked; other crafted containers like shelves cannot be, nor can pre-existing crates like those in warehouses.
Padlocks can be attached to crafted [[Wooden Crate|crates]]. If it is in the player's inventory, the "Put Padlock" context option will appear when selecting a crate. Upon attaching, the player will receive two keys that can be used to open the locked crate.
# Place a Padlock in your personal inventory. Padlocks cannot be used from inside a bag.
# Open the context menu for the crate and select "Put Padlock".
# See that the padlock has been replaced in your inventory by two keys. These are weightless and can be stored on your [[Key Ring]] like door keys, although they have a different icon.


While the padlock is in place, the crate's tab in the inventory window will have a lock icon on it. If you hold the correct key, the icon is an open lock, and the container works normally. Otherwise, it is a closed lock, and the container's tab cannot even be viewed.
While the padlock is in place, the crate's tab in the inventory window will have a lock icon on it. If you hold the correct key, the icon is an open lock, and the container works normally. Otherwise, it is a closed lock, and the container's tab cannot even be viewed.


Padlocks are effectively useless in single-player games, but since a padlocked crate cannot be used or even viewed by a player who does not hold a matching key, it can deter looters on a multi-player server. A locked crate can be destroyed, spilling its contents, just as easily as an unlocked crate can.
Pre-existing crates, like those in warehouses, cannot be locked.
===Removing padlock===
Holding the key also adds the "Remove Padlock" option to the crate's context menu so that you can return it to its original unrestricted state and reuse the padlock. Removing a padlock will remove one of its keys from your inventory, while re-adding an already used padlock will return one key (not two) to you.
Holding the key also adds the "Remove Padlock" option to the crate's context menu so that you can return it to its original unrestricted state and reuse the padlock. Removing a padlock will remove one of its keys from your inventory, while re-adding an already used padlock will return one key (not two) to you.


The two keys from each padlock are identical. You can keep them both or share one with a trusted friend.
===Padlock key===
[[File:KeyPadlock1.png]]
The two keys from each padlock are identical.


As with door keys, you can check which key opens which crate. Just select any individual key on your person (expanding stacks if needed), and the corresponding crate will be highlighted yellow if it is in view. However, as of build 32 it seems that all padlock keys will open all padlocks, at least in single-player games<ref>http://theindiestone.com/forums/index.php/tracker/issue-2095-padlock-keys-are-universal</ref>.
==Distribution==
The loot distributions can be found in the table(s) below.


<!--BOT FLAG|Padlock|41.78.16-->
{{Clear}}
<div class="togglebox theme-red">
    <div>Padlock distribution
        <span class="mw-customtoggle-togglebox-Padlock" title="{{int:show}} / {{int:hide}}" style="float: right; padding-right: 30px; padding-top: 4px; font-size: 0.7em; font-weight: normal;">{{int:show}} / {{int:hide}}</span></div>
    <div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-togglebox-Padlock">
    Effective chance calculations are based off of default loot settings, and median zombie density. The higher the density of zombies in an area, the higher the effective chance of an item spawning. Chance is also influenced by the [[lucky]] and [[unlucky]] traits.    <div class="toggle-content">
<div class="pz-container">
<div id="containers" style="flex-basis:30%">
    {| class="wikitable theme-red" style="margin-right: 15px; width: 95%;"
    |+ {{ll|Containers}}
    ! Building/Room
    ! Container
    ! Effective chance
    |-
    | Farmer
    | {{ll|crate}}
    | 10.78%
    |-
    | Farmer
    | {{ll|metal_shelves}}
    | 10.78%
    |-
    | bedroom
    | {{ll|crate}}
    | 0.65%
    |-
    | closet
    | {{ll|crate}}
    | 0.65%
    |-
    | closet
    | {{ll|crate}}
    | 10.78%
    |-
    | factory
    | {{ll|crate}}
    | 10.78%
    |-
    | factory
    | {{ll|metal_shelves}}
    | 10.78%
    |-
    | farmstorage
    | {{ll|crate}}
    | 10.78%
    |-
    | farmstorage
    | {{ll|metal_shelves}}
    | 10.78%
    |-
    | garagestorage
    | {{ll|crate}}
    | 0.65%
    |-
    | garagestorage
    | {{ll|crate}}
    | 10.78%
    |-
    | gasstorage
    | {{ll|counter}}
    | 23.28%
    |-
    | generalstore
    | {{ll|metal_shelves}}
    | 8.55%
    |-
    | generalstore
    | {{ll|shelves}}
    | 8.55%
    |-
    | generalstorestorage
    | {{ll|metal_shelves}}
    | 8.55%
    |-
    | generalstorestorage
    | {{ll|shelves}}
    | 8.55%
    |-
    | gigamart
    | {{ll|shelves}}
    | 8.55%
    |-
    | janitor
    | {{ll|counter}}
    | 23.28%
    |-
    | janitor
    | {{ll|metal_shelves}}
    | 23.28%
    |-
    | schoolstorage
    | {{ll|counter}}
    | 23.28%
    |-
    | shed
    | {{ll|crate}}
    | 10.78%
    |-
    | storageunit
    | {{ll|crate}}
    | 0.65%
    |-
    | storageunit
    | {{ll|crate}}
    | 10.78%
    |-
    | storageunit
    | {{ll|metal_shelves}}
    | 0.65%
    |-
    | storageunit
    | {{ll|metal_shelves}}
    | 10.78%
    |-
    | toolstore
    | {{ll|counter}}
    | 8.55%
    |-
    | toolstore
    | {{ll|metal_shelves}}
    | 8.55%
    |-
    | toolstore
    | {{ll|shelves}}
    | 8.55%
    |-
    | toolstorestorage
    | {{ll|metal_shelves}}
    | 8.55%
    |-
    | warehouse
    | {{ll|crate}}
    | 10.78%
    |-
    | warehouse
    | {{ll|metal_shelves}}
    | 10.78%
    |-
    | zippeestorage
    | {{ll|counter}}
    | 23.28%
    |}
</div>
    </div><div style="clear: both;"></div>
    </div></div><div class="toggle large mw-customtoggle-togglebox-Padlock" title="{{int:show}}/{{int:hide}}"></div></div>
<!--END BOT FLAG|Padlock|41.78.16-->
It can be found in "tool store" zones, such as the one in downtown West Point. It also sometimes spawns inside warehouse crates that have farming equipment such as seeds, trowels, and watering cans.


Padlock Key [[File:KeyPadlock1.png]]
==Code==
{{CodeBox |


<!--
===Item===
== Crafting ==
[[File:Padlock.png]] {{ID|Base.Padlock}}<br>
{| class="wikitable sortable" style="text-align:center;"
{{CodeSnip
|-
  | lang = java
! Name
  | line = true
! class="unsortable" | Recipe
  | start = 2930
! class="unsortable" | Description
  | source = newitems.txt
! Crafting Level
  | retrieved = true
{{RecipeLookup|}}
  | version = 41.78.16
|}
  | code =
-->
item Padlock
== Code ==
<nowiki>item Padlock
{
{
    DisplayCategory = Security,
Weight = 0.2,
Weight = 0.2,
Type = Key,
Type = Key,
Line 43: Line 207:
Icon = Padlock,
Icon = Padlock,
         Padlock =  TRUE,
         Padlock =  TRUE,
}</nowiki>
        MetalValue = 15,
 
        Tooltip = Tooltip_Padlock,
== History ==
        WorldStaticModel = Padlock,
 
}
{| class="wikitable" width="550" style="text-align:center;"
}}
|-
}}
! Alpha || 
|-
| Ver31.9 || -
|}
 
==See Also==
* [[Key Ring]]
* [[Combination Padlock]]




<!--
==See also==
{{Navbox/Consumables}}
*[[Key Ring]]
-->
*[[Combination Padlock]]


{{Navbox/Tools}}
{{Navbox items|household_equipment}}

Latest revision as of 13:27, 30 April 2024

UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
Padlock
Padlock Model.png
General
Category
Security
Encumbrance
Moodle Icon HeavyLoad.png
0.2
Function
Lock containers
Properties
Material
Metal
Metal quantity
15
Technical
Item ID
Base.Padlock
Used to lock containers. Items and equipment can be stored securely.
— Padlock in-game tooltip

The Padlock is an item that can be used to control access to player-crafted crates.

Usage

CandleLit.png
This article may have claims which require verification.
Editors should verify the article's current content and, while adding content, check new information.

Locking

Padlocks can be attached to crafted crates. If it is in the player's inventory, the "Put Padlock" context option will appear when selecting a crate. Upon attaching, the player will receive two keys that can be used to open the locked crate.

While the padlock is in place, the crate's tab in the inventory window will have a lock icon on it. If you hold the correct key, the icon is an open lock, and the container works normally. Otherwise, it is a closed lock, and the container's tab cannot even be viewed.

Padlocks are effectively useless in single-player games, but since a padlocked crate cannot be used or even viewed by a player who does not hold a matching key, it can deter looters on a multi-player server. A locked crate can be destroyed, spilling its contents, just as easily as an unlocked crate can.

Pre-existing crates, like those in warehouses, cannot be locked.

Removing padlock

Holding the key also adds the "Remove Padlock" option to the crate's context menu so that you can return it to its original unrestricted state and reuse the padlock. Removing a padlock will remove one of its keys from your inventory, while re-adding an already used padlock will return one key (not two) to you.

Padlock key

KeyPadlock1.png The two keys from each padlock are identical.

Distribution

The loot distributions can be found in the table(s) below.

Padlock distribution Show / Hide
Effective chance calculations are based off of default loot settings, and median zombie density. The higher the density of zombies in an area, the higher the effective chance of an item spawning. Chance is also influenced by the lucky and unlucky traits.
Containers
Building/Room Container Effective chance
Farmer crate 10.78%
Farmer metal_shelves 10.78%
bedroom crate 0.65%
closet crate 0.65%
closet crate 10.78%
factory crate 10.78%
factory metal_shelves 10.78%
farmstorage crate 10.78%
farmstorage metal_shelves 10.78%
garagestorage crate 0.65%
garagestorage crate 10.78%
gasstorage counter 23.28%
generalstore metal_shelves 8.55%
generalstore shelves 8.55%
generalstorestorage metal_shelves 8.55%
generalstorestorage shelves 8.55%
gigamart shelves 8.55%
janitor counter 23.28%
janitor metal_shelves 23.28%
schoolstorage counter 23.28%
shed crate 10.78%
storageunit crate 0.65%
storageunit crate 10.78%
storageunit metal_shelves 0.65%
storageunit metal_shelves 10.78%
toolstore counter 8.55%
toolstore metal_shelves 8.55%
toolstore shelves 8.55%
toolstorestorage metal_shelves 8.55%
warehouse crate 10.78%
warehouse metal_shelves 10.78%
zippeestorage counter 23.28%

It can be found in "tool store" zones, such as the one in downtown West Point. It also sometimes spawns inside warehouse crates that have farming equipment such as seeds, trowels, and watering cans.

Code

Code icon.png Code snippet! This section contains source code from Project ZomboidShow / Hide

Item

Padlock.png Base.Padlock
Source: ProjectZomboid\media\scripts\newitems.txt

Retrieved: Build 41.78.16
item Padlock
	{
	    DisplayCategory = Security,
		Weight	=	0.2,
		Type	=	Key,
		DisplayName	=	Padlock,
		Icon	=	Padlock,
        Padlock =   TRUE,
        MetalValue = 15,
        Tooltip = Tooltip_Padlock,
        WorldStaticModel = Padlock,
	}


See also