SphereCommunity
ore script - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: ore script (/Thread-ore-script)

Pages: 1 2


ore script - darksoulfe - 06-17-2013 08:51 PM

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?


RE: ore script - darksun84 - 06-17-2013 09:00 PM

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 



RE: ore script - darksoulfe - 06-17-2013 09:43 PM

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?


RE: ore script - Mordaunt - 06-17-2013 09:52 PM

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


RE: ore script - darksoulfe - 06-17-2013 10:08 PM

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


RE: ore script - darksoulfe - 06-18-2013 05:21 AM

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


RE: ore script - darksun84 - 06-18-2013 05:40 AM

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.


RE: ore script - darksoulfe - 06-18-2013 05:44 AM

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]


RE: ore script - Monty - 06-18-2013 06:07 AM

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


RE: ore script - Rattlehead - 06-18-2013 10:41 AM

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