no problem
NightLantern
Automatically turns ON and OFF lanterns after sunset and sunrise
Total Downloads: 20,603 - First Release: Jun 27, 2015 - Last Update: Jun 11, 2018
- 5/5, 52 likes
-
-
Has anyone figured out a good way to have unlimited fuel for lights? I have an arena and only want unlimited fuel in that arena and not the entire map. Seems like it would need to be part of the Zones Manager...
-
-
-
-
I have the plugin Updated for me. I include the Ceilinglight
-
This does not work after the XP-update. Anyone else?
-
This update is no longer working after the 7/7 update. I really enjoy it; can you please update it?
-
Could someone help me? I have not much expierience in coding those scripts.
I would add the ceiling lights, may someone help me pls? -
i did it.. thanks ceilinglight.deploy was the needed...
-
Please give the file where ceiling lights fixed
-
I fixed the NightLantern Plugin. Ceiling lights are included
-
Fixed over two months ago by me -
So is this corrected and working since the XP update because I have not seen it working since then
-
-
-
This works for me.
Part of NightLantern.cs
void OnItemDeployed(Deployer deployer, BaseEntity deployedEntity)
{
bool status = false;
double currentTime = TOD_Sky.Instance.Cycle.Hour;
if (deployedEntity.LookupShortPrefabName() == "lantern.deployed.prefab"
|| ( (deployedEntity.LookupShortPrefabName() == "jackolantern.happy.prefab") && includeJackOLanterns)
|| ( (deployedEntity.LookupShortPrefabName() == "jackolantern.angry.prefab") && includeJackOLanterns)
|| ( (deployedEntity.LookupShortPrefabName() == "campfire.prefab") && includeCampfires)
|| ( (deployedEntity.LookupShortPrefabName() == "ceilinglight.deployed.prefab") && includeCeilinglights)
)
{
if ( currentTime < sunriseHour && isAutoTurnLanternsEnabled || currentTime >= sunsetHour && isAutoTurnLanternsEnabled )
{
status = true;
}
deployedEntity.SetFlag(BaseEntity.Flags.On, status);
}
}
Nightlantern.json
{
"Settings": {
"AutoTurnLanterns": true,
"includeCampfires": false,
"includeJackOLanterns": true,
"includeCeilinglights": true,
"sunriseHour": "7",
"sunsetHour": "18"
}
} -
Hey guys this is also broken from today's update
Cheers
> oxide.reload NightLantern
[Oxide] 08:00 [Error] NightLantern plugin failed to compile!
[Oxide] 08:00 [Error] NightLantern.cs(131,26): error CS1061: Type `BaseOven' does not contain a definition for `LookupShortPrefabName' and no extension method `LookupShortPrefabName' of type `BaseOven' could be found. Are you missing an assembly reference? -
Today's update strikes again as Reckt has posted. Mine follows below:
[Oxide] 16:04 [Error] NightLantern plugin failed to compile!
[Oxide] 16:04 [Error] NightLantern.cs(129,26): error CS1061: Type `BaseOven' does not contain a definition for `LookupShortPrefabName' and no extension method `LookupShortPrefabName' of type `BaseOven' could be found. Are you missing an assembly reference?