Welcome to PenUltima Online. Click to login or register.

Functions:

UseItem( item, character )
Parameters:
Name Type
item Item Reference
character Character Reference
Explanation
This will allow the item specified's use script to be run by the character specified. No checks are done for distance, or check for being a ghost, or anything else.
Warning: This function can also be called with NPC's as the character, but any use script that requires interactivity with it's user that is called on an NPC may have unpredictable results(dependant on the script).
Return values
1 on success, 0 or Error
Errors
"Invalid parameter"
"Character busy."
"Failed to start script!"
Related
Item
Character
NPC