Welcome to PenUltima Online. Click to login or register.

Functions:

ReserveItem( item )
Parameters:
Name Type
item Item Reference
Explanation
Reserves an item so no other script or client may manipulate it until ReleaseItem() is called. Use this function to prevent nasty exploits like this:
if(!ReserveItem(item))
  SendSysMessage(who, "You cannot use that.");
  return;
endif
Return values
1 Item has been reserved by me. 2 Item was already reserved by me. Or Error
Errors
"That item is already being used."
"Invalid parameter"
Related
Item