Welcome to PenUltima Online. Click to login or register.


HarvestResource( resource, x, y, b, n, realm := _DEFAULT_REALM )
Name Type
resource String
x,y Integer world coordinates
realm String - case-sensitive name of the realm
b Integer
n Integer
Attempts to harvest a resource from a location.
Notes: Harvests a*b resource units, where 0 is less than or equal to 'a' and 'a' is less than or equal to n. Thus you can request 0-40 units in groups of 5, etc.
Return values
Integer number of resource units harvested if resources were harvested, or 0 if no resources were available.
"Invalid parameter"
"Realm not found"
"Invalid Coordinates for Realm"
"No resource by that name"
"No resource region at that location"
Related Configs