Padlock: Difference between revisions

From PZwiki
(→‎Distribution: Adding one other area where padlocks can spawn.)
m (Cleanup)
Line 1: Line 1:
{{languages}}
{{Languages}}{{Header|The Game World|Items|type=Construction|version=Version 41|incver=52}}
{{header|The Game World|Items|type=Construction|version=Version 41|incver=52}}
{{Infobox normal
{{Infobox normal
|display_name=Padlock
|display_name=Padlock
Line 10: Line 9:
|primary_use=Lock containers
|primary_use=Lock containers
|class_name=Padlock
|class_name=Padlock
}}
}}{{Quote|text=Used to lock containers. Items and equipment can be stored securely.|author=Padlock in-game tooltip}}
{{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.
The '''Padlock''' is an item that can be used to control access to player-crafted crates.


==Usage==
==Usage==
{{Notice|Verify}}
{{Notice|Verify}}
===Locking===
===Locking===
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.
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.
Line 25: Line 24:
Pre-existing crates, like those in warehouses, cannot be locked.
Pre-existing crates, like those in warehouses, cannot be locked.


===Removing Padlock===
===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.


===Padlock Key===  
===Padlock key===  
[[File:KeyPadlock1.png]]
[[File:KeyPadlock1.png]]
The two keys from each padlock are identical.
The two keys from each padlock are identical.
Line 38: Line 37:
'''''From newitems.txt (Project Zomboid directory/media/scripts/)'''''
'''''From newitems.txt (Project Zomboid directory/media/scripts/)'''''
{{Retrieved|version=41|incver=50}}
{{Retrieved|version=41|incver=50}}
<pre> item Padlock
<pre>
item Padlock
Weight = 0.2,
Weight = 0.2,
Type = Key,
Type = Key,
Line 49: Line 49:




==See Also==
==See also==
*[[Key Ring]]
*[[Key Ring]]
*[[Combination Padlock]]
*[[Combination Padlock]]
{{Navbox/Tools}}
 
{{Navbox equipment}}

Revision as of 23:28, 5 April 2023

Template:Infobox normal

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

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

From newitems.txt (Project Zomboid directory/media/scripts/) Retrieved: Build 41.50

	item Padlock
		Weight		= 0.2,
		Type		= Key,
		DisplayName	= Padlock,
		Icon		= Padlock,
		Padlock		= TRUE,
		MetalValue	= 15,
		Tooltip		= Tooltip_Padlock,


See also