PenUltima Online

It is currently Fri Oct 10, 2008 4:30 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: resource refreshing
PostPosted: Thu Jul 12, 2007 6:28 am 
Offline

Joined: Fri Jul 21, 2006 9:58 pm
Posts: 61
in what cfg file , or in which script i can specify in what time resource will refresh's
thnx


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 12, 2007 11:44 pm 
Offline

Joined: Thu Feb 02, 2006 1:41 pm
Posts: 1154
Location: Southern Central USA
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
}

_________________
Sincerely,
Yukiko

I know you think you understand what you thought I said but what you heard is not exactly what I meant.

Titus 2:13


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subice by phpBBservice.nl