Welcome to PenUltima Online. Click to login or register.

Functions:

HarvestResource( resource, x, y, b, n, realm := _DEFAULT_REALM )
Parameters:
Name Type
resource String
x,y Integer world coordinates
realm String - case-sensitive name of the realm
b Integer
n Integer
Explanation
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.
Errors
"Invalid parameter"
"Realm not found"
"Invalid Coordinates for Realm"
"No resource by that name"
"No resource region at that location"
Related Configs
resource.cfg