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

Osrs odisa

From NWNWiki

Jump to: navigation, search

osrs_odisa is a script used by OSRS in the OnDisarm event.

/////////////////////////////////////////////////////////////////////////////
//
// file:
//      osrs_odisa
//
// purpose:
//      OnDisarm 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_TRAP:
            // Trap::OnDisarm Pre-event
            if (!osrs_tra_odisa_pre())
            {
                return;
            }

            // Trap::OnDisarm event
            if (!osrs_tra_odisa())
            {
                return;
            }

            // Trap::OnDisarm post-event
            osrs_tra_odisa();

            break;

    }
}


Rate this article:
Share this article: