Osrs pnp light omh
From NWNWiki
osrs_pnp_light_omh is an OSRS script for the torch feature.
//::////////////////////////////////////////////////////////////////////////////
//
// file: osrs_pnp_light_omh.nss
//
// purpose: Simulate Paper and Pencil D&D torch life and burn times.
//
// Usage: Call this script via ExecuteScript() from within your
// module.OnHeartbeat event. There is a commensurate script
// osrs_pnp_lighting_oml.nss that needs to be called within
// your OnModuleLoad event.
//
//::////////////////////////////////////////////////////////////////////////////
#include "osrs_pnp_light_inc"
// defined values and methods for PNP realistic lighting
//::////////////////////////////////////////////////////////////////////////////
// Torches and lanterns have limited life. Check the progress of
// these burning objects.
void main()
{
// round-off our check to the top of every nearest minute
if ((SecondsSinceBegin()%10)>0) // rounds occur every 6 seconds
{
// OSRS lighting system activity
osrs_pnp_lighting();
}
}
