Padlock: Difference between revisions

From PZwiki
m (Grammar)
m (Distribution table update)
 
(32 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">
    <div class="toggle-content"><div style="display: flex;"><div style="float:left;">
    {| class="wikitable theme-red" style="margin-right:15px; width:95%;"
    |+ {{ll|Containers}}
    ! Building / Room
    ! Container
    ! Rolls
    ! Chance
    |-
    | bedroom
    | {{ll|crate}}
    | 1
    | 0.4
    |-
    | closet
    | {{ll|crate}}
    | 4
    | 4.0
    |-
    | gasstorage
    | {{ll|counter}}
    | 4
    | 10.0
    |-
    | generalstore
    | {{ll|metal_shelves}}
    | 4
    | 3.0
    |-
    | toolstore
    | {{ll|counter}}
    | 4
    | 3.0
    |-
    | toolstorestorage
    | {{ll|metal_shelves}}
    | 4
    | 3.0
    |}
</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 108:
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==
*[[Key Ring]]
*[[Combination Padlock]]


<!--
{{Navbox items|household_equipment}}
{{Navbox/Consumables}}
-->

Latest revision as of 16:12, 24 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
Containers
Building / Room Container Rolls Chance
bedroom crate 1 0.4
closet crate 4 4.0
gasstorage counter 4 10.0
generalstore metal_shelves 4 3.0
toolstore counter 4 3.0
toolstorestorage metal_shelves 4 3.0

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