Osrs ob
From NWNWiki
osrs_ob is a script used by OSRS when handling the OnBlocked event.
/////////////////////////////////////////////////////////////////////////////
//
// file:
// osrs_ob
//
// purpose:
// OnBlocked
//
/////////////////////////////////////////////////////////////////////////////
// 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::OnBlocked Pre-event
if (!osrs_c_ob_pre())
{
return;
}
// Creature::OnBlocked event
if (!osrs_c_ob())
{
return;
}
// Creature::OnBlocked post-event
osrs_c_ob_post();
}
}
