The osrs_pnp_light_omh script implements part of the torch feature of the Open Source Rule Set. The content of the script is the following.
//:://////////////////////////////////////////////////////////////////////////// // // 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(); } }