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

Osrs oclo

From NWNWiki

Jump to: navigation, search

osrs_oclo is a script used by OSRS.

/////////////////////////////////////////////////////////////////////////////
//
// file:
//      osrs_oclo
//
// purpose:
//      OnClosed 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)
    {
        ////////////////////////////////////////      placeable
        case I_OSRS_EVENT_CLASS_PLACEABLE:
            // Placeable::OnClosed Pre-event
            if (!osrs_p_oclo_pre())
            {
                return;
            }

            // Placeable::OnClosed event
            if (!osrs_p_oclo())
            {
                return;
            }

            // Placeable::OnClosed post-event
            osrs_p_oclo_post();

            break;



        ////////////////////////////////////////      door
        case I_OSRS_EVENT_CLASS_DOOR:
            // Door::OnClosed Pre-event
            if (!osrs_d_oclo_pre())
            {
                return;
            }

            // Door::OnClosed event
            if (!osrs_d_oclo())
            {
                return;
            }

            // Door::OnClosed post-event
            osrs_d_oclo_post();

            break;



    }
}


Rate this article:
Share this article: