|
||
|
|||||||
| Script Support Get support for modifying RunUO Scripts, or writing your own! |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#2 (permalink) |
|
Forum Novice
Join Date: Jul 2003
Location: NY
Age: 38
Posts: 963
|
The marble is created through the Masonry craft menu. Once you create the marble cubes with the Mallet and Chisel you can then use the marble crafting tool to create the items.
__________________
![]() Your fate is sealed in the end of Time..... |
|
|
|
|
|
#3 (permalink) |
|
Forum Expert
|
do the ore's have any balancing issue's?? i used an ore package (CrazyMonkey or something like that) that the way he had his ore's set up, they were really unbalanced. I liked them and it gave blacksmith/miners more to work towards....but it was uber once you got to the top....especially if you had a top level runic.
Was just wondering...don't mean to imply anything on your script Karmagedon ![]() |
|
|
|
|
|
#4 (permalink) |
|
Forum Novice
Join Date: Jul 2003
Location: NY
Age: 38
Posts: 963
|
I have scripted the package to my liking which may be too uber for some poeple. If the problem is that the items are too uber you can adjust the runics to make them less uber. It is as simple as editing the properties in the ResourceInfo.cs.
__________________
![]() Your fate is sealed in the end of Time..... |
|
|
|
|
|
#6 (permalink) |
|
Forum Novice
|
i do think that the ores are a bit uber but to balance that out i make them the skills go over cap with items and then MAKE the players have to have certain arties and such in order to have a chance to work them so have like 180 smith to even work with the bloodstone i have found it makes thing way more balanced thats just how i did it
|
|
|
|
|
|
#7 (permalink) |
|
Forum Novice
|
if anyone could tell me i want to add mods to the ores woods and leathers for enhancements but for some reason i cant i did the resource info but i dont know what else to change and i tried to install the carp and fletching bod system but i dont have the central memory script can the link i seen dont have a download anyways thanks karmageddon AWSOME WORK
|
|
|
|
|
|
#8 (permalink) |
|
Forum Novice
Join Date: Jul 2003
Location: NY
Age: 38
Posts: 963
|
What mods are you trying to make to the ResourceInfo? I might be able to give ya some pointers in right direction.
As for Central Memory I do have a working copy of it, but I am not going to post here without confirming with original author first.
__________________
![]() Your fate is sealed in the end of Time..... |
|
|
|
|
|
#9 (permalink) |
|
Forum Novice
|
well here is my resource info script i have loaded this with no errors so i figured i did that right but when i craft it nothing happens i posted on it and was told to look up some other post but could not find anything and since i got you i got 1 more ? about the custom ores when adding some stuff i have noticed custom rocks like the bloodstone rock what are the rocks for and how do you get them but here is my resource info script will tell you the mods im trying to add
HTML Code:
using System;
using System.Collections;
namespace Server.Items
{
public enum CraftResource
{
None = 0,
Iron = 1,
DullCopper,
ShadowIron,
Copper,
Bronze,
Gold,
Agapite,
Verite,
Valorite,
Silver,
Platinum,
Mythril,
Obsidian,
Jade,
Moonstone,
Sunstone,
Bloodstone,
RegularLeather = 101,
SpinedLeather,
HornedLeather,
BarbedLeather,
DragonLeather,
DaemonLeather,
Regularwood = 151,
Pine,
Cedar,
Cherry,
Mahogany,
Oak,
Ash,
Yew,
Heartwood,
Bloodwood,
Frostwood,
RedScales = 201,
YellowScales,
BlackScales,
GreenScales,
WhiteScales,
BlueScales
}
public enum CraftResourceType
{
None,
Metal,
Leather,
Wood,
Scales
}
public class CraftAttributeInfo
{
private int m_WeaponFireDamage;
private int m_WeaponColdDamage;
private int m_WeaponPoisonDamage;
private int m_WeaponEnergyDamage;
private int m_WeaponDurability;
private int m_WeaponLuck;
private int m_WeaponGoldIncrease;
private int m_WeaponLowerRequirements;
private int m_WeaponAttackChance;
private int m_WeaponDefendChance;
private int m_WeaponHitFireball;
private int m_WeaponHitLightning;
private int m_WeaponHitHarm;
private int m_WeaponDamage;
private int m_WeaponHitLeechHits;
private int m_WeaponRegenHits;
private int m_WeaponSpeed;
private int m_WeaponDamage;
private int m_ArmorDamage;
private int m_ArmorAttackChance;
private int m_ArmorRegenHits;
private int m_ArmorRegenMana;
private int m_ArmorRegenStam;
private int m_ArmorMage;
private int m_ArmorPhysicalResist;
private int m_ArmorFireResist;
private int m_ArmorColdResist;
private int m_ArmorPoisonResist;
private int m_ArmorEnergyResist;
private int m_ArmorDurability;
private int m_ArmorLuck;
private int m_ArmorGoldIncrease;
private int m_ArmorLowerRequirements;
private int m_ShieldPhysicalResist;
private int m_ShieldFireResist;
private int m_ShieldColdResist;
private int m_ShieldPoisonResist;
private int m_ShieldEnergyResist;
private int m_RunicMinAttributes;
private int m_RunicMaxAttributes;
private int m_RunicMinIntensity;
private int m_RunicMaxIntensity;
public int WeaponFireDamage{ get{ return m_WeaponFireDamage; } set{ m_WeaponFireDamage = value; } }
public int WeaponColdDamage{ get{ return m_WeaponColdDamage; } set{ m_WeaponColdDamage = value; } }
public int WeaponPoisonDamage{ get{ return m_WeaponPoisonDamage; } set{ m_WeaponPoisonDamage = value; } }
public int WeaponEnergyDamage{ get{ return m_WeaponEnergyDamage; } set{ m_WeaponEnergyDamage = value; } }
public int WeaponDurability{ get{ return m_WeaponDurability; } set{ m_WeaponDurability = value; } }
public int WeaponLuck{ get{ return m_WeaponLuck; } set{ m_WeaponLuck = value; } }
public int WeaponGoldIncrease{ get{ return m_WeaponGoldIncrease; } set{ m_WeaponGoldIncrease = value; } }
public int WeaponLowerRequirements{ get{ return m_WeaponLowerRequirements; } set{ m_WeaponLowerRequirements = value; } }
public int WeaponAttackChance{ get{ return m_WeaponAttackChance; } set{ m_WeaponAttackChance = value; } }
public int WeaponDefendChance{ get{ return m_WeaponDefendChance; } set{ m_WeaponDefendChance = value; } }
public int WeaponHitFireball{ get{ return m_WeaponHitFireball; } set{ m_WeaponHitFireball = value; } }
public int WeaponHitLightning{ get{ return m_WeaponHitLightning; } set{ m_WeaponHitLightning = value; } }
public int WeaponHitHarm{ get{ return m_WeaponHitHarm; } set{ m_WeaponHitHarm = value; } }
public int WeaponDamage{ get{ return m_WeaponDamage; } set{ m_WeaponDamage = value; } }
public int WeaponHitLeechHits { get { return m_WeaponHitLeechHits; } set { m_WeaponHitLeechHits = value; } }
public int WeaponRegenHits { get { return m_WeaponRegenHits; } set { m_WeaponRegenHits = value; } }
public int WeaponSpeed { get { return m_WeaponSpeed; } set { m_WeaponSpeed = value; } }
public int WeaponDamage { get { return m_WeaponDamage; } set { m_WeaponDamage = value; } }
public int ArmorPhysicalResist{ get{ return m_ArmorPhysicalResist; } set{ m_ArmorPhysicalResist = value; } }
public int ArmorFireResist{ get{ return m_ArmorFireResist; } set{ m_ArmorFireResist = value; } }
public int ArmorColdResist{ get{ return m_ArmorColdResist; } set{ m_ArmorColdResist = value; } }
public int ArmorPoisonResist{ get{ return m_ArmorPoisonResist; } set{ m_ArmorPoisonResist = value; } }
public int ArmorEnergyResist{ get{ return m_ArmorEnergyResist; } set{ m_ArmorEnergyResist = value; } }
public int ArmorDurability{ get{ return m_ArmorDurability; } set{ m_ArmorDurability = value; } }
public int ArmorLuck{ get{ return m_ArmorLuck; } set{ m_ArmorLuck = value; } }
public int ArmorGoldIncrease{ get{ return m_ArmorGoldIncrease; } set{ m_ArmorGoldIncrease = value; } }
public int ArmorLowerRequirements{ get{ return m_ArmorLowerRequirements; } set{ m_ArmorLowerRequirements = value; } }
public int ArmorDamage { get { return m_ArmorDamage; } set { m_ArmorDamage = value; } }
public int ArmorAttackChance { get { return m_ArmorAttackChance; } set { m_ArmorAttackChance = value; } }
public int ArmorRegenHits { get { return m_ArmorRegenHits; } set { m_ArmorRegenHits = value; } }
public int ArmorRegenMana { get { return m_ArmorRegenMana; } set { m_ArmorRegenMana = value; } }
public int ArmorRegenStam { get { return m_ArmorRegenStam; } set { m_ArmorRegenStam = value; } }
public int ArmorMage { get { return m_ArmorMage; } set { m_ArmorMage = value; } }
public int RunicMinAttributes{ get{ return m_RunicMinAttributes; } set{ m_RunicMinAttributes = value; } }
public int RunicMaxAttributes{ get{ return m_RunicMaxAttributes; } set{ m_RunicMaxAttributes = value; } }
public int RunicMinIntensity{ get{ return m_RunicMinIntensity; } set{ m_RunicMinIntensity = value; } }
public int RunicMaxIntensity{ get{ return m_RunicMaxIntensity; } set{ m_RunicMaxIntensity = value; } }
public int ShieldPhysicalResist { get { return m_ShieldPhysicalResist; } set { m_ShieldPhysicalResist = value; } }
public int ShieldFireResist { get { return m_ShieldFireResist; } set { m_ShieldFireResist = value; } }
public int ShieldColdResist { get { return m_ShieldColdResist; } set { m_ShieldColdResist = value; } }
public int ShieldPoisonResist { get { return m_ShieldPoisonResist; } set { m_ShieldPoisonResist = value; } }
public int ShieldEnergyResist { get { return m_ShieldEnergyResist; } set { m_ShieldEnergyResist = value; } }
public CraftAttributeInfo()
{
}
public static readonly CraftAttributeInfo Blank;
public static readonly CraftAttributeInfo DullCopper, ShadowIron, Copper, Bronze, Golden, Agapite, Verite, Valorite, Silver, Platinum, Mythril, Obsidian, Jade, Moonstone, Sunstone, Bloodstone;
public static readonly CraftAttributeInfo Spined, Horned, Barbed, DragonL, Daemon;
public static readonly CraftAttributeInfo Pine, Cedar, Cherry, Mahogany, Oak, Ash, Yew, Heartwood, Bloodwood, Frostwood;
public static readonly CraftAttributeInfo RedScales, YellowScales, BlackScales, GreenScales, WhiteScales, BlueScales;
static CraftAttributeInfo()
{
Blank = new CraftAttributeInfo();
CraftAttributeInfo dullCopper = DullCopper = new CraftAttributeInfo();
dullCopper.ArmorPhysicalResist = 6;
dullCopper.ArmorDurability = 50;
dullCopper.ArmorLowerRequirements = 20;
dullCopper.WeaponDurability = 100;
dullCopper.WeaponLowerRequirements = 50;
dullCopper.RunicMinAttributes = 1;
dullCopper.RunicMaxAttributes = 2;
dullCopper.RunicMinIntensity = 55;
dullCopper.RunicMaxIntensity = 75;
CraftAttributeInfo shadowIron = ShadowIron = new CraftAttributeInfo();
shadowIron.ArmorPhysicalResist = 2;
shadowIron.ArmorFireResist = 1;
shadowIron.ArmorEnergyResist = 5;
shadowIron.ArmorDurability = 100;
shadowIron.WeaponColdDamage = 20;
shadowIron.WeaponDurability = 50;
shadowIron.RunicMinAttributes = 2;
shadowIron.RunicMaxAttributes = 3;
shadowIron.RunicMinIntensity = 60;
shadowIron.RunicMaxIntensity = 80;
CraftAttributeInfo copper = Copper = new CraftAttributeInfo();
copper.ArmorPhysicalResist = 1;
copper.ArmorFireResist = 1;
copper.ArmorPoisonResist = 5;
copper.ArmorEnergyResist = 2;
copper.WeaponPoisonDamage = 10;
copper.WeaponEnergyDamage = 20;
copper.RunicMinAttributes = 2;
copper.RunicMaxAttributes = 3;
copper.RunicMinIntensity = 65;
copper.RunicMaxIntensity = 85;
CraftAttributeInfo bronze = Bronze = new CraftAttributeInfo();
bronze.ArmorPhysicalResist = 3;
bronze.ArmorColdResist = 5;
bronze.ArmorPoisonResist = 1;
bronze.ArmorEnergyResist = 1;
bronze.WeaponFireDamage = 40;
bronze.RunicMinAttributes = 3;
bronze.RunicMaxAttributes = 4;
bronze.RunicMinIntensity = 70;
bronze.RunicMaxIntensity = 90;
CraftAttributeInfo golden = Golden = new CraftAttributeInfo();
golden.ArmorPhysicalResist = 1;
golden.ArmorFireResist = 1;
golden.ArmorColdResist = 2;
golden.ArmorEnergyResist = 2;
golden.ArmorLuck = 40;
golden.ArmorLowerRequirements = 30;
golden.WeaponLuck = 40;
golden.WeaponLowerRequirements = 50;
golden.RunicMinAttributes = 3;
golden.RunicMaxAttributes = 4;
golden.RunicMinIntensity = 75;
golden.RunicMaxIntensity = 95;
CraftAttributeInfo agapite = Agapite = new CraftAttributeInfo();
agapite.ArmorPhysicalResist = 2;
agapite.ArmorFireResist = 3;
agapite.ArmorColdResist = 2;
agapite.ArmorPoisonResist = 2;
agapite.ArmorEnergyResist = 2;
agapite.WeaponColdDamage = 30;
agapite.WeaponEnergyDamage = 20;
agapite.RunicMinAttributes = 4;
agapite.RunicMaxAttributes = 5;
agapite.RunicMinIntensity = 80;
agapite.RunicMaxIntensity = 100;
CraftAttributeInfo verite = Verite = new CraftAttributeInfo();
verite.ArmorPhysicalResist = 3;
verite.ArmorFireResist = 3;
verite.ArmorColdResist = 2;
verite.ArmorPoisonResist = 3;
verite.ArmorEnergyResist = 1;
verite.WeaponPoisonDamage = 40;
verite.WeaponEnergyDamage = 20;
verite.RunicMinAttributes = 5;
verite.RunicMaxAttributes = 6;
verite.RunicMinIntensity = 85;
verite.RunicMaxIntensity = 105;
CraftAttributeInfo valorite = Valorite = new CraftAttributeInfo();
valorite.ArmorPhysicalResist = 4;
valorite.ArmorColdResist = 3;
valorite.ArmorPoisonResist = 3;
valorite.ArmorEnergyResist = 3;
valorite.ArmorDurability = 50;
valorite.WeaponFireDamage = 10;
valorite.WeaponColdDamage = 20;
valorite.WeaponPoisonDamage = 10;
valorite.WeaponEnergyDamage = 20;
valorite.RunicMinAttributes = 6;
valorite.RunicMaxAttributes = 7;
valorite.RunicMinIntensity = 90;
valorite.RunicMaxIntensity = 110;
CraftAttributeInfo silver = Silver = new CraftAttributeInfo();
silver.ArmorPhysicalResist = 2;
silver.ArmorColdResist = 5;
silver.ArmorEnergyResist = 3;
silver.WeaponColdDamage = 40;
silver.RunicMinAttributes = 7;
silver.RunicMaxAttributes = 8;
silver.RunicMinIntensity = 95;
silver.RunicMaxIntensity = 115;
CraftAttributeInfo platinum = Platinum = new CraftAttributeInfo();
platinum.ArmorPhysicalResist = 1;
platinum.ArmorFireResist = 4;
platinum.ArmorPoisonResist = 4;
platinum.WeaponFireDamage = 20;
platinum.WeaponPoisonDamage = 20;
platinum.WeaponWeaponDamage = 15;
platinum.RunicMinAttributes = 8;
platinum.RunicMaxAttributes = 9;
platinum.RunicMinIntensity = 100;
platinum.RunicMaxIntensity = 120;
CraftAttributeInfo mythril = Mythril = new CraftAttributeInfo();
mythril.ArmorPhysicalResist = 8;
mythril.ArmorLuck = 50;
mythril.WeaponColdDamage = 10;
mythril.WeaponEnergyDamage = 10;
mythril.WeaponFireDamage = 10;
mythril.WeaponPoisonDamage = 10;
mythril.WeaponLuck = 50;
mythril.RunicMinAttributes = 9;
mythril.RunicMaxAttributes = 10;
mythril.RunicMinIntensity = 105;
mythril.RunicMaxIntensity = 125;
CraftAttributeInfo obsidian = Obsidian = new CraftAttributeInfo();
obsidian.ArmorPhysicalResist = 8;
obsidian.ArmorColdResist = 6;
obsidian.ArmorLowerRequirements = 30;
obsidian.WeaponFireDamage = 40;
obsidian.WeaponDefendChance = 15;
obsidian.RunicMinAttributes = 10;
obsidian.RunicMaxAttributes = 11;
obsidian.RunicMinIntensity = 110;
obsidian.RunicMaxIntensity = 130;
CraftAttributeInfo jade = Jade = new CraftAttributeInfo();
jade.ArmorPhysicalResist = 5;
jade.ArmorColdResist = 5;
jade.ArmorPoisonResist = 6;
jade.WeaponPoisonDamage = 40;
jade.WeaponWeaponSpeed = 15;
jade.RunicMinAttributes = 11;
jade.RunicMaxAttributes = 12;
jade.RunicMinIntensity = 115;
jade.RunicMaxIntensity = 135;
CraftAttributeInfo moonstone = Moonstone = new CraftAttributeInfo();
moonstone.ArmorPhysicalResist = 7;
moonstone.ArmorColdResist = 6;
moonstone.ArmorEnergyResist = 6;
moonstone.ArmorRegenMana = 4;
moonstone.WeaponEnergyDamage = 50;
moonstone.WeaponHitLightning = 25;
moonstone.RunicMinAttributes = 12;
moonstone.RunicMaxAttributes = 13;
moonstone.RunicMinIntensity = 120;
moonstone.RunicMaxIntensity = 140;
CraftAttributeInfo sunstone = Sunstone = new CraftAttributeInfo();
sunstone.ArmorPhysicalResist = 7;
sunstone.ArmorFireResist = 6;
sunstone.ArmorPoisonResist = 6;
sunstone.ArmorRegenStam = 6;
sunstone.WeaponFireDamage = 60;
sunstone.WeaponPoisonDamage = 40;
sunstone.WeaponHitFireball = 25;
sunstone.RunicMinAttributes = 13;
sunstone.RunicMaxAttributes = 14;
sunstone.RunicMinIntensity = 125;
sunstone.RunicMaxIntensity = 145;
CraftAttributeInfo bloodstone = Bloodstone = new CraftAttributeInfo();
bloodstone.ArmorPhysicalResist = 7;
bloodstone.ArmorFireResist = 7;
bloodstone.ArmorColdResist = 5;
bloodstone.ArmorPoisonResist = 7;
bloodstone.ArmorEnergyResist = 8;
bloodstone.ArmorRegenHits = 5;
bloodstone.WeaponFireDamage = 40;
bloodstone.WeaponAttackChance = 20;
bloodstone.WeaponEnergyDamage = 60;
bloodstone.RunicMinAttributes = 14;
bloodstone.RunicMaxAttributes = 15;
bloodstone.RunicMinIntensity = 130;
bloodstone.RunicMaxIntensity = 150;
CraftAttributeInfo spined = Spined = new CraftAttributeInfo();
spined.ArmorPhysicalResist = 5;
spined.ArmorLuck = 40;
spined.RunicMinAttributes = 1;
spined.RunicMaxAttributes = 3;
spined.RunicMinIntensity = 80;
spined.RunicMaxIntensity = 90;
CraftAttributeInfo horned = Horned = new CraftAttributeInfo();
horned.ArmorPhysicalResist = 2;
horned.ArmorFireResist = 3;
horned.ArmorColdResist = 2;
horned.ArmorPoisonResist = 2;
horned.ArmorEnergyResist = 2;
horned.RunicMinAttributes = 3;
horned.RunicMaxAttributes = 4;
horned.RunicMinIntensity = 90;
horned.RunicMaxIntensity = 120;
CraftAttributeInfo barbed = Barbed = new CraftAttributeInfo();
barbed.ArmorPhysicalResist = 2;
barbed.ArmorFireResist = 1;
barbed.ArmorColdResist = 2;
barbed.ArmorPoisonResist = 3;
barbed.ArmorEnergyResist = 4;
barbed.RunicMinAttributes = 4;
barbed.RunicMaxAttributes = 5;
barbed.RunicMinIntensity = 100;
barbed.RunicMaxIntensity = 130;
CraftAttributeInfo dragon = DragonL = new CraftAttributeInfo();
dragon.ArmorPhysicalResist = 4;
dragon.ArmorFireResist = 6;
dragon.ArmorColdResist = 2;
dragon.ArmorPoisonResist = 3;
dragon.ArmorEnergyResist = 5;
dragon.RunicMinAttributes = 5;
dragon.RunicMaxAttributes = 6;
dragon.RunicMinIntensity = 110;
dragon.RunicMaxIntensity = 140;
CraftAttributeInfo daemon = Daemon = new CraftAttributeInfo();
daemon.ArmorPhysicalResist = 3;
daemon.ArmorFireResist = 5;
daemon.ArmorColdResist = 3;
daemon.ArmorPoisonResist = 3;
daemon.ArmorEnergyResist = 6;
daemon.RunicMinAttributes = 6;
daemon.RunicMaxAttributes = 7;
daemon.RunicMinIntensity = 120;
daemon.RunicMaxIntensity = 150;
CraftAttributeInfo pine = Pine = new CraftAttributeInfo();
pine.ArmorPhysicalResist = 3;
pine.ArmorFireResist = 3;
pine.ArmorPoisonResist = 2;
pine.ArmorEnergyResist = 3;
pine.ShieldPhysicalResist = 1;
pine.ShieldFireResist = 1;
pine.ShieldColdResist = 1;
pine.ShieldPoisonResist = 1;
pine.ShieldEnergyResist = 1;
pine.WeaponLowerRequirements = 50;
pine.RunicMinAttributes = 1;
pine.RunicMaxAttributes = 2;
pine.RunicMinIntensity = 20;
pine.RunicMaxIntensity = 30;
CraftAttributeInfo cedar = Cedar = new CraftAttributeInfo();
cedar.ArmorPhysicalResist = 3;
cedar.ArmorFireResist = 4;
cedar.ArmorPoisonResist = 3;
cedar.ArmorEnergyResist = 4;
cedar.ShieldPhysicalResist = 1;
cedar.ShieldFireResist = 1;
cedar.ShieldColdResist = 1;
cedar.ShieldPoisonResist = 1;
cedar.ShieldEnergyResist = 1;
cedar.WeaponAttackChance = 5;
cedar.WeaponEnergyDamage = 60;
cedar.RunicMinAttributes = 3;
cedar.RunicMaxAttributes = 4;
cedar.RunicMinIntensity = 30;
cedar.RunicMaxIntensity = 40;
CraftAttributeInfo cherry = Cherry = new CraftAttributeInfo();
cherry.ArmorPhysicalResist = 4;
cherry.ArmorFireResist = 4;
cherry.ArmorPoisonResist = 4;
cherry.ArmorEnergyResist = 4;
cherry.ShieldPhysicalResist = 1;
cherry.ShieldFireResist = 3;
cherry.ShieldColdResist = 1;
cherry.ShieldPoisonResist = 5;
cherry.ShieldEnergyResist = 2;
cherry.WeaponHitFireball = 10;
cherry.WeaponFireDamage = 60;
cherry.RunicMinAttributes = 4;
cherry.RunicMaxAttributes = 5;
cherry.RunicMinIntensity = 40;
cherry.RunicMaxIntensity = 50;
CraftAttributeInfo mahogany = Mahogany = new CraftAttributeInfo();
mahogany.ArmorPhysicalResist = 5;
mahogany.ArmorFireResist = 5;
mahogany.ArmorPoisonResist = 5;
mahogany.ArmorEnergyResist = 5;
mahogany.ShieldPhysicalResist = 2;
mahogany.ShieldFireResist = 1;
mahogany.ShieldColdResist = 2;
mahogany.ShieldPoisonResist = 3;
mahogany.ShieldEnergyResist = 2;
mahogany.WeaponHitHarm = 60;
mahogany.WeaponColdDamage = 60;
mahogany.RunicMinAttributes = 5;
mahogany.RunicMaxAttributes = 6;
mahogany.RunicMinIntensity = 50;
mahogany.RunicMaxIntensity = 60;
CraftAttributeInfo oak = Oak = new CraftAttributeInfo();
oak.ArmorPhysicalResist = 6;
oak.ArmorFireResist = 6;
oak.ArmorPoisonResist = 2;
oak.ArmorEnergyResist = 4;
oak.ArmorLuck = 40;
oak.ShieldPhysicalResist = 3;
oak.ShieldFireResist = 2;
oak.ShieldColdResist = 4;
oak.ShieldPoisonResist = 4;
oak.ShieldEnergyResist = 2;
oak.WeaponLuck = 40;
oak.WeaponDamage = 5;
oak.RunicMinAttributes = 6;
oak.RunicMaxAttributes = 7;
oak.RunicMinIntensity = 60;
oak.RunicMaxIntensity = 70;
CraftAttributeInfo ash = Ash = new CraftAttributeInfo();
ash.ArmorPhysicalResist = 4;
ash.ArmorFireResist = 2;
ash.ArmorColdResist = 4;
ash.ArmorPoisonResist = 1;
ash.ArmorEnergyResist = 6;
ash.ArmorLowerRequirements = 20;
ash.ShieldEnergyResist = 3;
ash.WeaponSpeed = 10;
ash.WeaponLowerRequirements = 20;
ash.RunicMinAttributes = 7;
ash.RunicMaxAttributes = 8;
ash.RunicMinIntensity = 70;
ash.RunicMaxIntensity = 80;
CraftAttributeInfo yew = Yew = new CraftAttributeInfo();
yew.ArmorPhysicalResist = 6;
yew.ArmorFireResist = 3;
yew.ArmorColdResist = 3;
yew.ArmorEnergyResist = 3;
yew.ArmorRegenHits = 1;
yew.ShieldPhysicalResist = 3;
yew.WeaponAttackChance = 5;
yew.WeaponDamage = 10;
yew.WeaponLowerRequirements = 20;
yew.RunicMinAttributes = 8;
yew.RunicMaxAttributes = 9;
yew.RunicMinIntensity = 80;
yew.RunicMaxIntensity = 90;
CraftAttributeInfo heartwood = Heartwood = new CraftAttributeInfo();
heartwood.ArmorPhysicalResist = 4;
heartwood.ArmorFireResist = 3;
heartwood.ArmorColdResist = 2;
heartwood.ArmorPoisonResist = 7;
heartwood.ArmorEnergyResist = 2;
// one of below
heartwood.ArmorDamage = 10;
heartwood.ArmorAttackChance = 5;
heartwood.ArmorLuck = 40;
heartwood.ArmorLowerRequirements = 20;
heartwood.ArmorMage = 1;
// one of below
heartwood.WeaponDamage = 10;
heartwood.WeaponAttackChance = 5;
heartwood.WeaponHitLifeLeech = 13;
heartwood.WeaponLuck = 40;
heartwood.WeaponLowerRequirements = 20;
heartwood.WeaponSpeed = 10;
heartwood.RunicMinAttributes = 9;
heartwood.RunicMaxAttributes = 10;
heartwood.RunicMinIntensity = 90;
heartwood.RunicMaxIntensity = 110;
CraftAttributeInfo bloodwood = Bloodwood = new CraftAttributeInfo();
bloodwood.ArmorPhysicalResist = 4;
bloodwood.ArmorFireResist = 10;
bloodwood.ArmorColdResist = 4;
bloodwood.ArmorPoisonResist = 5;
bloodwood.ArmorEnergyResist = 5;
bloodwood.ArmorRegenHits = 3;
bloodwood.ShieldFireResist = 3;
bloodwood.WeaponRegenHits = 2;
bloodwood.WeaponHitLifeLeech = 16;
bloodwood.RunicMinAttributes = 10;
bloodwood.RunicMaxAttributes = 10;
bloodwood.RunicMinIntensity = 110;
bloodwood.RunicMaxIntensity = 120;
CraftAttributeInfo frostwood = Frostwood = new CraftAttributeInfo();
frostwood.ArmorPhysicalResist = 4;
frostwood.ArmorFireResist = 4;
frostwood.ArmorColdResist = 10;
frostwood.ArmorPoisonResist = 5;
frostwood.ArmorEnergyResist = 5;
frostwood.ArmorRegenMana = 3;
frostwood.ShieldColdResist = 3;
frostwood.WeaponColdDamage = 40;
frostwood.WeaponDamage = 12;
frostwood.RunicMinAttributes = 11;
frostwood.RunicMaxAttributes = 11;
frostwood.RunicMinIntensity = 120;
frostwood.RunicMaxIntensity = 150;
CraftAttributeInfo red = RedScales = new CraftAttributeInfo();
red.ArmorFireResist = 10;
red.ArmorColdResist = -3;
CraftAttributeInfo yellow = YellowScales = new CraftAttributeInfo();
yellow.ArmorPhysicalResist = -3;
yellow.ArmorLuck = 20;
CraftAttributeInfo black = BlackScales = new CraftAttributeInfo();
black.ArmorPhysicalResist = 10;
black.ArmorEnergyResist = -3;
CraftAttributeInfo green = GreenScales = new CraftAttributeInfo();
green.ArmorFireResist = -3;
green.ArmorPoisonResist = 10;
CraftAttributeInfo white = WhiteScales = new CraftAttributeInfo();
white.ArmorPhysicalResist = -3;
white.ArmorColdResist = 10;
CraftAttributeInfo blue = BlueScales = new CraftAttributeInfo();
blue.ArmorPoisonResist = -3;
blue.ArmorEnergyResist = 10;
}
}
public class CraftResourceInfo
{
private int m_Hue;
private int m_Number;
private string m_Name;
private CraftAttributeInfo m_AttributeInfo;
private CraftResource m_Resource;
private Type[] m_ResourceTypes;
public int Hue{ get{ return m_Hue; } }
public int Number{ get{ return m_Number; } }
public string Name{ get{ return m_Name; } }
public CraftAttributeInfo AttributeInfo{ get{ return m_AttributeInfo; } }
public CraftResource Resource{ get{ return m_Resource; } }
public Type[] ResourceTypes{ get{ return m_ResourceTypes; } }
public CraftResourceInfo( int hue, int number, string name, CraftAttributeInfo attributeInfo, CraftResource resource, params Type[] resourceTypes )
{
m_Hue = hue;
m_Number = number;
m_Name = name;
m_AttributeInfo = attributeInfo;
m_Resource = resource;
m_ResourceTypes = resourceTypes;
for ( int i = 0; i < resourceTypes.Length; ++i )
CraftResources.RegisterType( resourceTypes[i], resource );
}
}
public class CraftResources
{
private static CraftResourceInfo[] m_MetalInfo = new CraftResourceInfo[]
{
new CraftResourceInfo( 0x000, 1053109, "Iron", CraftAttributeInfo.Blank, CraftResource.Iron, typeof( IronIngot ), typeof( IronOre ), typeof( Granite ), typeof( Marble ) ),
new CraftResourceInfo( 0x973, 1053108, "Dull Copper", CraftAttributeInfo.DullCopper, CraftResource.DullCopper, typeof( DullCopperIngot ), typeof( DullCopperOre ), typeof( DullCopperGranite ), typeof( DullCopperMarble ) ),
new CraftResourceInfo( 0x966, 1053107, "Shadow Iron", CraftAttributeInfo.ShadowIron, CraftResource.ShadowIron, typeof( ShadowIronIngot ), typeof( ShadowIronOre ), typeof( ShadowIronGranite ), typeof( ShadowIronMarble ) ),
new CraftResourceInfo( 0x96D, 1053106, "Copper", CraftAttributeInfo.Copper, CraftResource.Copper, typeof( CopperIngot ), typeof( CopperOre ), typeof( CopperGranite ), typeof( CopperMarble ) ),
new CraftResourceInfo( 0x972, 1053105, "Bronze", CraftAttributeInfo.Bronze, CraftResource.Bronze, typeof( BronzeIngot ), typeof( BronzeOre ), typeof( BronzeGranite ), typeof( BronzeMarble ) ),
new CraftResourceInfo( 0x8A5, 1053104, "Gold", CraftAttributeInfo.Golden, CraftResource.Gold, typeof( GoldIngot ), typeof( GoldOre ), typeof( GoldGranite ), typeof( GoldMarble ) ),
new CraftResourceInfo( 0x979, 1053103, "Agapite", CraftAttributeInfo.Agapite, CraftResource.Agapite, typeof( AgapiteIngot ), typeof( AgapiteOre ), typeof( AgapiteGranite ), typeof( AgapiteMarble ) ),
new CraftResourceInfo( 0x89F, 1053102, "Verite", CraftAttributeInfo.Verite, CraftResource.Verite, typeof( VeriteIngot ), typeof( VeriteOre ), typeof( VeriteGranite ), typeof( VeriteMarble ) ),
new CraftResourceInfo( 0x8AB, 1053101, "Valorite", CraftAttributeInfo.Valorite, CraftResource.Valorite, typeof( ValoriteIngot ), typeof( ValoriteOre ), typeof( ValoriteGranite ), typeof( ValoriteMarble ) ),
new CraftResourceInfo( 0x47E, 0, "Silver", CraftAttributeInfo.Silver, CraftResource.Silver, typeof( SilverIngot ), typeof( SilverOre ), typeof( SilverGranite ), typeof( SilverMarble ) ),
new CraftResourceInfo( 0x494, 0, "Platinum", CraftAttributeInfo.Platinum, CraftResource.Platinum, typeof( PlatinumIngot ), typeof( PlatinumOre ), typeof( PlatinumGranite ), typeof( PlatinumMarble ) ),
new CraftResourceInfo( 0x486, 0, "Mythril", CraftAttributeInfo.Mythril, CraftResource.Mythril, typeof( MythrilIngot ), typeof( MythrilOre ), typeof( MythrilGranite ), typeof( MythrilMarble ) ),
new CraftResourceInfo( 0x455, 0, "Obsidian", CraftAttributeInfo.Obsidian, CraftResource.Obsidian, typeof( ObsidianIngot ), typeof( ObsidianOre ), typeof( ObsidianGranite ), typeof( ObsidianMarble ) ),
new CraftResourceInfo( 0x48C, 0, "Jade", CraftAttributeInfo.Jade, CraftResource.Jade, typeof( JadeIngot ), typeof( JadeOre ), typeof( JadeGranite ), typeof( JadeMarble ) ),
new CraftResourceInfo( 0x484, 0, "Moonstone", CraftAttributeInfo.Moonstone, CraftResource.Moonstone, typeof( MoonstoneIngot ), typeof( MoonstoneOre ), typeof( MoonstoneGranite ), typeof( MoonstoneMarble ) ),
new CraftResourceInfo( 0x550, 0, "Sunstone", CraftAttributeInfo.Sunstone, CraftResource.Sunstone, typeof( SunstoneIngot ), typeof( SunstoneOre ), typeof( SunstoneGranite ), typeof( SunstoneMarble ) ),
new CraftResourceInfo( 0x485, 0, "Bloodstone", CraftAttributeInfo.Bloodstone, CraftResource.Bloodstone, typeof( BloodstoneIngot ), typeof( BloodstoneOre ), typeof( BloodstoneGranite ), typeof( BloodstoneMarble ) ),
};
private static CraftResourceInfo[] m_WoodInfo = new CraftResourceInfo[]
{
new CraftResourceInfo( 0x000, 0, "Regular", CraftAttributeInfo.Blank, CraftResource.Regularwood, typeof( Log ), typeof( Board ) ),
new CraftResourceInfo( 0x47E, 0, "Pine", CraftAttributeInfo.Pine, CraftResource.Pine, typeof( PineLog ), typeof( PineBoard ) ),
new CraftResourceInfo( 0x35E, 0, "Cedar", CraftAttributeInfo.Cedar, CraftResource.Cedar, typeof( CedarLog ), typeof( CedarBoard ) ),
new CraftResourceInfo( 0x47D, 0, "Cherry", CraftAttributeInfo.Cherry, CraftResource.Cherry, typeof( CherryLog ), typeof( CherryBoard ) ),
new CraftResourceInfo( 0x649, 0, "Mahogany", CraftAttributeInfo.Mahogany, CraftResource.Mahogany, typeof( MahoganyLog ), typeof( MahoganyBoard ) ),
new CraftResourceInfo( 0x4A6, 0, "Oak", CraftAttributeInfo.Oak, CraftResource.Oak, typeof( OakLog ), typeof( OakBoard ) ),
new CraftResourceInfo( 0x4A7, 0, "Ash", CraftAttributeInfo.Ash, CraftResource.Ash, typeof( AshLog ), typeof( AshBoard ) ),
new CraftResourceInfo( 0x4A8, 0, "Yew", CraftAttributeInfo.Yew, CraftResource.Yew, typeof( YewLog ), typeof( YewBoard ) ),
new CraftResourceInfo( 0x4A9, 0, "Heartwood", CraftAttributeInfo.Heartwood, CraftResource.Heartwood, typeof( HeartwoodLog ), typeof( HeartwoodBoard ) ),
new CraftResourceInfo( 0x4AA, 0, "Bloodwood", CraftAttributeInfo.Bloodwood, CraftResource.Bloodwood, typeof( BloodwoodLog ), typeof( BloodwoodBoard ) ),
new CraftResourceInfo( 0x4AB, 0, "Frostwood", CraftAttributeInfo.Frostwood, CraftResource.Frostwood, typeof( FrostwoodLog ), typeof( FrostwoodBoard ) ),
};
private static CraftResourceInfo[] m_ScaleInfo = new CraftResourceInfo[]
{
new CraftResourceInfo( 0x66D, 1053129, "Red Scales", CraftAttributeInfo.RedScales, CraftResource.RedScales, typeof( RedScales ) ),
new CraftResourceInfo( 0x8A8, 1053130, "Yellow Scales", CraftAttributeInfo.YellowScales, CraftResource.YellowScales, typeof( YellowScales ) ),
new CraftResourceInfo( 0x455, 1053131, "Black Scales", CraftAttributeInfo.BlackScales, CraftResource.BlackScales, typeof( BlackScales ) ),
new CraftResourceInfo( 0x851, 1053132, "Green Scales", CraftAttributeInfo.GreenScales, CraftResource.GreenScales, typeof( GreenScales ) ),
new CraftResourceInfo( 0x8FD, 1053133, "White Scales", CraftAttributeInfo.WhiteScales, CraftResource.WhiteScales, typeof( WhiteScales ) ),
new CraftResourceInfo( 0x8B0, 1053134, "Blue Scales", CraftAttributeInfo.BlueScales, CraftResource.BlueScales, typeof( BlueScales ) )
};
private static CraftResourceInfo[] m_LeatherInfo = new CraftResourceInfo[]
{
new CraftResourceInfo( 0x000, 1049353, "Normal", CraftAttributeInfo.Blank, CraftResource.RegularLeather, typeof( Leather ), typeof( Hides ) ),
new CraftResourceInfo( 0x283, 1049354, "Spined", CraftAttributeInfo.Spined, CraftResource.SpinedLeather, typeof( SpinedLeather ), typeof( SpinedHides ) ),
new CraftResourceInfo( 0x227, 1049355, "Horned", CraftAttributeInfo.Horned, CraftResource.HornedLeather, typeof( HornedLeather ), typeof( HornedHides ) ),
new CraftResourceInfo( 0x1C1, 1049356, "Barbed", CraftAttributeInfo.Barbed, CraftResource.BarbedLeather, typeof( BarbedLeather ), typeof( BarbedHides ) ),
new CraftResourceInfo( 0x488, 0, "Dragon", CraftAttributeInfo.DragonL, CraftResource.DragonLeather, typeof( DragonLeather ), typeof( DragonHides ) ),
new CraftResourceInfo( 0x3DB, 0, "Daemon", CraftAttributeInfo.Daemon, CraftResource.DaemonLeather, typeof( DaemonLeather ), typeof( DaemonHides ) )
};
private static CraftResourceInfo[] m_AOSLeatherInfo = new CraftResourceInfo[]
{
new CraftResourceInfo( 0x000, 1049353, "Normal", CraftAttributeInfo.Blank, CraftResource.RegularLeather, typeof( Leather ), typeof( Hides ) ),
new CraftResourceInfo( 0x8AC, 1049354, "Spined", CraftAttributeInfo.Spined, CraftResource.SpinedLeather, typeof( SpinedLeather ), typeof( SpinedHides ) ),
new CraftResourceInfo( 0x845, 1049355, "Horned", CraftAttributeInfo.Horned, CraftResource.HornedLeather, typeof( HornedLeather ), typeof( HornedHides ) ),
new CraftResourceInfo( 0x851, 1049356, "Barbed", CraftAttributeInfo.Barbed, CraftResource.BarbedLeather, typeof( BarbedLeather ), typeof( BarbedHides ) ),
new CraftResourceInfo( 0x488, 0, "Dragon", CraftAttributeInfo.DragonL, CraftResource.DragonLeather, typeof( DragonLeather ), typeof( DragonHides ) ),
new CraftResourceInfo( 0x3DB, 0, "Daemon", CraftAttributeInfo.Daemon, CraftResource.DaemonLeather, typeof( DaemonLeather ), typeof( DaemonHides ) )
};
/// <summary>
/// Returns true if '<paramref name="resource"/>' is None, Iron, or RegularLeather. False if otherwise.
/// </summary>
public static bool IsStandard( CraftResource resource )
{
return ( resource == CraftResource.None || resource == CraftResource.Iron || resource == CraftResource.RegularLeather || resource == CraftResource.Regularwood );
}
private static Hashtable m_TypeTable;
/// <summary>
/// Registers that '<paramref name="resourceType"/>' uses '<paramref name="resource"/>' so that it can later be queried by <see cref="CraftResources.GetFromType"/>
/// </summary>
public static void RegisterType( Type resourceType, CraftResource resource )
{
if ( m_TypeTable == null )
m_TypeTable = new Hashtable();
m_TypeTable[resourceType] = resource;
}
/// <summary>
/// Returns the <see cref="CraftResource"/> value for which '<paramref name="resourceType"/>' uses -or- CraftResource.None if an unregistered type was specified.
/// </summary>
public static CraftResource GetFromType( Type resourceType )
{
if ( m_TypeTable == null )
return CraftResource.None;
object obj = m_TypeTable[resourceType];
if ( !(obj is CraftResource) )
return CraftResource.None;
return (CraftResource)obj;
}
/// <summary>
/// Returns a <see cref="CraftResourceInfo"/> instance describing '<paramref name="resource"/>' -or- null if an invalid resource was specified.
/// </summary>
public static CraftResourceInfo GetInfo( CraftResource resource )
{
CraftResourceInfo[] list = null;
switch ( GetType( resource ) )
{
case CraftResourceType.Metal: list = m_MetalInfo; break;
case CraftResourceType.Leather: list = Core.AOS ? m_AOSLeatherInfo : m_LeatherInfo; break;
case CraftResourceType.Wood: list = m_WoodInfo; break;
case CraftResourceType.Scales: list = m_ScaleInfo; break;
}
if ( list != null )
{
int index = GetIndex( resource );
if ( index >= 0 && index < list.Length )
return list[index];
}
return null;
}
/// <summary>
/// Returns a <see cref="CraftResourceType"/> value indiciating the type of '<paramref name="resource"/>'.
/// </summary>
public static CraftResourceType GetType( CraftResource resource )
{
if ( resource >= CraftResource.Iron && resource <= CraftResource.Bloodstone )
return CraftResourceType.Metal;
if ( resource >= CraftResource.RegularLeather && resource <= CraftResource.DaemonLeather )
return CraftResourceType.Leather;
if ( resource >= CraftResource.Regularwood && resource <= CraftResource.Frostwood )
return CraftResourceType.Wood;
if ( resource >= CraftResource.RedScales && resource <= CraftResource.BlueScales )
return CraftResourceType.Scales;
return CraftResourceType.None;
}
/// <summary>
/// Returns the first <see cref="CraftResource"/> in the series of resources for which '<paramref name="resource"/>' belongs.
/// </summary>
public static CraftResource GetStart( CraftResource resource )
{
switch ( GetType( resource ) )
{
case CraftResourceType.Metal: return CraftResource.Iron;
case CraftResourceType.Leather: return CraftResource.RegularLeather;
case CraftResourceType.Wood: return CraftResource.Regularwood;
case CraftResourceType.Scales: return CraftResource.RedScales;
}
return CraftResource.None;
}
/// <summary>
/// Returns the index of '<paramref name="resource"/>' in the seriest of resources for which it belongs.
/// </summary>
public static int GetIndex( CraftResource resource )
{
CraftResource start = GetStart( resource );
if ( start == CraftResource.None )
return 0;
return (int)(resource - start);
}
/// <summary>
/// Returns the <see cref="CraftResourceInfo.Number"/> property of '<paramref name="resource"/>' -or- 0 if an invalid resource was specified.
/// </summary>
public static int GetLocalizationNumber( CraftResource resource )
{
CraftResourceInfo info = GetInfo( resource );
return ( info == null ? 0 : info.Number );
}
/// <summary>
/// Returns the <see cref="CraftResourceInfo.Hue"/> property of '<paramref name="resource"/>' -or- 0 if an invalid resource was specified.
/// </summary>
public static int GetHue( CraftResource resource )
{
CraftResourceInfo info = GetInfo( resource );
return ( info == null ? 0 : info.Hue );
}
/// <summary>
/// Returns the <see cref="CraftResourceInfo.Name"/> property of '<paramref name="resource"/>' -or- an empty string if the resource specified was invalid.
/// </summary>
public static string GetName( CraftResource resource )
{
CraftResourceInfo info = GetInfo( resource );
return ( info == null ? String.Empty : info.Name );
}
/// <summary>
/// Returns the <see cref="CraftResource"/> value which represents '<paramref name="info"/>' -or- CraftResource.None if unable to convert.
/// </summary>
public static CraftResource GetFromOreInfo( OreInfo info )
{
if ( info.Name.IndexOf( "Spined" ) >= 0 )
return CraftResource.SpinedLeather;
else if ( info.Name.IndexOf( "Horned" ) >= 0 )
return CraftResource.HornedLeather;
else if ( info.Name.IndexOf( "Barbed" ) >= 0 )
return CraftResource.BarbedLeather;
else if ( info.Name.IndexOf( "DragonL" ) >= 0 )
return CraftResource.DragonLeather;
else if ( info.Name.IndexOf( "Daemon" ) >= 0 )
return CraftResource.DaemonLeather;
else if ( info.Name.IndexOf( "Leather" ) >= 0 )
return CraftResource.RegularLeather;
if ( info.Level == 0 )
return CraftResource.Iron;
else if ( info.Level == 1 )
return CraftResource.DullCopper;
else if ( info.Level == 2 )
return CraftResource.ShadowIron;
else if ( info.Level == 3 )
return CraftResource.Copper;
else if ( info.Level == 4 )
return CraftResource.Bronze;
else if ( info.Level == 5 )
return CraftResource.Gold;
else if ( info.Level == 6 )
return CraftResource.Agapite;
else if ( info.Level == 7 )
return CraftResource.Verite;
else if ( info.Level == 8 )
return CraftResource.Valorite;
else if ( info.Level == 9 )
return CraftResource.Silver;
else if (info.Level == 10 )
return CraftResource.Platinum;
else if (info.Level == 11 )
return CraftResource.Mythril;
else if (info.Level == 12 )
return CraftResource.Obsidian;
else if (info.Level == 13 )
return CraftResource.Jade;
else if (info.Level == 14 )
return CraftResource.Moonstone;
else if (info.Level == 15 )
return CraftResource.Sunstone;
else if (info.Level == 16 )
return CraftResource.Bloodstone;
else if (info.Level == 17 )
return CraftResource.Regularwood;
else if (info.Level == 18 )
return CraftResource.Pine;
else if (info.Level == 19 )
return CraftResource.Cedar;
else if (info.Level == 20 )
return CraftResource.Cherry;
else if (info.Level == 21 )
return CraftResource.Mahogany;
else if (info.Level == 22 )
return CraftResource.Oak;
else if (info.Level == 23 )
return CraftResource.Ash;
else if (info.Level == 24 )
return CraftResource.Yew;
else if (info.Level == 25 )
return CraftResource.Heartwood;
else if (info.Level == 26 )
return CraftResource.Bloodwood;
else if (info.Level == 27 )
return CraftResource.Frostwood;
return CraftResource.None;
}
/// <summary>
/// Returns the <see cref="CraftResource"/> value which represents '<paramref name="info"/>', using '<paramref name="material"/>' to help resolve leather OreInfo instances.
/// </summary>
public static CraftResource GetFromOreInfo( OreInfo info, ArmorMaterialType material )
{
if ( material == ArmorMaterialType.Studded || material == ArmorMaterialType.Leather || material == ArmorMaterialType.Spined ||
material == ArmorMaterialType.Horned || material == ArmorMaterialType.Barbed || material == ArmorMaterialType.DragonL || material == ArmorMaterialType.Daemon )
{
if ( info.Level == 0 )
return CraftResource.RegularLeather;
else if ( info.Level == 1 )
return CraftResource.SpinedLeather;
else if ( info.Level == 2 )
return CraftResource.HornedLeather;
else if ( info.Level == 3 )
return CraftResource.BarbedLeather;
else if ( info.Level == 4 )
return CraftResource.DragonLeather;
else if ( info.Level == 5 )
return CraftResource.DaemonLeather;
return CraftResource.None;
}
return GetFromOreInfo( info );
}
}
// NOTE: This class is only for compatability with very old RunUO versions.
// No changes to it should be required for custom resources.
public class OreInfo
{
public static readonly OreInfo Iron = new OreInfo( 0, 0x000, "Iron" );
public static readonly OreInfo DullCopper = new OreInfo( 1, 0x973, "Dull Copper" );
public static readonly OreInfo ShadowIron = new OreInfo( 2, 0x966, "Shadow Iron" );
public static readonly OreInfo Copper = new OreInfo( 3, 0x96D, "Copper" );
public static readonly OreInfo Bronze = new OreInfo( 4, 0x972, "Bronze" );
public static readonly OreInfo Gold = new OreInfo( 5, 0x8A5, "Gold" );
public static readonly OreInfo Agapite = new OreInfo( 6, 0x979, "Agapite" );
public static readonly OreInfo Verite = new OreInfo( 7, 0x89F, "Verite" );
public static readonly OreInfo Valorite = new OreInfo( 8, 0x8AB, "Valorite" );
public static readonly OreInfo Silver = new OreInfo( 9, 0x47e, "Silver" );
public static readonly OreInfo Platinum = new OreInfo( 10, 0x494, "Platinum");
public static readonly OreInfo Mythril = new OreInfo( 11, 0x486, "Mythril");
public static readonly OreInfo Obsidian = new OreInfo( 12, 0x3C7, "Obsidian");
public static readonly OreInfo Jade = new OreInfo( 13, 0x48C, "Jade");
public static readonly OreInfo Moonstone = new OreInfo( 14, 0x481, "Moonstone");
public static readonly OreInfo Sunstone = new OreInfo( 15, 0x550, "Sunstone");
public static readonly OreInfo Bloodstone = new OreInfo( 16, 0x485, "Bloodstone");
public static readonly OreInfo Regularwood = new OreInfo( 17, 0x000, "Regular");
public static readonly OreInfo Pine = new OreInfo( 18, 2108, "Pine");
public static readonly OreInfo Cedar = new OreInfo( 19, 2108, "Cedar" );
public static readonly OreInfo Cherry = new OreInfo( 20, 1747, "Cherry" );
public static readonly OreInfo Mahogany = new OreInfo( 21, 2418, "Mahogany" );
public static readonly OreInfo Oak = new OreInfo( 22, 1190, "Oak" );
public static readonly OreInfo Ash = new OreInfo( 23, 1191, "Ash" );
public static readonly OreInfo Yew = new OreInfo( 24, 1192, "Yew" );
public static readonly OreInfo Heartwood = new OreInfo( 25, 1193, "Heartwood" );
public static readonly OreInfo Bloodwood = new OreInfo( 26, 1194, "Bloodwood" );
public static readonly OreInfo Frostwood = new OreInfo( 27, 1195, "Frostwood" );
private int m_Level;
private int m_Hue;
private string m_Name;
public OreInfo( int level, int hue, string name )
{
m_Level = level;
m_Hue = hue;
m_Name = name;
}
public int Level
{
get
{
return m_Level;
}
}
public int Hue
{
get
{
return m_Hue;
}
}
public string Name
{
get
{
return m_Name;
}
}
}
}
|
|
|
|
|
|
#10 (permalink) |
|
Forum Novice
Join Date: Jul 2003
Location: NY
Age: 38
Posts: 963
|
I had actually thought about adding some of that stuff in for crafting the elven armor. But I had not had a chance to even try to test it out at all. Could you give me your server info so I can see what you have going on in game.
Also there are a few things I noticed that don't really look right. Like you have this: Code:
public int WeaponDamage{ get{ return m_WeaponDamage; } set{ m_WeaponDamage = value; } }
Code:
platinum.WeaponWeaponDamage = 15;
__________________
![]() Your fate is sealed in the end of Time..... |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|