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

Osrs oos

From NWNWiki

Jump to: navigation, search

osrs_oos is a script used by OSRS in the OnOpenStore event.

/////////////////////////////////////////////////////////////////////////////
//
// file:
//      osrs_oos
//
// purpose:
//      OnOpenStore 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_MERCHANT:
            // Merchant::OnOpenStore Pre-event
            if (!osrs_me_oos_pre())
            {
                return;
            }

            // Merchant::OnOpenStore event
            if (!osrs_me_oos())
            {
                return;
            }

            // Merchant::OnOpenStore post-event
            osrs_me_oos_post();

            break;

    }
}


Rate this article:
Share this article: