Osrs oent

osrs_oent is a script used by OSRS. ///////////////////////////////////////////////////////////////////////////// // // file: //     osrs_oent // // purpose: //     OnEnter event script. This script SHOULD be placed in the OnEnter event //     of an Area, Trigger, or Encounter. // /////////////////////////////////////////////////////////////////////////////

// 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) {       case I_OSRS_EVENT_CLASS_AREA: // Area::OnEnter Pre-event if (!osrs_a_oent_pre) {               return; }

// Area::OnEnter event if (!osrs_a_oent) {               return; }

// Area::OnEnter post-event osrs_a_oent_post;

break;

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

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

// Encounter::OnEnter post-event osrs_e_oent_post;

break;

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

// Trigger::OnEnter event if (!osrs_tri_oent) {               return; }

// Trigger::OnEnter post-event osrs_tri_oent_post;

break;

} }