The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ore script
Author Message
darksoulfe
Journeyman
*

Posts: 60
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Jun 2013
Reputation: 0



Post: #1
ore script
Good morning everyone,

Next, I created a new ore, and have some others here I got, as I lay him to be mined, have to put in that script? have to put it spawns?
(This post was last modified: 06-17-2013 08:51 PM by darksoulfe.)
06-17-2013 08:51 PM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #2
RE: ore script
You have to put it in this section of spheregion.scp :

PHP Code:
[REGIONTYPE r_default_rock t_rock]
// Random rocks
RESOURCES=100.0 mr_nothing
RESOURCES
=500.0 mr_iron
//RESOURCES=6.0 mr_rusty
//RESOURCES=6.0 mr_old_copper
//RESOURCES=6.0 mr_dull_copper
//RESOURCES=4.5 mr_bronze
RESOURCES=5.0 mr_copper
RESOURCES
=2.0 mr_gold
RESOURCES
=1.0 mr_rose
RESOURCES
=2.0 mr_agapite
RESOURCES
=1.0 mr_bloodrock
RESOURCES
=1.0 mr_silver
RESOURCES
=0.5 mr_verite
RESOURCES
=0.2 mr_Valorite
RESOURCES
=0.1 mr_mytheril
RESOURCES
=0.1 mr_blackrock
RESOURCES
=0.1 mr_diamond 
06-17-2013 09:00 PM
Find all posts by this user Like Post Quote this message in a reply
darksoulfe
Journeyman
*

Posts: 60
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Jun 2013
Reputation: 0



Post: #3
RE: ore script
ERROR:(sphere_region.scp,107)Undefined symbol 'mr_rusty'
ERROR:(sphere_region.scp,107)Bad resource list id '100.0 mr_rusty'
ERROR:(sphere_region.scp,108)Undefined symbol 'mr_old_copper'
ERROR:(sphere_region.scp,108)Bad resource list id '80.0 mr_old_copper'
ERROR:(sphere_region.scp,109)Undefined symbol 'mr_dull_copper'
ERROR:(sphere_region.scp,109)Bad resource list id '75.0 mr_dull_copper'
ERROR:(sphere_region.scp,111)Undefined symbol 'mr_bronze'
ERROR:(sphere_region.scp,111)Bad resource list id '65.0 mr_bronze'
ERROR:(sphere_region.scp,122)Undefined symbol 'mr_rubyp'
ERROR:(sphere_region.scp,122)Bad resource list id '15.5 mr_rubyp'
ERROR:(sphere_region.scp,129)Undefined symbol 'mr_hell'
ERROR:(sphere_region.scp,129)Bad resource list id '23.0 mr_hell'
ERROR:(sphere_region.scp,130)Undefined symbol 'mr_mystic'
ERROR:(sphere_region.scp,130)Bad resource list id '20.0 mr_mystic'
ERROR:(sphere_region.scp,132)Undefined symbol 'mr_diamoundo'
ERROR:(sphere_region.scp,132)Bad resource list id '75.0 mr_diamoundo'
ERROR:(sphere_region.scp,133)Undefined symbol 'mr_sunshine'
ERROR:(sphere_region.scp,133)Bad resource list id '80.0 mr_sunshine'
ERROR:(sphere_region.scp,134)Undefined symbol 'mr_neon'
ERROR:(sphere_region.scp,134)Bad resource list id '85.0 mr_neon'
ERROR:(sphere_region.scp,135)Undefined symbol 'mr_emeraldo'
ERROR:(sphere_region.scp,135)Bad resource list id '80.0 mr_emeraldo'
ERROR:(sphere_region.scp,136)Undefined symbol 'mr_crystal'
ERROR:(sphere_region.scp,136)Bad resource list id '85.0 mr_crystal'
ERROR:(sphere_region.scp,137)Undefined symbol 'mr_dark_rock'
ERROR:(sphere_region.scp,137)Bad resource list id '30.0 mr_dark_rock'
ERROR:(sphere_region.scp,138)Undefined symbol 'mr_dream_rock'
ERROR:(sphere_region.scp,138)Bad resource list id '30.0 mr_dream_rock'
ERROR:(sphere_region.scp,139)Undefined symbol 'mr_kryptonite'
ERROR:(sphere_region.scp,139)Bad resource list id '40.0 mr_kryptonite'
ERROR:(sphere_region.scp,140)Undefined symbol 'mr_bluestone'
ERROR:(sphere_region.scp,140)Bad resource list id '70.0 mr_bluestone'
ERROR:(sphere_region.scp,141)Undefined symbol 'mr_light'
ERROR:(sphere_region.scp,141)Bad resource list id '70.0 mr_light'

Created the ingots and ores, thus:
[ITEMDEF I_ORE_HELL]
NAME Hell Pray
ID I_ORE_IRON
WEIGHT = 0.5
SKILLMAKE MINING
TDATA1 I_INGOT_HELL

ON = @ CREATE
COLOR COLOR_ORE_HELL


so on have to create something with Mr_ ahead to not give up this error?

obs: the script of ores and ingots, ore ingots.scp station in script has some problem?
06-17-2013 09:43 PM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #4
RE: ore script
You are missing a skill amount after your MINING

eg:
Code:
[ITEMDEF i_ore_agapite]
ID=i_ore_iron
NAME=Agapite Ore
SKILLMAKE=MINING 90.0
TDATA1=i_ingot_agapite
VALUE=10

ON=@Create
    COLOR=color_o_agapite

You MUST have a RESOURCES=x mr_resource_name in your sphere_region.scp as indicated by darksun

[Image: 2nis46r.jpg]
06-17-2013 09:52 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
darksoulfe
Journeyman
*

Posts: 60
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Jun 2013
Reputation: 0



Post: #5
RE: ore script
Thanks for the help, it was done and solved the problem,

else, in which script I change the weight of the bank,
weight of ores,

thanks
06-17-2013 10:08 PM
Find all posts by this user Like Post Quote this message in a reply
darksoulfe
Journeyman
*

Posts: 60
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Jun 2013
Reputation: 0



Post: #6
RE: ore script
Now the following happened, I can mine the ingots, this all normal, so that when I do some plate does not appear even though nothing in the bag 500 ingots, in which I put the script sm_ (name ingot)

where I put the menus of ingots,

thank you
06-18-2013 05:21 AM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #7
RE: ore script
You have to create the script for the armors that use the new lingots and also add those news armor in the blacksmith skill menu. It's a super boring work if you have a lot of new minerals.
06-18-2013 05:40 AM
Find all posts by this user Like Post Quote this message in a reply
darksoulfe
Journeyman
*

Posts: 60
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Jun 2013
Reputation: 0



Post: #8
RE: ore script
I made several new ores, putting them in I got shard and got mine ores normally, now do not know where I'm going to put these ores for armor players do, what I need, I have already done: following attachment

exemple:

[ITEMDEF I_BLUESTONE_PLATEMAIL_CHEST]
ID I_PLATEMAIL_CHEST
NAME Blue Stone Platemail Chest
WEIGHT PLATE_WEIGHT_CHEST
ARMOR PLATE_AR_BLUESTONE
RESOURCES 25 I_INGOT_BLUESTONE
SKILLMAKE BLACKSMITHING PLATE_SKILLMAKE_BLUESTONE

ON=@CREATE
COLOR COLOR_ORE_BLUESTONE
HITPOINTS PLATE_HITPOINTS_BLUESTONE

[ITEMDEF I_BLUESTONE_PLATEMAIL_LEGS]
ID I_PLATEMAIL_LEGGINGS
NAME Blue Stone Platemail Legs
WEIGHT PLATE_WEIGHT_LEGS
ARMOR PLATE_AR_BLUESTONE
RESOURCES 20 I_INGOT_BLUESTONE
SKILLMAKE BLACKSMITHING PLATE_SKILLMAKE_BLUESTONE

ON=@CREATE
COLOR COLOR_ORE_BLUESTONE
HITPOINTS PLATE_HITPOINTS_BLUESTONE

[ITEMDEF I_BLUESTONE_PLATEMAIL_ARMS]
ID I_PLATEMAIL_ARMS
NAME Blue Stone Platemail Arms
WEIGHT PLATE_WEIGHT_ARMS
ARMOR PLATE_AR_BLUESTONE
RESOURCES 18 I_INGOT_BLUESTONE
SKILLMAKE BLACKSMITHING PLATE_SKILLMAKE_BLUESTONE
ON=@CREATE
COLOR COLOR_ORE_BLUESTONE
HITPOINTS PLATE_HITPOINTS_BLUESTONE

[ITEMDEF I_BLUESTONE_PLATEMAIL_GLOVES]
ID I_PLATEMAIL_GLOVES
NAME Blue Stone Platemail Gloves
WEIGHT PLATE_WEIGHT_GLOVES
ARMOR PLATE_AR_BLUESTONE
RESOURCES 12 I_INGOT_BLUESTONE
SKILLMAKE BLACKSMITHING PLATE_SKILLMAKE_BLUESTONE

ON=@CREATE
COLOR COLOR_ORE_BLUESTONE
HITPOINTS PLATE_HITPOINTS_BLUESTONE

[ITEMDEF I_BLUESTONE_PLATEMAIL_GORGET]
ID I_PLATEMAIL_GORGET
NAME Blue Stone Platemail Gorget
WEIGHT PLATE_WEIGHT_GORGET
ARMOR PLATE_AR_BLUESTONE
RESOURCES 10 I_INGOT_BLUESTONE
SKILLMAKE BLACKSMITHING PLATE_SKILLMAKE_BLUESTONE

ON=@CREATE
COLOR COLOR_ORE_BLUESTONE
HITPOINTS PLATE_HITPOINTS_BLUESTONE

