Welcome to PenUltima Online. Click to login or register.

Functions:

SendEvent( npc, event )
Parameters:
Name Type
npc Character Reference to an NPC
event integer
Explanation
Sends the integer event (either a combination of system events, or one user-defined event) to the NPC's control script.
Return values
1 on success
Errors
"Invalid parameter"
"That mobile is not an NPC"
"That NPC doesn't have a control script"
"Event queue is full, discarding event"
Related
NPC