Osrs oud

'osrs_oud is a script used by OSRS when handling the OnUserDefined event. ///////////////////////////////////////////////////////////////////////////// // // file: //     osrs_oud // // purpose: //     OnUserDefined event script. // /////////////////////////////////////////////////////////////////////////////

// the include file for Open Source Rule Set events
 * 1) include "osrs_inc"

///////////////////////////////////////////////////////////////////////////// void main {   // determine what type of object is calling this script int iCallingClass = osrs_GetCallerEventClass(OBJECT_SELF); switch(iCallingClass) {

////////////////////////////////////////     module case I_OSRS_EVENT_CLASS_MODULE: // Module::OnUserDefined Pre-event if (!osrs_mo_oud_pre) {               return; }

// Module::OnUserDefined event if (!osrs_mo_oud) {               return; }

// Module::OnUserDefined post-event osrs_mo_oud_post;

break;

////////////////////////////////////////     Area case I_OSRS_EVENT_CLASS_AREA: // Area::OnUserDefined Pre-event if (!osrs_a_oud_pre) {               return; }

// Area::OnUserDefinedevent if (!osrs_a_oud) {               return; }

// Area::OnUserDefinedpost-event osrs_a_oud_post;

break;

////////////////////////////////////////     creature case I_OSRS_EVENT_CLASS_CREATURE: // Creature::OnUserDefined Pre-event if (!osrs_c_oud_pre) {               return; }

// Creature::OnUserDefined event if (!osrs_c_oud) {               return; }

// Creature::OnUserDefined post-event osrs_c_oud_post;

break;

////////////////////////////////////////     Trigger case I_OSRS_EVENT_CLASS_TRIGGER: // Trigger::OnUserDefined Pre-event if (!osrs_tri_oud_pre) {               return; }

// Trigger::OnUserDefined event if (!osrs_tri_oud) {               return; }

// Trigger::OnUserDefined post-event osrs_tri_oud_post;

break;

////////////////////////////////////////     Encounter case I_OSRS_EVENT_CLASS_ENCOUNTER: // Encounter::OnEnter Pre-event if (!osrs_e_oud_pre) {               return; }

// Encounter::OnEnter event if (!osrs_e_oud) {               return; }

// Encounter::OnEnter post-event osrs_e_oud_post;

break;

////////////////////////////////////////     placeable case I_OSRS_EVENT_CLASS_PLACEABLE: // Placeable::OnUserDefined Pre-event if (!osrs_p_oud_pre) {               return; }

// Placeable::OnUserDefined event if (!osrs_p_oud) {               return; }

// Placeable::OnUserDefined post-event wikp_p_oud_post;

break;

////////////////////////////////////////     door case I_OSRS_EVENT_CLASS_DOOR: // Door::OnUserDefined Pre-event if (!osrs_d_oud_pre) {               return; }

// Door::OnUserDefined event if (!osrs_d_oud) {               return; }

// Door::OnUserDefined post-event osrs_d_oud_post;

break;

////////////////////////////////////////     trap. case I_OSRS_EVENT_CLASS_TRAP: // Trap::OnUserDefined Pre-event if (!osrs_tra_oud_pre) {               return; }

// Trap::OnUserDefined event if (!osrs_tra_oud) {               return; }

// Trap::OnUserDefined post-event osrs_tra_oud_post;

break;

} }