Welcome to PenUltima Online. Click to login or register.

Functions:

CreateItemAtLocation( x, y, z, objtype, amount := 1, realm := _DEFAULT_REALM )
Parameters:
Name Type
x,y,z Integer world coordinates
realm String - case-sensitive name of the realm
objtype Integer objtype, OR String ObjtypeName, OR GetItemDescriptor struct.
amount Integer (0..60000)
Explanation
Creates an item at an arbitrary location.
Amount specifies how large the stack should be.
Runs the item's create script, if any.
Return values
Item Reference on success
Errors
"Invalid parameter type"
"Realm not found"
"Invalid Coordinates for Realm"
"That item is not stackable. Create one at a time."
"Unable to create item of objtype X"
Related
Item
Related Configs
itemdesc.cfg