Lamp on Pillar: Difference between revisions
m (ver31) |
(New Lamp on Pillar page, utilising new template format designed by Andrew. New Navbar, corrected info, +code, categories autodefined by template,) |
||
Line 1: | Line 1: | ||
{{languages}} | {{languages|Lamp on Pillar}} | ||
{{header|The Game World|Items|Construction|Carpentry|version=Version 36|incver=40}} | |||
{ | {| style="float:right; border:1px solid FFFFFF;margin:.46em 0 0 .2em" | ||
| | |- style="font-size:100%" | ||
| | | valign="top" |[[Image:Lamp_on_Pillar_Article_Img2.png]]<!-- | ||
--><br> <small>''Ingame image of Lamp on Pillar in Version 36.40.''</small> | |||
|} | |||
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. | |||
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 == | ||
{| class="wikitable sortable" style="text-align:center;" | {| class="wikitable sortable" style="text-align:center;" | ||
|- | |- | ||
Line 20: | Line 22: | ||
|} | |} | ||
[[ | == Code == | ||
[[ | '''''From ISBuildMenu.lua (media/lua/client/BuildingObjects/ISUI)''''' | ||
[[ | <nowiki> | ||
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 | |||
getCell():setDrag(lamp, player); | |||
end | |||
</nowiki> | |||
==See Also== | |||
*[[Carpentry_Guide|Carpentry Guide]] | |||
{{Navbox/Construction}} |
Revision as of 20:37, 8 February 2017
Ingame image of Lamp on Pillar in Version 36.40. |
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.
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
Output | Ingredients | Description | Skill Level | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Code
From ISBuildMenu.lua (media/lua/client/BuildingObjects/ISUI)
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 getCell():setDrag(lamp, player); end