resource refreshing

Here you can post threads requesting help on the official POL Ultima Online Emulator Core 096.
Note: Core 096 is no longer officially supported.
Post Reply
Nosferatu
Journeyman Poster
Posts: 63
Joined: Fri Jul 21, 2006 9:58 pm

resource refreshing

Post by Nosferatu »

in what cfg file , or in which script i can specify in what time resource will refresh's
thnx
Yukiko
Distro Developer
Posts: 2826
Joined: Thu Feb 02, 2006 1:41 pm

Post by Yukiko »

According to configfiles.html it is <resourcetype>.cfg that holds the setting for regrowing resources.

Code: Select all

Global
{
    InitialUnits     (long number of resource units world has to start)
    [LandTile        (int landtile ID)]...
    [ObjType         (int arttile ID)]...
}
Region  (string regionname)
{
    Range               (x-west) (y-north) (x-east) (y-south)
    UnitsPerArea        (int resource units per tile)
    SecondsPerRegrow    (int seconds delay between regrows) *** This line
    Capacity            (int unit capacity for this region)
}
[Region...]
<resourcetype> would actually be the name of the resource you are referencing ie. clay.cfg, sand.cfg etc. These files are in the \pol\regions folder.

For example here is the entry I have in my clay.cfg file:

Code: Select all

Region The Whole World
{
    UnitsPerArea        10
    SecondsPerRegrow    30
    Capacity            10000
    Range               0 0 5119 4095
}
Post Reply