FANDOM


The osrs_ou script is used by the Open Source Rule Set to handle the OnUsed event. The content of the script is the following.

/////////////////////////////////////////////////////////////////////////////
//
// file:
//      osrs_ou
//
// purpose:
//      OnUsed 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::OnUsed Pre-event
            if (!osrs_p_ou_pre())
            {
                return;
            }

            // Placeable::OnUsed event
            if (!osrs_p_ou())
            {
                return;
            }

            // Placeable::OnUsed post-event
            osrs_p_ou_post();

            break;

    }
}

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.