VERSION=0.54

// 23.09.2001, MoNK: fix id checking in @DClick on ingots
// 14.07.2001, MoNK: VALUE correction
// 14.05.2001, MoNK: disable smithing with maces any sort except smith's hammer and sledgehammer
// 26.04.2001, MoNK: Crystal ingtos looks like Serpent's Scale and crystal ore harvest again :)

[DEFNAME COLOR_ORE]
i_ingot_ironSW		01bf2
i_ingot_copperSW		01be6
i_ingot_silverSW		01bf8
i_ingot_goldSW		01bec
color_o_iron		0    //option: 0763
color_o_bronze		06d6
color_o_gold		084d //option: 084d 045e
color_o_copper		0641 //option: 060c
color_o_oldcopper		0590
color_o_dullcopper		060a
color_o_silver		0482 //option: 0
color_o_shadow		0770
color_o_bloodrock		04c2
color_o_blackrock		0455
color_o_mytheril		048d //or 0528 or 52d
color_o_rose		0665
color_o_verite		07d1
color_o_agapite		0400
color_o_rusty		0750
color_o_valorite		0515
color_o_rodonite		048c
color_o_neon		0491
color_o_maverick		0496
color_o_bluestar		0489
color_o_adamantine	048b
color_o_orion		048a
color_o_zodiac		0497
color_o_ice		0494
color_o_dwarf		0488
color_o_crystal		0487
color_o_magma		0486
color_o_obsidian		0485

color_o_titan		TITAN_ORE_COLOR
color_o_dragon		DRAGON_ORE_COLOR

color_i_titan		TITAN_INGOT_COLOR
color_i_dragon		DRAGON_INGOT_COLOR

//************** Ores ***************

[ITEMDEF 019b7]
DEFNAME=i_ore_iron
NAME=Iron Ore
TYPE=T_ORE
SKILLMAKE=MINING 0.0
TDATA1=i_ingot_ironSW
WEIGHT=1.2
VALUE={5 6}
DUPELIST=019b8,019b9,019ba

CATEGORY=Items by Professions
SUBSECTION=Blacksmiths
DESCRIPTION=Ore (Small Pile)

On=@Click
	if <color>==0160	// gold ore color on 52
		id=i_ore_golden
		return 0
	endif
	if <color>==color_o_silver
		id=i_ore_silver
		return 0
	endif
	if <color>==color_o_shadow
		id=i_ore_shadow
		return 0
	endif
	if <color>==color_o_bloodrock
		id=i_ore_bloodrock
		return 0
	endif
	if <color>==color_o_mytheril
		id=i_ore_mytheril
		return 0
	endif
	if <color>==color_o_rose
		id=i_ore_rose
		return 0
	endif
	if <color>==color_o_verite
		id=i_ore_verite
		return 0
	endif
	if <color>==color_o_agapite
		id=i_ore_agapite
		return 0
	endif
	if <color>==color_o_valorite
		id=i_ore_valorite
		return 0
	endif
	if <color>==color_o_rodonite
		id=i_ore_rodonite
		return 0
	endif
	if <color>==color_o_neon
		id=i_ore_neon
		return 0
	endif
	if <color>==color_o_maverick
		id=i_ore_maverick
		return 0
	endif
	if <color>==color_o_bluestar
		id=i_ore_bluestar
		return 0
	endif
	if <color>==color_o_adamantine
		id=i_ore_adamantine
		return 0
	endif
	if <color>==color_o_orion
		id=i_ore_orion
		return 0
	endif
	if <color>==color_o_zodiac
		id=i_ore_zodiac
		return 0
	endif
	if <color>==color_o_ice
		id=i_ore_ice
		return 0
	endif
	if <color>==color_o_dwarf
		id=i_ore_dwarf
		return 0
	endif
	if <color>==color_o_crystal
		id=i_ore_crystal
		return 0
	endif
	if <color>==color_o_magma
		id=i_ore_magma
		return 0
	endif
	if <color>==color_o_obsidian
		id=i_ore_obsidian
		return 0
	endif
	if <color>==color_o_titan
		id=i_ore_titan
		return 0
	endif
	if <color>==color_o_dragon
		id=i_ore_dragon
		return 0
	endif

On=@DClick
	if <color>==color_o_gold
		id=i_ore_golden
		return 0
	endif
	if <color>==color_o_silver
		id=i_ore_silver
		return 0
	endif
	if <color>==color_o_shadow
		id=i_ore_shadow
		return 0
	endif
	if <color>==color_o_bloodrock
		id=i_ore_bloodrock
		return 0
	endif
	if <color>==color_o_mytheril
		id=i_ore_mytheril
		return 0
	endif
	if <color>==color_o_rose
		id=i_ore_rose
		return 0
	endif
	if <color>==color_o_verite
		id=i_ore_verite
		return 0
	endif
	if <color>==color_o_agapite
		id=i_ore_agapite
		return 0
	endif
	if <color>==color_o_valorite
		id=i_ore_valorite
		return 0
	endif
	if <color>==color_o_rodonite
		id=i_ore_rodonite
		return 0
	endif
	if <color>==color_o_neon
		id=i_ore_neon
		return 0
	endif
	if <color>==color_o_maverick
		id=i_ore_maverick
		return 0
	endif
	if <color>==color_o_bluestar
		id=i_ore_bluestar
		return 0
	endif
	if <color>==color_o_adamantine
		id=i_ore_adamantine
		return 0
	endif
	if <color>==color_o_orion
		id=i_ore_orion
		return 0
	endif
	if <color>==color_o_zodiac
		id=i_ore_zodiac
		return 0
	endif
	if <color>==color_o_ice
		id=i_ore_ice
		return 0
	endif
	if <color>==color_o_dwarf
		id=i_ore_dwarf
		return 0
	endif
	if <color>==color_o_crystal
		id=i_ore_crystal
		return 0
	endif
	if <color>==color_o_magma
		id=i_ore_magma
		return 0
	endif
	if <color>==color_o_obsidian
		id=i_ore_obsidian
		return 0
	endif
	if <color>==color_o_titan
		id=i_ore_titan
		return 0
	endif
	if <color>==color_o_dragon
		id=i_ore_dragon
		return 0
	endif


[ITEMDEF i_ore_rose]
ID=i_ore_iron
NAME=Rose Ore
SKILLMAKE=MINING 60.0
TDATA1=i_ingot_rose
VALUE=25
WEIGHT=1.2

ON=@Create
	COLOR=color_o_rose

On=@DClick
	if <src.mining><60.0
		src.message You try to smelt <name> but your skill in mining is too low.
		return 1
	endif

[ITEMDEF i_ore_shadow]
ID=i_ore_iron
NAME=Shadow Ore
SKILLMAKE=MINING 65.0
TDATA1=i_ingot_shadow
VALUE=30
WEIGHT=0.8

ON=@Create
	COLOR=color_o_shadow

On=@DClick
	if <src.mining><65.0
		src.message You try to smelt <name> but your skill in mining is too low.
		return 1
	endif

[ITEMDEF i_ore_rodonite]
ID=i_ore_iron
NAME=rodonite Ore
SKILLMAKE=MINING 70.0
TDATA1=i_ingot_rodonite
VALUE=7
WEIGHT=2.0

ON=@Create
	COLOR=color_o_rodonite

[ITEMDEF i_ore_neon]
ID=i_ore_iron
NAME=Neon Ore
SKILLMAKE=MINING 75.0
TDATA1=i_ingot_neon
VALUE=15
WEIGHT=2.0

ON=@Create
	COLOR=color_o_neon

[ITEMDEF i_ore_maverick]
ID=i_ore_iron
NAME=maverick Ore
SKILLMAKE=MINING 80.0
TDATA1=i_ingot_maverick
VALUE=10
WEIGHT=2.0

ON=@Create
	COLOR=color_o_maverick

[ITEMDEF i_ore_golden]
ID=i_ore_iron
NAME=Golden Ore
SKILLMAKE=MINING 82.5
TDATA1=i_ingot_newgold
VALUE=35
WEIGHT=1.8

ON=@Create
	COLOR=color_o_gold

On=@DClick
	if <src.mining><82.5
		src.message You try to smelt <name> but your skill in mining is too low.
		return 1
	endif

[ITEMDEF i_ore_bluestar]
ID=i_ore_iron
NAME=Blue Star Ore
SKILLMAKE=MINING 85.0
TDATA1=i_ingot_bluestar
VALUE=15
WEIGHT=2.0

ON=@Create
	COLOR=color_o_bluestar

[ITEMDEF i_ore_adamantine]
ID=i_ore_iron
NAME=Adamantine Ore
SKILLMAKE=MINING 87.5
TDATA1=i_ingot_adamantine
VALUE=15
WEIGHT=2.0

ON=@Create
	COLOR=color_o_adamantine

[ITEMDEF i_ore_orion]
ID=i_ore_iron
NAME=Orion Ore
SKILLMAKE=MINING 90.0
TDATA1=i_ingot_orion
VALUE=100
WEIGHT=1.4

ON=@Create
	COLOR=color_o_orion

On=@DClick
	if <src.mining><90.0
		src.message You try to smelt <name> but your skill in mining is too low.
		return 1
	endif

[ITEMDEF i_ore_agapite]
ID=i_ore_iron
NAME=Agapite Ore
SKILLMAKE=MINING 90.0
TDATA1=i_ingot_agapite
VALUE=150
WEIGHT=1.3

ON=@Create
	COLOR=color_o_agapite

On=@DClick
	if <src.mining><90.0
		src.message You try to smelt <name> but your skill in mining is too low.
		return 1
	endif

[ITEMDEF i_ore_zodiac]
ID=i_ore_iron
NAME=Zodiac Ore
SKILLMAKE=MINING 91.0
TDATA1=i_ingot_zodiac
VALUE=15
WEIGHT=2.0

ON=@Create
	COLOR=color_o_zodiac

[ITEMDEF i_ore_verite]
ID=i_ore_iron
NAME=Verite Ore
SKILLMAKE=MINING 92.0
TDATA1=i_ingot_verite
VALUE=200
WEIGHT=1.4

ON=@Create
	COLOR=color_o_verite

On=@DClick
	if <src.mining><92.0
		src.message You try to smelt <name> but your skill in mining is too low.
		return 1
	endif

[ITEMDEF i_ore_ice]
ID=i_ore_iron
NAME=Ice Ore
SKILLMAKE=MINING 92.5
TDATA1=i_ingot_ice
VALUE=15
WEIGHT=2.0

ON=@Create
	COLOR=color_o_ice

[ITEMDEF i_ore_bloodrock]
ID=i_ore_iron
NAME=Bloodrock Ore
SKILLMAKE=MINING 93.0
TDATA1=i_ingot_bloodrock
VALUE=250
WEIGHT=1.6

ON=@Create
	COLOR=color_o_bloodrock

On=@DClick
	return 1

	if <src.mining><93.0
		src.message You try to smelt <name> but your skill in mining is too low.
		return 1
	endif

[ITEMDEF i_ore_dwarf]
ID=i_ore_iron
NAME=Dwarf Ore
SKILLMAKE=MINING 93.5
TDATA1=i_ingot_dwarf
VALUE=250
WEIGHT=1.6

ON=@Create
	COLOR=color_o_dwarf

On=@DClick
	if <src.mining><93.5
		src.message You try to smelt <name> but your skill in mining is too low.
		return 1
	endif

[ITEMDEF i_ore_valorite]
ID=i_ore_iron
NAME=Valorite Ore
SKILLMAKE=MINING 94.0
TDATA1=i_ingot_valorite
VALUE=250
WEIGHT=1.6

