Padlock: Difference between revisions
TheNicestGuy (talk | contribs) m (Grammar) |
m (Distribution table update) |
||
(32 intermediate revisions by 12 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{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. | |||
==Usage== | |||
{{Unverified}} | |||
}} | |||
== | ===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. | |||
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 | ===Padlock key=== | ||
[[File:KeyPadlock1.png]] | |||
The two keys from each padlock are identical. | |||
==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. | |||
==Code== | |||
{{CodeBox | | |||
===Item=== | |||
== | [[File:Padlock.png]] {{ID|Base.Padlock}}<br> | ||
{{CodeSnip | |||
| | | lang = java | ||
| line = true | |||
| start = 2930 | |||
| source = newitems.txt | |||
| retrieved = true | |||
| version = 41.78.16 | |||
| | | code = | ||
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, | ||
MetalValue = 15, | |||
Tooltip = Tooltip_Padlock, | |||
= | WorldStaticModel = Padlock, | ||
} | |||
}} | |||
}} | |||
==See also== | |||
*[[Key Ring]] | |||
*[[Combination Padlock]] | |||
{{Navbox items|household_equipment}} | |||
{{Navbox | |||
Latest revision as of 16:12, 24 April 2024
The Padlock is an item that can be used to control access to player-crafted crates.
Usage
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
The two keys from each padlock are identical.
Distribution
The loot distributions can be found in the table(s) below.
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
Item
Base.Padlock
Source: ProjectZomboid\media\scripts\newitems.txt
item Padlock
{
DisplayCategory = Security,
Weight = 0.2,
Type = Key,
DisplayName = Padlock,
Icon = Padlock,
Padlock = TRUE,
MetalValue = 15,
Tooltip = Tooltip_Padlock,
WorldStaticModel = Padlock,
}