Welcome to PenUltima Online. Click to login or register.

Functions:

EnableEvents( events, range := -1 )
Parameters:
Name Type
events Integer
range Integer (optional, 0..32)
Explanation
Enables events specified. When enabled events occur, they will be placed on the script's event queue, and must be read with wait_for_event. Events that were previously enabled will remain enabled.
Notes: See include/sysevent.inc for event type constants. DO NOT use this function for non-system event IDs. For user-created events, just send the event, no need to enable it first.
This function is useful only to NPCs and Items that have called RegisterForSpeechEvents.
Range is only used for certain events (currently speech, and entered/leftarea events)
Return values
Integer new event "mask" on success
Errors
"Invalid parameter"