ON=@Create
	COLOR=color_o_valorite

On=@DClick
	if <src.mining><94.0
		src.message You try to smelt <name> but your skill in mining is too low.
		return 1
	endif

[ITEMDEF i_ore_crystal]
ID=i_ore_iron
NAME=Crystal Ore
SKILLMAKE=MINING 94.5
TDATA1=i_ingot_crystal
VALUE=250
WEIGHT=1.6

ON=@Create
	COLOR=color_o_crystal

On=@DClick
	if <src.mining><94.5
		src.message You try to smelt <name> but your skill in mining is too low.
		return 1
	endif

[ITEMDEF i_ore_silver]
ID=i_ore_iron
NAME=Silver Ore
SKILLMAKE=MINING 95.0
TDATA1=i_ingot_newsilver
VALUE=600
WEIGHT=1.6

ON=@Create
	COLOR=color_o_silver

On=@DClick
	if <src.mining><95.0
		src.message You try to smelt <name> but your skill in mining is too low.
		return 1
	endif

[ITEMDEF i_ore_magma]
ID=i_ore_iron
NAME=Magma Ore
SKILLMAKE=MINING 105.0
TDATA1=i_ingot_magma
VALUE=1000
WEIGHT=1.7

ON=@Create
	COLOR=color_o_magma

On=@DClick
	if <src.mining><105.0
		src.message You try to smelt <name> but your skill in mining is too low.
		return 1
	endif

[ITEMDEF i_ore_obsidian]
ID=i_ore_iron
NAME=Obsidian Ore
SKILLMAKE=MINING 105.0
TDATA1=i_ingot_obsidian
VALUE=1000
WEIGHT=1.7

ON=@Create
	COLOR=color_o_obsidian

On=@DClick
	if <src.mining><105.0
		src.message You try to smelt <name> but your skill in mining is too low.
		return 1
	endif

[ITEMDEF i_ore_mytheril]
ID=i_ore_iron
NAME=Mytheril Ore
SKILLMAKE=MINING 110.0
TDATA1=i_ingot_mytheril
VALUE=1200
WEIGHT=1.1

ON=@Create
	COLOR=color_o_mytheril

On=@DClick
	if <src.mining><110.0
		src.message You try to smelt <name> but your skill in mining is too low.
		return 1
	endif

[ITEMDEF i_ore_bronze]
ID=i_ore_iron
NAME=Bronze Ore
SKILLMAKE=MINING 85.0
TDATA1=i_ingot_bronze
VALUE=15
WEIGHT=1.5

ON=@Create
	COLOR=color_o_bronze

On=@DClick
	if <src.mining><85.0
		src.message You try to smelt <name> but your skill in mining is too low.
		return 1
	endif

[ITEMDEF 06780]
DEFNAME=i_ore_titan
ID=i_ore_iron
NAME=Titan Ore
SKILLMAKE=MINING 115.0
TDATA1=i_ingot_titan
VALUE=2000
WEIGHT=1.3

ON=@Create
	COLOR=color_i_titan

On=@DClick
	if !(<src.plot1>&plotmask_dwarf)
		src.message Only dwarfs can smelt <name>.
		return 1
	endif

	if <src.mining><115.0
		src.message You try to smelt <name> but your skill in mining is too low.
		return 1
	endif

[ITEMDEF 06782]
DEFNAME=i_ore_dragon
ID=i_ore_iron
NAME=Dragon Ore
SKILLMAKE=MINING 115.0
TDATA1=i_ingot_dragon
VALUE=2000
WEIGHT=1.4

ON=@Create
	COLOR=color_i_dragon

On=@DClick
	if !(<src.plot1>&plotmask_dwarf)
		src.message Only dwarfs can smelt <name>.
		return 1
	endif

	if <src.mining><115.0
		src.message You try to smelt <name> but your skill in mining is too low.
		return 1
	endif

[ITEMDEF i_ore_copper]
ID=i_ore_iron
NAME=Copper Ore
SKILLMAKE=MINING 65.0
TDATA1=i_ingot_copperSW
VALUE=35
WEIGHT=1.6

On=@Create
	color=color_o_copper

On=@DClick
	if <src.mining><65.0
		src.message You try to smelt <name> but your skill in mining is too low.
		return 1
	endif

//************** Ingots ***************

[ITEMDEF 01bef]
DEFNAME=i_ingot_iron
DUPELIST=01bf0,01bf1,01bf2,01bf3,01bf4
TYPE=T_INGOT
TDATA1=20.0
TDATA2=50.0
WEIGHT=1.0
VALUE={9 11}

RESOURCES=i_ore_iron
SKILLMAKE=20.0 MINING

CATEGORY=Items by Professions
SUBSECTION=Blacksmiths
DESCRIPTION=Iron Ingot

On=@DClick
	if <color>==035	//color_o_gold
		id=i_ingot_newgold
		color=0
	endif
	if <color>==color_o_silver
		id=i_ingot_newsilver
		color=0
	endif
	if <color>==color_o_shadow
		id=i_ingot_shadow
	endif
	if <color>==color_o_bloodrock
		id=i_ingot_bloodrock
	endif
	if <color>==color_o_mytheril
		id=i_ingot_mytheril
	endif
	if <color>==color_o_rose
		id=i_ingot_rose
	endif
	if <color>==color_o_verite
		id=i_ingot_verite
	endif
	if <color>==color_o_agapite
		id=i_ingot_agapite
	endif
	if <color>==color_o_valorite
		id=i_ingot_valorite
	endif
	if <color>==color_o_rodonite
		id=i_ingot_rodonite
	endif
	if <color>==color_o_neon
		id=i_ingot_neon
	endif
	if <color>==color_o_maverick
		id=i_ingot_maverick
	endif
	if <color>==color_o_bluestar
		id=i_ingot_bluestar
	endif
	if <color>==color_o_adamantine
		id=i_ingot_adamantine
	endif
	if <color>==color_o_orion
		id=i_ingot_orion
	endif
	if <color>==color_o_zodiac
		id=i_ingot_zodiac
	endif
	if <color>==color_o_ice
		id=i_ingot_ice
	endif
	if <color>==color_o_dwarf
		id=i_ingot_dwarf
	endif
	if <color>==color_o_crystal
		id=i_ingot_crystal
	endif
	if <color>==color_o_magma
		id=i_ingot_magma
	endif
	if <color>==color_o_obsidian
		id=i_ingot_obsidian
	endif
	if <color>==color_i_titan
		id=i_ingot_titan
	endif
	if <color>==color_i_dragon
		id=i_ingot_dragon
	endif

	// check for smith's hammer or sledgehammer in right hand
	if (<src.findlayer(layer_hand1).id> == 013e3) || (<src.findlayer(layer_hand1).id> == 0fb4)
		return 0
	else
		src.sysmessage You must weild a smith hammer of some sort.
		return 1
	endif

On=@Click
	if <color>==035	//color_o_gold
		id=i_ingot_newgold
		color=0
		return 0
	endif
	if <color>==color_o_silver
		id=i_ingot_newsilver
		color=0
		return 0
	endif
	if <color>==color_o_shadow
		id=i_ingot_shadow
		return 0
	endif
	if <color>==color_o_bloodrock
		id=i_ingot_bloodrock
		return 0
	endif
	if <color>==color_o_mytheril
		id=i_ingot_mytheril
		return 0
	endif
	if <color>==color_o_rose
		id=i_ingot_rose
		return 0
	endif
	if <color>==color_o_verite
		id=i_ingot_verite
		return 0
	endif
	if <color>==color_o_agapite
		id=i_ingot_agapite
		return 0
	endif
	if <color>==color_o_valorite
		id=i_ingot_valorite
		return 0
	endif
	if <color>==color_o_rodonite
		id=i_ingot_rodonite
		return 0
	endif
	if <color>==color_o_neon
		id=i_ingot_neon
		return 0
	endif
	if <color>==color_o_maverick
		id=i_ingot_maverick
		return 0
	endif
	if <color>==color_o_bluestar
		id=i_ingot_bluestar
		return 0
	endif
	if <color>==color_o_adamantine
		id=i_ingot_adamantine
		return 0
	endif
	if <color>==color_o_orion
		id=i_ingot_orion
		return 0
	endif
	if <color>==color_o_zodiac
		id=i_ingot_zodiac
		return 0
	endif
	if <color>==color_o_ice
		id=i_ingot_ice
		return 0
	endif
	if <color>==color_o_dwarf
		id=i_ingot_dwarf
		return 0
	endif
	if <color>==color_o_crystal
		id=i_ingot_crystal
		return 0
	endif
	if <color>==color_o_magma
		id=i_ingot_magma
		return 0
	endif
	if <color>==color_o_obsidian
		id=i_ingot_obsidian
		return 0
	endif
	if <color>==color_i_titan
		id=i_ingot_titan
		return 0
	endif
	if <color>==color_i_dragon
		id=i_ingot_dragon
		return 0
	endif

[ITEMDEF 01be3]
DEFNAME=i_ingot_copper
TYPE=T_INGOT
RESOURCES=i_ore_copper
SKILLMAKE=MINING 75.0
TDATA1=70.0
TDATA2=100.0
WEIGHT=1.3
DUPELIST=01be4,01be5,01be6,01be7,01be8

CATEGORY=Items by Professions
SUBSECTION=Blacksmiths
DESCRIPTION=Copper Ingot

On=@DClick
	// check for smith's hammer or sledgehammer in right hand
	if (<src.findlayer(layer_hand1).id> == 013e3) || (<src.findlayer(layer_hand1).id> == 0fb4)
		return 0
	else
		src.sysmessage You must weild a smith hammer of some sort.
		return 1
	endif

[ITEMDEF 01be9]
DEFNAME=i_ingot_gold
TYPE=T_INGOT
SKILLMAKE=MINING 85.0
TDATA1=80.0
TDATA2=100.0
RESOURCES=i_ore_golden
WEIGHT=1.5
DUPELIST=01bea,01beb,01bec,01bed,01bee

CATEGORY=Items by Professions
SUBSECTION=Blacksmiths
DESCRIPTION=Gold Ingot

On=@DClick
	// check for smith's hammer or sledgehammer in right hand
	if (<src.findlayer(layer_hand1).id> == 013e3) || (<src.findlayer(layer_hand1).id> == 0fb4)
		return 0
	else
		src.sysmessage You must weild a smith hammer of some sort.
		return 1
	endif

[ITEMDEF 01bf5]
DEFNAME=i_ingot_silver
TYPE=T_INGOT
SKILLMAKE=MINING 95.0
TDATA1=90.0
TDATA2=100.0
RESOURCES=i_ore_silver
WEIGHT=1.3
DUPELIST=01bf6,01bf7,01bf8,01bf9,01bfa

CATEGORY=Items by Professions
SUBSECTION=Blacksmiths
DESCRIPTION=Silver Ingot

On=@DClick
	// check for smith's hammer or sledgehammer in right hand
	if (<src.findlayer(layer_hand1).id> == 013e3) || (<src.findlayer(layer_hand1).id> == 0fb4)
		return 0
	else
		src.sysmessage You must weild a smith hammer of some sort.
		return 1
	endif

[ITEMDEF 04541]
DEFNAME=i_ingot_shadow
NAME=Shadow Ingot
ID=i_ingot_ironSW
SKILLMAKE=MINING 65.0
TDATA1=60.0
TDATA2=70.0
RESOURCES=i_ore_shadow
WEIGHT=0.7

CATEGORY=Items by Professions
SUBSECTION=Blacksmiths
DESCRIPTION=Shadow Ingot

ON=@Create
	COLOR=color_o_shadow

On=@DClick
	// check for smith's hammer or sledgehammer in right hand
	if (<src.findlayer(layer_hand1).id> == 013e3) || (<src.findlayer(layer_hand1).id> == 0fb4)
		return 0
	else
		src.sysmessage You must weild a smith hammer of some sort.
		return 1
	endif

[ITEMDEF 04542]
DEFNAME=i_ingot_agapite
ID=i_ingot_ironSW
NAME=Agapite
SKILLMAKE=MINING 90.0
TDATA1=85.0
TDATA2=95.0
RESOURCES=i_ore_agapite
WEIGHT=1.1

CATEGORY=Items by Professions
SUBSECTION=Blacksmiths
DESCRIPTION=Agapite Ingot

ON=@Create
	COLOR=color_o_agapite

On=@DClick
	// check for smith's hammer or sledgehammer in right hand
	if (<src.findlayer(layer_hand1).id> == 013e3) || (<src.findlayer(layer_hand1).id> == 0fb4)
		return 0
	else
		src.sysmessage You must weild a smith hammer of some sort.
		return 1
	endif

[ITEMDEF 04543]
DEFNAME=i_ingot_verite
NAME=Verite Ingot
ID=i_ingot_ironSW
RESOURCES=i_ore_verite
SKILLMAKE=MINING 92.0
TDATA1=87.0
TDATA2=97.0
WEIGHT=1.2

CATEGORY=Items by Professions
SUBSECTION=Blacksmiths
DESCRIPTION=Verite Ingot

ON=@Create
	COLOR=color_o_verite

On=@DClick
	// check for smith's hammer or sledgehammer in right hand
	if (<src.findlayer(layer_hand1).id> == 013e3) || (<src.findlayer(layer_hand1).id> == 0fb4)
		return 0
	else
		src.sysmessage You must weild a smith hammer of some sort.
		return 1
	endif

[ITEMDEF 04544]
DEFNAME=i_ingot_rose
ID=i_ingot_ironSW
NAME=Rose Ingot
RESOURCES=i_ore_rose
SKILLMAKE=MINING 60.0
TDATA1=55.0
TDATA2=65.0
WEIGHT=1.0

CATEGORY=Items by Professions
SUBSECTION=Blacksmiths
DESCRIPTION=Rose Ingot

ON=@Create
	COLOR=color_o_rose

On=@DClick
	// check for smith's hammer or sledgehammer in right hand
	if (<src.findlayer(layer_hand1).id> == 013e3) || (<src.findlayer(layer_hand1).id> == 0fb4)
		return 0
	else
		src.sysmessage You must weild a smith hammer of some sort.
		return 1
	endif

[ITEMDEF 04545]
DEFNAME=i_ingot_mytheril
ID=i_ingot_ironSW
NAME=Mytheril Ingot
RESOURCES=i_ore_mytheril
SKILLMAKE=MINING 110.0
TDATA1=110.0
TDATA2=110.0
WEIGHT=0.9
VALUE=2000

CATEGORY=Items by Professions
SUBSECTION=Blacksmiths
DESCRIPTION=Mytheril Ingot

ON=@Create
	COLOR=color_o_mytheril

On=@DClick
	// check for smith's hammer or sledgehammer in right hand
	if (<src.findlayer(layer_hand1).id> == 013e3) || (<src.findlayer(layer_hand1).id> == 0fb4)
		return 0
	else
		src.sysmessage You must weild a smith hammer of some sort.
		return 1
	endif

[ITEMDEF 04546]
DEFNAME=i_ingot_obsidian
ID=i_ingot_ironSW
NAME=Obsidian Ingot
RESOURCES=i_ore_obsidian
SKILLMAKE=MINING 105.0
TDATA1=105.0
TDATA2=105.0
WEIGHT=1.4

CATEGORY=Items by Professions
SUBSECTION=Blacksmiths
DESCRIPTION=Obsidian Ingot

ON=@Create
	COLOR=color_o_obsidian

On=@DClick
	// check for smith's hammer or sledgehammer in right hand
	if (<src.findlayer(layer_hand1).id> == 013e3) || (<src.findlayer(layer_hand1).id> == 0fb4)
		return 0
	else
		src.sysmessage You must weild a smith hammer of some sort.
		return 1
	endif

[ITEMDEF 04547]
DEFNAME=i_ingot_bloodrock
ID=i_ingot_ironSW
NAME=Blood Rock Ingot
RESOURCES=i_ore_bloodrock
SKILLMAKE=MINING 93.0
TDATA1=88.0
TDATA2=98.0
WEIGHT=1.3

CATEGORY=Items by Professions
SUBSECTION=Blacksmiths
DESCRIPTION=Blood Rock Ingot

ON=@Create
	COLOR=color_o_bloodrock

On=@DClick
	// check for smith's hammer or sledgehammer in right hand
	if (<src.findlayer(layer_hand1).id> == 013e3) || (<src.findlayer(layer_hand1).id> == 0fb4)
		return 0
	else
		src.sysmessage You must weild a smith hammer of some sort.
		return 1
	endif

[ITEMDEF 04548]
DEFNAME=i_ingot_rodonite
NAME=rodonite Ingot
ID=i_ingot_ironSW
RESOURCES=i_ore_rodonite
SKILLMAKE=MINING 70.0
TDATA1=65.0
TDATA2=75.0
WEIGHT=1.0

CATEGORY=Items by Professions
SUBSECTION=Blacksmiths
DESCRIPTION=rodonite Ingot

ON=@Create
	COLOR=color_o_rodonite

On=@DClick
	// check for smith's hammer or sledgehammer in right hand
	if (<src.findlayer(layer_hand1).id> == 013e3) || (<src.findlayer(layer_hand1).id> == 0fb4)
		return 0
	else
		src.sysmessage You must weild a smith hammer of some sort.
		return 1
	endif

[ITEMDEF 04549]
DEFNAME=i_ingot_neon
NAME=Neon Ingot
ID=i_ingot_ironSW
RESOURCES=i_ore_neon
SKILLMAKE=MINING 75.0
TDATA1=70.0
TDATA2=80.0
WEIGHT=1.0

CATEGORY=Items by Professions
SUBSECTION=Blacksmiths
DESCRIPTION=Neon Ingot

ON=@Create
	COLOR=color_o_neon

On=@DClick
	// check for smith's hammer or sledgehammer in right hand
	if (<src.findlayer(layer_hand1).id> == 013e3) || (<src.findlayer(layer_hand1).id> == 0fb4)
		return 0
	else
		src.sysmessage You must weild a smith hammer of some sort.
		return 1
	endif

[ITEMDEF 0454a]
DEFNAME=i_ingot_valorite
NAME=Valorite Ingot
ID=i_ingot_ironSW
RESOURCES=i_ore_valorite
SKILLMAKE=MINING 99.0
TDATA1=90.0
TDATA2=120.0
WEIGHT=1.3

CATEGORY=Items by Professions
SUBSECTION=Blacksmiths
DESCRIPTION=Valorite Ingot

ON=@Create
	COLOR=color_o_valorite

On=@DClick
	// check for smith's hammer or sledgehammer in right hand
	if (<src.findlayer(layer_hand1).id> == 013e3) || (<src.findlayer(layer_hand1).id> == 0fb4)
		return 0
	else
		src.sysmessage You must weild a smith hammer of some sort.
		return 1
	endif

[ITEMDEF 0454b]
DEFNAME=i_ingot_maverick
NAME=maverick Ingot
ID=i_ingot_ironSW
RESOURCES=i_ore_maverick
SKILLMAKE=MINING 80.0
TDATA1=75.0
TDATA2=85.0
WEIGHT=1.0

CATEGORY=Items by Professions
SUBSECTION=Blacksmiths
DESCRIPTION=maverick Ingot

ON=@Create
	COLOR=color_o_maverick

On=@DClick
	// check for smith's hammer or sledgehammer in right hand
	if (<src.findlayer(layer_hand1).id> == 013e3) || (<src.findlayer(layer_hand1).id> == 0fb4)
		return 0
	else
		src.sysmessage You must weild a smith hammer of some sort.
		return 1
	endif

[ITEMDEF 0454c]
DEFNAME=i_ingot_adamantine
NAME=Adamantine Ingot
ID=i_ingot_ironSW
RESOURCES=i_ore_adamantine
SKILLMAKE=MINING 87.5
TDATA1=82.0
TDATA2=92.0
WEIGHT=1.0

CATEGORY=Items by Professions
SUBSECTION=Blacksmiths
DESCRIPTION=Adamantine Ingot

ON=@Create
	COLOR=color_o_adamantine

On=@DClick
	// check for smith's hammer or sledgehammer in right hand
	if (<src.findlayer(layer_hand1).id> == 013e3) || (<src.findlayer(layer_hand1).id> == 0fb4)
		return 0
	else
		src.sysmessage You must weild a smith hammer of some sort.
		return 1
	endif

[ITEMDEF 06673]
DEFNAME=i_ingot_newgold
NAME=Golden Ingot
ID=i_ingot_goldSW
RESOURCES=i_ore_golden
SKILLMAKE=MINING 82.5
TDATA1=77.0
TDATA2=87.0
WEIGHT=1.5
FLIP=0

CATEGORY=Items by Professions
SUBSECTION=Blacksmiths
DESCRIPTION=New Golden Ingot

ON=@Create
	COLOR=0

On=@DClick
	// check for smith's hammer or sledgehammer in right hand
	if (<src.findlayer(layer_hand1).id> == 013e3) || (<src.findlayer(layer_hand1).id> == 0fb4)
		return 0
	else
		src.sysmessage You must weild a smith hammer of some sort.
		return 1
	endif

[ITEMDEF 06674]
DEFNAME=i_ingot_orion
NAME=Orion Ingot
ID=i_ingot_ironSW
RESOURCES=i_ore_orion
SKILLMAKE=MINING 90.0
TDATA1=85.0
TDATA2=95.0
WEIGHT=1.2

CATEGORY=Items by Professions
SUBSECTION=Blacksmiths
DESCRIPTION=Orion Ingot

ON=@Create
	COLOR=color_o_orion

On=@DClick
	// check for smith's hammer or sledgehammer in right hand
	if (<src.findlayer(layer_hand1).id> == 013e3) || (<src.findlayer(layer_hand1).id> == 0fb4)
		return 0
	else
		src.sysmessage You must weild a smith hammer of some sort.
		return 1
	endif

[ITEMDEF 06675]
DEFNAME=i_ingot_ice
NAME=Ice Ingot
ID=i_ingot_ironSW
RESOURCES=i_ore_ice
SKILLMAKE=MINING 92.5
TDATA1=87.0
TDATA2=97.0
WEIGHT=1.0

CATEGORY=Items by Professions
SUBSECTION=Blacksmiths
DESCRIPTION=Ice Ingot

ON=@Create
	COLOR=color_o_ice

On=@DClick
	// check for smith's hammer or sledgehammer in right hand
	if (<src.findlayer(layer_hand1).id> == 013e3) || (<src.findlayer(layer_hand1).id> == 0fb4)
		return 0
	else
		src.sysmessage You must weild a smith hammer of some sort.
		return 1
	endif

[ITEMDEF 06676]
DEFNAME=i_ingot_dwarf
NAME=Dwarf Ingot
ID=i_ingot_ironSW
RESOURCES=i_ore_dwarf
SKILLMAKE=MINING 93.5
TDATA1=88.0
TDATA2=98.0
WEIGHT=1.3

CATEGORY=Items by Professions
SUBSECTION=Blacksmiths
DESCRIPTION=Dwarf Ingot

ON=@Create
	COLOR=color_o_dwarf

On=@DClick
	// check for smith's hammer or sledgehammer in right hand
	if (<src.findlayer(layer_hand1).id> == 013e3) || (<src.findlayer(layer_hand1).id> == 0fb4)
		return 0
	else
		src.sysmessage You must weild a smith hammer of some sort.
		return 1
	endif

[ITEMDEF 06677]
DEFNAME=i_ingot_crystal
NAME=Crystal%s
//ID=i_ingot_ironSW
ID=i_reag_serpent_scale
TYPE=t_ingot
RESOURCES=i_ore_crystal
SKILLMAKE=MINING 94.5
TDATA1=89.0
TDATA2=99.0
WEIGHT=1.3

CATEGORY=Items by Professions
SUBSECTION=Blacksmiths
DESCRIPTION=crystal Ingot

ON=@Create
	COLOR=color_o_crystal

On=@DClick
	// check for smith's hammer or sledgehammer in right hand
	if (<src.findlayer(layer_hand1).id> == 013e3) || (<src.findlayer(layer_hand1).id> == 0fb4)
		return 0
	else
		src.sysmessage You must weild a smith hammer of some sort.
		return 1
	endif

[ITEMDEF 06678]
DEFNAME=i_ingot_newsilver
NAME=Silver Ingot
ID=i_ingot_silverSW
RESOURCES=i_ore_silver
SKILLMAKE=MINING 95.0
TDATA1=90.0
TDATA2=100.0
WEIGHT=1.3

CATEGORY=Items by Professions
SUBSECTION=Blacksmiths
DESCRIPTION=New Silver Ingot

ON=@Create
	COLOR=0

On=@DClick
	// check for smith's hammer or sledgehammer in right hand
	if (<src.findlayer(layer_hand1).id> == 013e3) || (<src.findlayer(layer_hand1).id> == 0fb4)
		return 0
	else
		src.sysmessage You must weild a smith hammer of some sort.
		return 1
	endif

[ITEMDEF 0667a]
DEFNAME=i_ingot_magma
NAME=Magma Ingot
ID=i_ingot_ironSW
RESOURCES=i_ore_magma
SKILLMAKE=MINING 105.0
TDATA1=105.0
TDATA2=105.0
WEIGHT=1.4

CATEGORY=Items by Professions
SUBSECTION=Blacksmiths
DESCRIPTION=Magma Ingot

ON=@Create
	COLOR=color_o_magma

On=@DClick
	// check for smith's hammer or sledgehammer in right hand
	if (<src.findlayer(layer_hand1).id> == 013e3) || (<src.findlayer(layer_hand1).id> == 0fb4)
		return 0
	else
		src.sysmessage You must weild a smith hammer of some sort.
		return 1
	endif

[ITEMDEF 0667b]
DEFNAME=i_ingot_bluestar
NAME=Blue Star Ingot
ID=i_ingot_ironSW
RESOURCES=i_ore_bluestar
SKILLMAKE=MINING 85.0
TDATA1=80.0
TDATA2=90.0
WEIGHT=1.0

CATEGORY=Items by Professions
SUBSECTION=Blacksmiths
DESCRIPTION=Blue Star Ingot

ON=@Create
	COLOR=color_o_bluestar

On=@DClick
	// check for smith's hammer or sledgehammer in right hand
	if (<src.findlayer(layer_hand1).id> == 013e3) || (<src.findlayer(layer_hand1).id> == 0fb4)
		return 0
	else
		src.sysmessage You must weild a smith hammer of some sort.
		return 1
	endif

[ITEMDEF 0667c]
DEFNAME=i_ingot_zodiac
NAME=Zodiac Ingot
ID=i_ingot_ironSW
RESOURCES=i_ore_zodiac
SKILLMAKE=MINING 91.0
TDATA1=86.0
TDATA2=101.0
WEIGHT=1.0

CATEGORY=Items by Professions
SUBSECTION=Blacksmiths
DESCRIPTION=Zodiac Ingot

ON=@Create
	COLOR=color_o_zodiac

On=@DClick
	// check for smith's hammer or sledgehammer in right hand
	if (<src.findlayer(layer_hand1).id> == 013e3) || (<src.findlayer(layer_hand1).id> == 0fb4)
		return 0
	else
		src.sysmessage You must weild a smith hammer of some sort.
		return 1
	endif

[ITEMDEF i_ingot_bronze]
DEFNAME=i_ingot_bronze
NAME=Bronze Ingot
ID=i_ingot_ironSW
RESOURCES=i_ore_bronze
SKILLMAKE=MINING 85.0
TDATA1=80.0
TDATA2=90.0
WEIGHT=1.3

CATEGORY=Items by Professions
SUBSECTION=Blacksmiths
DESCRIPTION=Bronze Ingot

ON=@Create
	COLOR=color_o_bronze

On=@DClick
	// check for smith's hammer or sledgehammer in right hand
	if (<src.findlayer(layer_hand1).id> == 013e3) || (<src.findlayer(layer_hand1).id> == 0fb4)
		return 0
	else
		src.sysmessage You must weild a smith hammer of some sort.
		return 1
	endif

[ITEMDEF 06781]
DEFNAME=i_ingot_titan
NAME=Titan Ingot
ID=i_ingot_ironSW
RESOURCES=i_ore_titan
SKILLMAKE=MINING 115.0
WEIGHT=1.1
TDATA1=115.0
TDATA2=115.0

CATEGORY=Items by Professions
SUBSECTION=Blacksmiths
DESCRIPTION=Titan Ingot

ON=@Create
	COLOR=color_o_titan

On=@DClick
	// check for smith's hammer or sledgehammer in right hand
	if (<src.findlayer(layer_hand1).id> == 013e3) || (<src.findlayer(layer_hand1).id> == 0fb4)
		return 0
	else
		src.sysmessage You must weild a smith hammer of some sort.
		return 1
	endif

[ITEMDEF 06783]
DEFNAME=i_ingot_dragon
NAME=Dragon Ingot
ID=i_ingot_ironSW
RESOURCES=i_ore_dragon
SKILLMAKE=MINING 115.0
WEIGHT=1.2
TDATA1=115.0
TDATA2=115.0

CATEGORY=Items by Professions
SUBSECTION=Blacksmiths
DESCRIPTION=Dragon Ingot

ON=@Create
	COLOR=color_o_dragon

On=@DClick
	// check for smith's hammer or sledgehammer in right hand
	if (<src.findlayer(layer_hand1).id> == 013e3) || (<src.findlayer(layer_hand1).id> == 0fb4)
		return 0
	else
		src.sysmessage You must weild a smith hammer of some sort.
		return 1
	endif

//***** default distributions of ores/resources ******

[MAPRESOURCE mr_iron]	// default mining result.
TYPE=t_rock
BASECHANCE=60.0
AMOUNT_LO=9
AMOUNT_HI=30
REAP=i_ore_iron
REGEN=60*60*10

[MAPRESOURCE mr_rose]
TYPE=t_rock
BASECHANCE=6.0
AMOUNT_LO=3
AMOUNT_HI=8
REAP=i_ore_rose
REGEN=60*60*10

[MAPRESOURCE mr_shadow]
TYPE=t_rock
BASECHANCE=3.0
AMOUNT_LO=2
AMOUNT_HI=4
REAP=i_ore_shadow
REGEN=60*60*10

[MAPRESOURCE mr_copper]
TYPE=t_rock
BASECHANCE=4.6
AMOUNT_LO=3
AMOUNT_HI=5
REAP=i_ore_copper
REGEN=60*60*10

[MAPRESOURCE mr_golden]
TYPE=t_rock
BASECHANCE=4.0
AMOUNT_LO=2
AMOUNT_HI=5
REAP=i_ore_golden
REGEN=60*60*10

[MAPRESOURCE mr_orion]
TYPE=t_rock
BASECHANCE=3.0
AMOUNT_LO=4
AMOUNT_HI=9
REAP=i_ore_orion
REGEN=60*60*10

[MAPRESOURCE mr_agapite]
TYPE=t_rock
BASECHANCE=3.0
AMOUNT_LO=3
AMOUNT_HI=9
REAP=i_ore_agapite
REGEN=60*60*10

[MAPRESOURCE mr_verite]
TYPE=t_rock
BASECHANCE=2.8
AMOUNT_LO=3
AMOUNT_HI=7
REAP=i_ore_verite
REGEN=60*60*10

//[MAPRESOURCE mr_bloodrock]
//TYPE=t_rock
//BASECHANCE=2.6
//AMOUNT_LO=3
//AMOUNT_HI=6
//REAP=i_ore_bloodrock
//REGEN=60*60*10

[MAPRESOURCE mr_dwarf]
TYPE=t_rock
BASECHANCE=2.5
AMOUNT_LO=3
AMOUNT_HI=6
REAP=i_ore_dwarf
REGEN=60*60*10

[MAPRESOURCE mr_valorite]
TYPE=t_rock
BASECHANCE=2.4
AMOUNT_LO=3
AMOUNT_HI=5
REAP=i_ore_valorite
REGEN=60*60*10

[MAPRESOURCE mr_crystal]
TYPE=t_rock
BASECHANCE=2.0
AMOUNT_LO=2
AMOUNT_HI=4
REAP=i_ore_crystal
REGEN=60*60*10

[MAPRESOURCE mr_silver]
TYPE=t_rock
BASECHANCE=1.5
AMOUNT_LO=2
AMOUNT_HI=3
REAP=i_ore_silver
REGEN=60*60*10

[MAPRESOURCE mr_magma]
TYPE=t_rock
BASECHANCE=1.1
AMOUNT_LO=1
AMOUNT_HI=3
REAP=i_ore_magma
REGEN=60*60*10

[MAPRESOURCE mr_obsidian]
TYPE=t_rock
BASECHANCE=1.1
AMOUNT_LO=1
AMOUNT_HI=3
REAP=i_ore_obsidian
REGEN=60*60*10

[MAPRESOURCE mr_mytheril]
TYPE=t_rock
BASECHANCE=1.2
AMOUNT_LO=1
AMOUNT_HI=3
REAP=i_ore_mytheril
REGEN=60*60*10

[MAPRESOURCE mr_diamond]
TYPE=t_rock
BASECHANCE=1.0
AMOUNT_LO=1
AMOUNT_HI=2
REAP=i_gem_diamond
REGEN=60*60*10

[MAPRESOURCE mr_gold]
TYPE=t_rock
BASECHANCE=1.5
AMOUNT_LO=5
AMOUNT_HI=10
REAP=i_gold
REGEN=60*60*10

[MAPRESOURCE mr_tree]
// lumberjacking default
TYPE=t_tree
BASECHANCE=100.0
AMOUNT_LO=18
AMOUNT_HI=30
REAP=i_log
REGEN=30*60*10

[MAPRESOURCE mr_fish]
// fishing default
TYPE=t_water
BASECHANCE=50.0
AMOUNT_LO=9
AMOUNT_HI=30
REAP=i_fish_big_1
REGEN=60*60*10

[MAPRESOURCE mr_grass]
// grazing animals
TYPE=t_grass
BASECHANCE=100.0
AMOUNT_LO=9
AMOUNT_HI=30
REGEN=60*60*10
REAP=i_hay_sheaf

[EOF]
