Recent changes Random page
GAMING
Gaming
 
WoWWiki
Diablo Wiki
Fallout-The Vault
Grand Theft Wiki
Halopedia
StarCraft Wiki
FFXIclopedia
Resident Evil Wiki
See more...

Osrs pnp light omh

From NWNWiki

Jump to: navigation, search

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


Rate this article:
Share this article: