Welcome to PenUltima Online. Click to login or register.

Functions:

RestartScript( npc )
Parameters:
Name Type
npc Character Reference (must be an NPC)
Explanation
Stops the current master script for an NPC, and starts a new one.
npc.script can be assigned before calling this, to change the master script for an NPC.
Return values
1 if the script was started
Errors
"Invalid parameter"
"RestartScript only operates on NPCs"
Related
NPC