PenUltima Online

It is currently Thu Aug 21, 2008 4:22 pm

All times are UTC - 4 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Ores
PostPosted: Wed Jan 03, 2007 10:23 am 
Offline

Joined: Mon Nov 06, 2006 11:02 am
Posts: 16
Okay, can anyone help me "spawning my mines" heheh... I don´t know exacly witch file to look at and how to be able to mine anything on minerable floors. I´ve done the ores that i´d like and done the mining scripts, but now how do i configure where that people are able to mine them? Is it in ores, regions ? And do i configure it by the coordinates, like XYZ ?

Thanks alot for the noob question.

:)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 09, 2007 3:09 am 
Offline

Joined: Thu Feb 02, 2006 5:41 pm
Posts: 1094
Location: Southern Central USA
Unfortunately the POL Distro doesn't support ore vein systems. So ores are mined at random, POL Distros prior to POL 0.97 Distro that is. Currently, to my knowledge, the POL 0.97 has no mining system at all.

So you'll have to script one of your own.

Several ways are open to you. One is to create an ore item that you place in the world that has the ore type written on it as a CProp. You'd place them in mineable areas and then if a miner was mining on the spot where the item is they would get an ore as defined on the item. You'd want to make them invisible ofcourse.

The other way is to create a config file of ore veins containing coordinates of veins and ore types. Then when a miner first starts mining you have the mining script check the file to see if there's a vein at that location. If so then the miner gets some ore of the type listed in the file. This method has a benefit over the first in that it does not add items to the world data file since it uses a cfg file to hold the vein info.

_________________
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  
 
 Post subject:
PostPosted: Tue Jan 09, 2007 4:10 am 
Offline
POL Developer
User avatar

Joined: Wed Jan 25, 2006 6:30 am
Posts: 383
Location: San Diego, California
097 does have a mining system and supports both veins and random ore.



Yukiko wrote:
Unfortunately the POL Distro doesn't support ore vein systems. So ores are mined at random, POL Distros prior to POL 0.97 Distro that is. Currently, to my knowledge, the POL 0.97 has no mining system at all.

So you'll have to script one of your own.

Several ways are open to you. One is to create an ore item that you place in the world that has the ore type written on it as a CProp. You'd place them in mineable areas and then if a miner was mining on the spot where the item is they would get an ore as defined on the item. You'd want to make them invisible ofcourse.

The other way is to create a config file of ore veins containing coordinates of veins and ore types. Then when a miner first starts mining you have the mining script check the file to see if there's a vein at that location. If so then the miner gets some ore of the type listed in the file. This method has a benefit over the first in that it does not add items to the world data file since it uses a cfg file to hold the vein info.

_________________
-Austin


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 10, 2007 1:20 am 
Offline

Joined: Thu Feb 02, 2006 5:41 pm
Posts: 1094
Location: Southern Central USA
Sorry Austin. Last time I looked at 0.97 Distro it hadn't had a mining system unless I just looked in the wrong place.

Just checked and found it.

I sit corrected.

_________________
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  
 
 Post subject: Still with problem
PostPosted: Thu Jan 11, 2007 10:40 am 
Offline

Joined: Mon Nov 06, 2006 11:02 am
Posts: 16
I did the ores.cfg file with all the landtiles and all the regions, but then when i start to mine it doesn´t get any type of ore. And i mined at the places where i put them. Could this be a mining script problem?
thnx


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 11, 2007 4:44 pm 
Offline

Joined: Thu Feb 02, 2006 5:41 pm
Posts: 1094
Location: Southern Central USA
POL 0.95 is not setup to handle custom ores in specific locations. It distributes ores randomly as you mine.

Now here is a question, you said "I did the ores.cfg file with all the landtiles and all the regions, but then when i start to mine it doesn´t get any type of ore." Did you mean you don't get any ore at all or that you get regular ores but don't get the special ores you have created?

Just to be sure, you are running POL 0.95 core and POL 0.95 Distro, right?

_________________
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  [ 6 posts ] 

All times are UTC - 4 hours


Who is online

Users browsing this forum: No registered users and 1 guest


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