// Sets global handlers for each of the events introduced by the Linux NWNX_EVENTS plugin. #include "nwnx_events" void main() { SetGlobalEventHandler(EVENT_TYPE_ATTACK, "reo_mod_attack"); SetGlobalEventHandler(EVENT_TYPE_SAVE_CHAR, "reo_mod_savechar"); SetGlobalEventHandler(EVENT_TYPE_PICKPOCKET, "reo_mod_pickpock"); SetGlobalEventHandler(EVENT_TYPE_USE_ITEM, "reo_mod_useitem"); SetGlobalEventHandler(EVENT_TYPE_QUICKCHAT, "reo_mod_qckchat"); SetGlobalEventHandler(EVENT_TYPE_EXAMINE, "reo_mod_examine"); SetGlobalEventHandler(EVENT_TYPE_USE_SKILL, "reo_mod_useskill"); SetGlobalEventHandler(EVENT_TYPE_USE_FEAT, "reo_mod_usefeat"); SetGlobalEventHandler(EVENT_TYPE_TOGGLE_MODE, "reo_mod_toggmode"); SetGlobalEventHandler(EVENT_TYPE_CAST_SPELL, "reo_mod_castspel"); SetGlobalEventHandler(EVENT_TYPE_TOGGLE_PAUSE, "reo_mod_toggpaus"); SetGlobalEventHandler(EVENT_TYPE_POSSESS_FAMILIAR, "reo_mod_possfami"); SetGlobalEventHandler(EVENT_TYPE_VALIDATE_CHARACTER, "reo_mod_valichar"); SetGlobalEventHandler(EVENT_TYPE_DESTROY_OBJECT, "reo_mod_destroy"); // UNSAFE }