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?
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.
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.
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
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?
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
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.
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