FANDOM


m
m (fixed "OnConversation" link)
Line 1: Line 1:
'''osrs_ocon''' is a [[script]] for the [[OnConversation]] [[event]] used by [[OSRS]].
+
'''osrs_ocon''' is a [[script]] for the [[OnConversation event|OnConversation]] [[event]] used by [[OSRS]].
 
<pre>
 
<pre>
 
/////////////////////////////////////////////////////////////////////////////
 
/////////////////////////////////////////////////////////////////////////////

Revision as of 00:02, June 25, 2007

osrs_ocon is a script for the OnConversation event used by OSRS.

/////////////////////////////////////////////////////////////////////////////
//
// file:
//      osrs_ocon
//
// purpose:
//      OnConversation
//
/////////////////////////////////////////////////////////////////////////////

// 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::OnConversation Pre-event
            if (!osrs_c_ocon_pre())
            {
                return;
            }

            // Creature::OnConversation event
            if (!osrs_c_ocon())
            {
                return;
            }

            // Creature::OnConversation post-event
            osrs_c_ocon_post();

    }

}


Community content is available under CC-BY-SA unless otherwise noted.