Recent changes Random page
GAMING
Gaming
 
WoWWiki
Halopedia
FFXIclopedia
Age of Conan
Warhammer Online
Grand Theft Wiki
See more...

Osrs oce

From NWNWiki

Jump to: navigation, search

osrs_oce is a script used by OSRS when handling the OnClientEnter event.

/////////////////////////////////////////////////////////////////////////////
//
// file:
//      osrs_oce
//
// purpose:
//      OnClientEnter 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::OnClientEnter Pre-event
            if (!osrs_mo_oce_pre())
            {
                return;
            }

            // Module::OnClientEnter event
            if (!osrs_mo_oce())
            {
                return;
            }

            // Module::OnClientEnter post-event
            osrs_mo_oce_post();

            break;


    }
}


Rate this article:
Share this article: