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

Osrs oexh

From NWNWiki

Jump to: navigation, search

osrs_oexh is a script used by OSRS in the OnExhausted event.

/////////////////////////////////////////////////////////////////////////////
//
// file:
//      osrs_oexh
//
// purpose:
//      OnExhausted 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)
    {

        case I_OSRS_EVENT_CLASS_ENCOUNTER:
            // Encounter::OnExhausted Pre-event
            if (!osrs_e_oexh_pre())
            {
                return;
            }

            // Encounter::OnExhausted event
            if (!osrs_e_oexh())
            {
                return;
            }

            // Encounter::OnExhausted post-event
            osrs_e_oexh_post();

            break;


    }
}


Rate this article:
Share this article: