PenUltima Online Forum Index Official Core: 096.7
Official Core: 097 2008-02-26
Donate towards the POL web hosting bill!
 POL Home   FAQ   Search    Memberlist   Usergroups    Register    Profile   Log in to check your private messages   Log in
resource refreshing

 
Post new topic   Reply to topic    PenUltima Online Forum Index -> General Help 096
Display posts from previous:   

Author Message
Nosferatu



Joined: 22 Jul 2006
Posts: 61

PostPosted: Thu Jul 12, 2007 10:28 am    Post subject: resource refreshing Reply with quote

in what cfg file , or in which script i can specify in what time resource will refresh's
thnx

Author Message
Yukiko



Joined: 02 Feb 2006
Posts: 1094
Location: Southern Central USA

PostPosted: Fri Jul 13, 2007 3:44 am    Post subject: Reply with quote

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

Code:

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:

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

Post new topic   Reply to topic    PenUltima Online Forum Index -> General Help 096 All times are GMT - 4 Hours
Page 1 of 1

 




Powered by phpBB © 2001, 2005 phpBB Group :: Theme & Graphics by GHS & Scott E. Royalty