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

Osrs op

From NWNWiki

Jump to: navigation, search

osrs_op is a script used by OSRS in the OnPerception event.

/////////////////////////////////////////////////////////////////////////////
//
// file:
//      osrs_op
//
// purpose:
//      OnPerception 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)
    {
        ////////////////////////////////////////      creature
        case I_OSRS_EVENT_CLASS_CREATURE:
            // Creature::OnPerception Pre-event
            if (!osrs_c_op_pre())
            {
                return;
            }

            // Creature::OnPerception event
            if (!osrs_c_op())
            {
                return;
            }

            // Creature::OnPerception post-event
            osrs_c_op_post();

            break;

    }
}


Rate this article:
Share this article: