FANDOM


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

/////////////////////////////////////////////////////////////////////////////
//
// file:
//      osrs_ocre
//
// purpose:
//      OnCombatRoundEnd
//
/////////////////////////////////////////////////////////////////////////////

// the OSRS include file
#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_CREATURE:
            // Creature::OnCombatRoundEnd Pre-event
            if (!osrs_c_ocre_pre())
            {
                return;
            }

            // Creature::OnCombatRoundEnd event
            if (!osrs_c_ocre())
            {
                return;
            }

            // Creature::OnCombatRoundEnd post-event
            osrs_c_ocre_post();

    }

}

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.