Lamp on Pillar: Difference between revisions

From PZwiki
(PZ Updater automated execution(task: deploy ReLookup, eid: 481c8e3195b9a92dec7dc3c6b9f7c2ae))
m (Automatic formatting)
(22 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{languages|Lamp on Pillar}}
{{Header|Project Zomboid|Tiles|Lighting tiles}}
{{header|The Game World|Items|Construction|Carpentry|version=Version 36|incver=40}}
{{Page version|41.78.16}}
{{Infobox tile
|name=Lamp on Pillar
|model=LamponPillar_Carpentry.png
|icon=LamponPillar_Carpentry.png
|category=Furniture
|weight=2
|size=1
<!--Properties-->
|function=Light source
<!--Build-->
|build_skill=[[Carpentry]]
|build_level=4
|build_tool_tag=Hammer
|ingredients=<small>2 × [[File:Plank.png|20px|link=Plank]] [[Plank]]<br>4 × [[File:Nails.png|20px|link=Nails]] [[Nails]]<br>1 × [[File:Flashlight.png|20px|link=Flashlight]] [[Flashlight]]<br>1 × [[File:Rope.png|20px|link=Rope]] [[Rope]]</small>
<!--Technical details-->
|tile_id=carpentry_02_61
}}


{| style="float:right; border:1px solid FFFFFF;margin:.46em 0 0 .2em"
'''Lamp on pillar''' is a [[Crafting|craftable]] [[light sources|light source]].
|- style="font-size:100%"
 
| valign="top" |[[Image:Lamp_on_Pillar_Article_Img2.png]]<!--
==Usage==
  --><br> <small>''Ingame image of Lamp on Pillar in Version 36.40.''</small>
The lamp on pillar is used as a light source, which uses [[Battery|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.


A lamp on pillar is a light source that can be constructed at Carpentry level 5, that will continue to light a area as long as the torch has power. It can be used for marking areas in the dark or more for cosmetic usage ingame for bases.
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|player]] has a supply of batteries, making it very situational, considering other [[Lighting|lights]] can be powered by a [[generator]].


Should the torch no longer function, the [[battery]] can be removed by right clicking on the pillar and remove the battery then place a new one in.  
==Crafting==
Crafting requires a [[carpentry]] skill of 4.


== Crafting ==
===Carpentry===
{{Crafting header|ing=4}}<!-- Automatically generated by ReLookup. Subject RecipeLookup: 1017 -->
{{Crafting header|ing=5}}
{{Crafting/core|ing=4
{{Crafting carpentry|402|ing=5}}
| product_image = [[File:Lamponpillar.png]] | product_name = [[Lamp on Pillar]] |q5=x1 | product_quantity =
| xp = <!-- Not present in the old template. Please fill in manually. -->
| sl = [[Carpentry]] 5
| req =
| f1 = [[File:Rope.png|link=Rope|Rope]] | i1 = [[Rope]] | q1 = x1 | tag1 = (consumed)
| f2 = [[File:Flashlight.png|link=Flashlight|Flashlight]] | i2 = [[Flashlight]] | q2 = x1 | tag2 = (consumed)
| f3 = [[File:Plank.png|link=Plank|Plank]] | i3 = [[Plank]] | q3 = x2 | tag3 = (consumed)
| f4 = [[File:Nails.png|link=Nails|Nails]] | i4 = [[Nails]] | q4 =  | tag4 = (consumed)
}}
|}
|}


 
==Code==
== Code ==
{{CodeBox|
'''''From ISBuildMenu.lua (media/lua/client/BuildingObjects/ISUI)'''''
{{CodeSnip
<nowiki>
  | lang = lua
  | line = true
  | start = 943
  | source = IsBuildMenu.lua
  | retrieved = true
  | version = 41.78.16
  | code =
ISBuildMenu.onPillarLamp = function(worldobjects, square, sprite, player)
ISBuildMenu.onPillarLamp = function(worldobjects, square, sprite, player)
-- sprite, northSprite
-- sprite, northSprite
Line 46: Line 62:
     lamp.radius = 10;
     lamp.radius = 10;
     lamp.player = player
     lamp.player = player
    lamp.completionSound = "BuildWoodenStructureLarge"
     getCell():setDrag(lamp, player);
     getCell():setDrag(lamp, player);
end
end
</nowiki>
}}
}}


==See also==
==See also==
*[[Carpentry Guide]]
*[[Carpentry]]
{{Navbox/Construction}}
*[[Battery]]
*[[Light sources]]
 
{{Navbox construction|carpentry}}
 
[[Category:Spiffo's Construction Crew (Project)]]
[[Category:Spiffo's Construction Crew (Project)]]

Revision as of 16:55, 25 March 2024

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 XP gained Skill(s) Recipe Ingredient 1 Ingredient 2 Ingredient 3 Ingredient 4 Ingredient 5
LamponPillar Carpentry.png
Lamp on Pillar
1.25 Carpentry Carpentry 4 Hammer.png
Hammer (tag)
(keep)
Plank.png
Plank x2
(consumed)
Nails.png
Nails x4
(consumed)
Rope.png
Rope x1
(consumed)
Flashlight.png
Flashlight x1
(consumed)

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