Osrs ocon
From NWNWiki
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();
}
}
