NWNWiki
Advertisement
NWNWiki
3,718
pages

osrs_oml is a script for the OnModuleLoad event used by OSRS.

/////////////////////////////////////////////////////////////////////////////
//
// file:
//      osrs_oml
//
// purpose:
//      OnModuleLoad event script.
//
/////////////////////////////////////////////////////////////////////////////

// the include file for Open Source Rule Set events
#include "osrs_inc"

/////////////////////////////////////////////////////////////////////////////
void main()
{
    // determine what type of object is calling this script
    int iCallingClass = osrs_GetCallerEventClass(OBJECT_SELF);
    switch(iCallingClass)
    {
        ////////////////////////////////////////      module
        case I_OSRS_EVENT_CLASS_MODULE:
            // Module::OnModuleLoad Pre-event
            if (!osrs_mo_oml_pre())
            {
                return;
            }

            // Module::OnModuleLoad event
            if (!osrs_mo_oml())
            {
                return;
            }

            // Module::OnModuleLoad post-event
            osrs_mo_oml_post();

            break;

    }
}


Advertisement