Padlock: Difference between revisions
m (Minor cleanup) |
(Update distribution file) |
||
(29 intermediate revisions by 10 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{Header|Project Zomboid|Items|Equipment|Security}} | ||
{{Infobox | {{Page version|41.78.16}} | ||
| | {{Infobox item | ||
| | |name=Padlock | ||
|model=Padlock_Model.png | |||
| | |icon=Padlock.png | ||
| | |category=Security | ||
|weight=0.2 | |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. | The '''Padlock''' is an item that can be used to control access to player-crafted crates. | ||
==Usage== | ==Usage== | ||
{{ | {{Unverified}} | ||
===Locking=== | ===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. | 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. | ||
Line 23: | Line 27: | ||
Pre-existing crates, like those in warehouses, cannot be locked. | Pre-existing crates, like those in warehouses, cannot be locked. | ||
===Removing | ===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 | ===Padlock key=== | ||
[[File:KeyPadlock1.png]] | [[File:KeyPadlock1.png]] | ||
The two keys from each padlock are identical. | The two keys from each padlock are identical. | ||
==Distribution== | ==Distribution== | ||
It can be found | 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. | |||
==Code== | ==Code== | ||
{{CodeBox | | |||
===Item=== | |||
Weight | [[File:Padlock.png]] {{ID|Base.Padlock}}<br> | ||
Type | {{CodeSnip | ||
DisplayName = Padlock, | | lang = java | ||
Icon | | line = true | ||
| start = 2930 | |||
| source = newitems.txt | |||
| retrieved = true | |||
| version = 41.78.16 | |||
| code = | |||
item Padlock | |||
{ | |||
DisplayCategory = Security, | |||
Weight = 0.2, | |||
Type = Key, | |||
DisplayName = Padlock, | |||
Icon = Padlock, | |||
Padlock = TRUE, | |||
MetalValue = 15, | |||
Tooltip = Tooltip_Padlock, | |||
WorldStaticModel = Padlock, | |||
} | |||
}} | |||
}} | |||
==See | ==See also== | ||
*[[Key Ring]] | *[[Key Ring]] | ||
*[[Combination Padlock]] | *[[Combination Padlock]] | ||
{{Navbox | |||
{{Navbox items|household_equipment}} |
Latest revision as of 13:27, 30 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 | 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
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,
}