Welcome to PenUltima Online. Click to login or register.

Functions:

RequestInput(character, item, prompt )
Parameters:
Name Type
character Character Reference
item Item Reference
prompt String
Explanation
Prompts a player for input, and waits for the player to type a line of text.
Notes: "item" is a placeholder - the client needs it, but it is not used internally. Typically some related item will be passed.
Return values
A String containing the next line of text from the client's keyboard on success. Returns 0 (int) if control characters were found in the string.
Errors
"Invalid parameter"
"No client attached"
"Another script has an active prompt"
Related
Character
Item