Lamp on Pillar

From PZwiki
(Redirected from Lamp on Pillar)
UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
Lamp on Pillar
LamponPillar Carpentry.png
[[File:{{{icon2}}}|Lamp on Pillar|]]
[[File:{{{icon3}}}|Lamp on Pillar|]]
[[File:{{{icon4}}}|Lamp on Pillar|]]
[[File:{{{icon5}}}|Lamp on Pillar|]]
General
Category
Furniture
EncumbranceMoodle Icon HeavyLoad.png
2
Size
1 tile
Function
Light source
Build
Skill (level)
Tool(s)
Ingredients
2 × Plank.png Plank
4 × Nails.png Nails
1 × Flashlight.png Flashlight
1 × Rope.png Rope
Technical
Tile ID(s)
carpentry_02_61

Lamp on pillar is a craftable light source.

Usage

The lamp on pillar is used as a light source, which uses batteries for power. It will light an area so long as the battery has charge. It can be used when the power is out, but the player does not have access to a generator, or as additional lighting.

The lamp on pillar requires a battery as a fuel source. A battery can be inserted or removed via the context menu, by right-clicking the lamp on pillar and selecting "insert fuel" or "remove battery". The battery is slowly drained while the lamp on pillar is turned on. Turning the light on and off can be done via the context menu.

The lamp on pillar is most useful after the electricity has shutoff, as it is not powered by the electrical grid. However, this is only useful so long as the player has a supply of batteries, making it very situational, considering other lights can be powered by a generator.

Crafting

Crafting requires a carpentry skill of 4.

Carpentry

Product Ingredients Tools Requirements Workstation XP
LamponPillar Carpentry.png
Lamp on Pillar
Plank.png Plank ×2
Nails.png Nails ×4
Rope.png Rope ×1
Flashlight.png Flashlight ×1

Hammer.png
Hammer (tag)
Carpentry 4 none 1.25 Carpentry

Code

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

Source: ProjectZomboid\media\scripts\IsBuildMenu.lua

Retrieved: Build 41.78.16
ISBuildMenu.onPillarLamp = function(worldobjects, square, sprite, player)
-- sprite, northSprite
    local lamp = ISLightSource:new(sprite.sprite, sprite.northSprite, getSpecificPlayer(player));
    lamp.offsetX = 5;
    lamp.offsetY = 5;
    lamp.modData["need:Base.Plank"] = "2";
    lamp.modData["need:Base.Rope"] = "1";
    lamp.modData["need:Base.Nails"] = "4";
    lamp.modData["xp:Woodwork"] = 5;
--    lamp.modData["need:Base.Torch"] = "1";
    lamp:setEastSprite(sprite.eastSprite);
    lamp:setSouthSprite(sprite.southSprite);
    lamp.fuel = "Base.Battery";
    lamp.baseItem = "Base.Torch";
    lamp.radius = 10;
    lamp.player = player
    lamp.completionSound = "BuildWoodenStructureLarge"
    getCell():setDrag(lamp, player);
end

See also