FANDOM


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();
    }
}


Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.