PenUltima Online

It is currently Sat Sep 06, 2008 11:49 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: What am I doing wrong with the resources?
PostPosted: Mon Jul 07, 2008 2:36 pm 
Offline

Joined: Mon Jul 07, 2008 2:33 pm
Posts: 15
Im trying to up the resources so they wont ever run out in ever single spot. I changed it in the ore.cfg file and all, changed unitsperarea to like 2000000 and respawn to 1, and capacity to 99999999999 yet they run out after like 3 loops. What I do wrong?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 07, 2008 9:43 pm 
Offline

Joined: Sat Feb 04, 2006 5:49 pm
Posts: 750
Location: Chicago, IL USA
In this type of situation you should try to see if you could take out the HarvestResource() function from your script and try to improvise without it. If you can get rid of that function, you won't have much of a need to keep up with resources.cfg because it won't actually take any resources away.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 08, 2008 11:03 am 
Offline

Joined: Mon Jul 07, 2008 2:33 pm
Posts: 15
CWO wrote:
In this type of situation you should try to see if you could take out the HarvestResource() function from your script and try to improvise without it. If you can get rid of that function, you won't have much of a need to keep up with resources.cfg because it won't actually take any resources away.


The problem is I do not want the whole world to be affected, only certain parts.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 08, 2008 4:42 pm 
Offline

Joined: Sat Feb 04, 2006 6:26 pm
Posts: 548
Just make up some functions to localise parts of the world.

if ( character.x > 1000 and character.x < 1020 and character.y > 200 and character.y < 220 and charater.realm == _DEFAULT_REALM )
// code here to harvest lots of resources
return 1;
endif


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 09, 2008 1:22 pm 
Offline

Joined: Mon Jul 07, 2008 2:33 pm
Posts: 15
OldnGrey wrote:
Just make up some functions to localise parts of the world.

if ( character.x > 1000 and character.x <1020> 200 and character.y < 220 and charater.realm == _DEFAULT_REALM )
// code here to harvest lots of resources
return 1;
endif


Yeah, why cant I just change it in the resource files? :)


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 10, 2008 3:02 am 
Offline

Joined: Mon Jul 07, 2008 2:33 pm
Posts: 15
Yeah I solved it kinda like you guys said with a "IsInArea" script :) Although I was more frustrated that it wouldn't work with changing the resource info. I dislike stuff not working :P


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 10, 2008 4:12 am 
Offline

Joined: Thu Feb 02, 2006 8:33 am
Posts: 276
What does your ore.cfg exactly look like and of course the
part of the mining script that is responsible for harvesting?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 23, 2008 11:50 pm 
Offline

Joined: Sat Feb 04, 2006 5:49 pm
Posts: 750
Location: Chicago, IL USA
Just a thought, is this area with near infinite resources appended to the end of the ore.cfg file or inserted at the beginning? POL reads the config files from top to bottom and anything that comes later overrides anything that comes before. So you want your near infinite area at the bottom so it overrides and covers anything that would already be in that area.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 24, 2008 3:52 am 
Offline

Joined: Mon Jul 07, 2008 2:33 pm
Posts: 15
CWO wrote:
Just a thought, is this area with near infinite resources appended to the end of the ore.cfg file or inserted at the beginning? POL reads the config files from top to bottom and anything that comes later overrides anything that comes before. So you want your near infinite area at the bottom so it overrides and covers anything that would already be in that area.



Yeah, it was at the bottom. I fixed it though by using a if statement like suggested to use an alternative value for oreamount :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subice by phpBBservice.nl