Okay I made copper and silver currency but I am lost on how to replace the gold in the loot packs for my copper and silver currency

this the line am trying to replace

new LootPackEntry(true, Gold, 100.00, "2d10+20")

with this line

new LootPackEntry(true, Copper, 100.00, "2d10+20")

but I get a error saying copper isn't a type
 
here it is

Code:
using System;
namespace Server.Items
{
publicclassCopper : Item
{
[Constructable]
public Copper()
: this(1)
{
}
[Constructable]
public Copper(int amountFrom, int amountTo)
: this(Utility.RandomMinMax(amountFrom, amountTo))
{
}
[Constructable]
public Copper(int amount)
: base(0xEEA)
{
this.Stackable = true;
this.Amount = amount;
}
public Copper(Serial serial)
: base(serial)
{
}
publicoverridedouble DefaultWeight
{
get
{
return (Core.ML ? (0.02 / 3) : 0.02);
}
}
publicoverrideint GetDropSound()
{
if (this.Amount <= 1)
return 0x2E4;
elseif (this.Amount <= 5)
return 0x2E5;
else
return 0x2E6;
}
publicoverridevoid Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.Write((int)0); // version
}
publicoverridevoid Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
}
}
}
[\code]
 
there's something going on with your spaces there...i'm surprised it compiled (no offense)

i think i got them all

Code:
using System;
namespace Server.Items
{
public class Copper : Item
{
[Constructable]
public Copper()
: this(1)
{
}
[Constructable]
public Copper(int amount From, int amount To)
: this(Utility.RandomMinMax(amount From, amount To))
{
}
[Constructable]
public Copper(int amount)
: base(0xEEA)
{
this.Stackable = true;
this.Amount = amount;
}
public Copper(Serial serial)
: base(serial)
{
}
public override double DefaultWeight
{
get
{
return (Core.ML ? (0.02 / 3) : 0.02);
}
}
public override int GetDropSound()
{
if (this.Amount <= 1)
return 0x2E4;
else if (this.Amount <= 5)
return 0x2E5;
else
return 0x2E6;
}
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.Write((int)0); // version
}
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
}
}
}
[\code]
[/QUOTE]
 
its the way I posted it lol yeah it compile fine like I said im just wanting to change the gold in the loot packs to copper so I don't have to go though and do every monster by hand lol
 
You should post your solution, so if anyone else has a similar problem, they can find the answer by searching :) Nice work figuring it out!
 
Code:
publicclassCopper : Item
{
[Constructable]
public Copper()
: this(1)
{
}

Your class name must match your constructor.
 

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back