Opywang
Member
Hey there I would like to make our shard to have one click daily bod reward where all the bod go in your pack depending on your level that last 24 hour time limit, and all bod within 24 hour drop in pack.
The problem we need to solve is where the gump come up, and ask you if you will accept this bod, or not I like to have that removed, and make it where it make you accept anyway, and automatic put it in pack after click bulk order.
#region Bulk Orders
public override BODType BODType { get { return BODType.Smith; } }
public override Item CreateBulkOrder(Mobile from, bool fromContextMenu)
{
PlayerMobile pm = from as PlayerMobile;
if (pm != null && pm.NextSmithBulkOrder == TimeSpan.Zero && (fromContextMenu || 0.2 > Utility.RandomDouble()))
{
double theirSkill = pm.Skills[SkillName.Blacksmith].Base;
if (theirSkill >= 70.1)
pm.NextSmithBulkOrder = TimeSpan.FromHours(6.0);
else if (theirSkill >= 50.1)
pm.NextSmithBulkOrder = TimeSpan.FromHours(2.0);
else
pm.NextSmithBulkOrder = TimeSpan.FromHours(1.0);
if (theirSkill >= 70.1 && ((theirSkill - 40.0) / 300.0) > Utility.RandomDouble())
return new LargeSmithBOD();
return SmallSmithBOD.CreateRandomFor(from);
}
return null;
The problem we need to solve is where the gump come up, and ask you if you will accept this bod, or not I like to have that removed, and make it where it make you accept anyway, and automatic put it in pack after click bulk order.
#region Bulk Orders
public override BODType BODType { get { return BODType.Smith; } }
public override Item CreateBulkOrder(Mobile from, bool fromContextMenu)
{
PlayerMobile pm = from as PlayerMobile;
if (pm != null && pm.NextSmithBulkOrder == TimeSpan.Zero && (fromContextMenu || 0.2 > Utility.RandomDouble()))
{
double theirSkill = pm.Skills[SkillName.Blacksmith].Base;
if (theirSkill >= 70.1)
pm.NextSmithBulkOrder = TimeSpan.FromHours(6.0);
else if (theirSkill >= 50.1)
pm.NextSmithBulkOrder = TimeSpan.FromHours(2.0);
else
pm.NextSmithBulkOrder = TimeSpan.FromHours(1.0);
if (theirSkill >= 70.1 && ((theirSkill - 40.0) / 300.0) > Utility.RandomDouble())
return new LargeSmithBOD();
return SmallSmithBOD.CreateRandomFor(from);
}
return null;