[ITEMDEF I_BLUESTONE_PLATEMAIL_HELM]
ID I_PLATEMAIL_HELM
NAME Blue Stone Platemail Helm
WEIGHT PLATE_WEIGHT_HELMET
ARMOR PLATE_AR_BLUESTONE
RESOURCES 15 I_INGOT_BLUESTONE
SKILLMAKE BLACKSMITHING PLATE_SKILLMAKE_BLUESTONE

ON=@CREATE
COLOR COLOR_ORE_BLUESTONE
HITPOINTS PLATE_HITPOINTS_BLUESTONE

[ITEMDEF I_BLUESTONE_SHIELD_HEATER]
ID I_SHIELD_HEATER
NAME Blue Stone Heater Shield
WEIGHT PLATE_WEIGHT_SHIELD
ARMOR SHIELD_AR_BLUESTONE
RESOURCES 18 I_INGOT_BLUESTONE
SKILLMAKE BLACKSMITHING PLATE_SKILLMAKE_BLUESTONE

ON=@CREATE
COLOR COLOR_ORE_BLUESTONE
HITPOINTS PLATE_HITPOINTS_BLUESTONE

[ITEMDEF I_BLUESTONE_SHIELD_KITE]
ID I_SHIELD_KITE_WOOD
NAME Blue Stone Kite Shield
WEIGHT PLATE_WEIGHT_SHIELD
ARMOR SHIELD_AR_BLUESTONE
RESOURCES 18 I_INGOT_BLUESTONE
SKILLMAKE BLACKSMITHING PLATE_SKILLMAKE_BLUESTONE

ON=@CREATE
COLOR COLOR_ORE_BLUESTONE
HITPOINTS PLATE_HITPOINTS_BLUESTONE


[EOF]

[SKILLMENU SM_BLUESTONE_ARMOR]
Blue Stone Platemail
ON=I_BLUESTONE_PLATEMAIL_CHEST @0687 Blue Stone Chest (25 Bluestone Ingot)
MAKEITEM=I_BLUESTONE_PLATEMAIL_CHEST
ON=I_BLUESTONE_PLATEMAIL_LEGS @0687 Blue Stone Legs (20 Bluestone Ingot)
MAKEITEM=I_BLUESTONE_PLATEMAIL_LEGS
ON=I_BLUESTONE_PLATEMAIL_ARMS @0687 Blue Stone Arms (18 Bluestone Ingot)
MAKEITEM=I_BLUESTONE_PLATEMAIL_ARMS
ON=I_BLUESTONE_PLATEMAIL_HELM @0687 Blue Stone Helm (15 Bluestone Ingot)
MAKEITEM=I_BLUESTONE_PLATEMAIL_HELM
ON=I_BLUESTONE_PLATEMAIL_GLOVES @0687 Blue Stone Gloves (12 Bluestone Ingot)
MAKEITEM=I_BLUESTONE_PLATEMAIL_GLOVES
ON=I_BLUESTONE_PLATEMAIL_GORGET @0687 Blue Stone Gorget (10 Bluestone Ingot)
MAKEITEM=I_BLUESTONE_PLATEMAIL_GORGET
ON=I_BLUESTONE_SHIELD_HEATER @0687 Blue Stone Heater Shield (18 Bluestone Ingot)
MAKEITEM=I_BLUESTONE_SHIELD_HEATER
ON=I_BLUESTONE_SHIELD_KITE @0687 Blue Stone Kite Shield (18 Bluestone Ingot)
MAKEITEM=I_BLUESTONE_SHIELD_KITE
[EOF]
06-18-2013 05:44 AM
Find all posts by this user Like Post Quote this message in a reply
Monty
Apprentice
*

Posts: 40
Likes Given: 0
Likes Received: 2 in 2 posts
Joined: Jun 2012
Reputation: 1



Post: #9
RE: ore script
(06-18-2013 05:40 AM)darksun84 Wrote:  You have to create the script for the armors that use the new lingots and also add those news armor in the blacksmith skill menu. It's a super boring work if you have a lot of new minerals.

Not if You create a generator. We created 8 new ores this was 300 kb text of new colored items. Created in one afternoon. In c# something simple like that was very fast.

C# application developer.
C/C++,SQL,PLSQL programming.
Oracle database / information system developer.
Cooperation for development of new shard.
06-18-2013 06:07 AM
Find all posts by this user Like Post Quote this message in a reply
Rattlehead
Master
**

Posts: 290
Likes Given: 3
Likes Received: 8 in 6 posts
Joined: Jun 2012
Reputation: 8



Post: #10
RE: ore script
better yet u can make a script in game which allows you to target an item (a i_bag in my case) and it will take w/e u named it, and w/e you colored it, and make it all from a small dialog after you target the bag, makes everything you need in 2 seconds, and i made the script in just an hour. . . .

[Image: matts_siggy.gif]
06-18-2013 10:41 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)