To create your own event types, you will need to create an event code and an event function to be associated with that code, and then insert the event code-event function pair into the appropriate event table.
Associating the Event Code with an Event Function
Inserting the Event Code-Event Function Pair in an Event Table