Opywang
Member
I've got a bag that drop 5 recipe, but it's too small, and it takes forever to find the rare recipe so I want to increase the amount that drop in a bag instead of 5 it'll be 50.
I've tried this, and it didn't work so if anybody got any idea how to fix them then it'll be wonderful!
DropItem( Reward.FletcherRecipe(10));
DropItem(Reward.TailorRecipe(10));
DropItem(Reward.SmithRecipe(10));
DropItem(Reward.TinkerRecipe(10));
DropItem(Reward.CarpRecipe(10));
//Redsnow
using System;
using Server;
using Server.Items;
using Server.Engines.Quests;
using Reward = Server.Engines.Quests.BaseReward;
namespace Server.Items
{
public class Recipebag : Bag
{
[Constructable]
public Recipebag(): this(1)
{
//Movable = true;
Hue = 1163;
Name = "Random Recipe bag";
}
[Constructable]
public Recipebag( int amount )
{
DropItem( Reward.FletcherRecipe());
DropItem(Reward.TailorRecipe());
DropItem(Reward.SmithRecipe());
DropItem(Reward.TinkerRecipe());
DropItem(Reward.CarpRecipe());
}
public Recipebag(Serial serial): base(serial)
{
}
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();
}
}
}
I've tried this, and it didn't work so if anybody got any idea how to fix them then it'll be wonderful!
DropItem( Reward.FletcherRecipe(10));
DropItem(Reward.TailorRecipe(10));
DropItem(Reward.SmithRecipe(10));
DropItem(Reward.TinkerRecipe(10));
DropItem(Reward.CarpRecipe(10));
//Redsnow
using System;
using Server;
using Server.Items;
using Server.Engines.Quests;
using Reward = Server.Engines.Quests.BaseReward;
namespace Server.Items
{
public class Recipebag : Bag
{
[Constructable]
public Recipebag(): this(1)
{
//Movable = true;
Hue = 1163;
Name = "Random Recipe bag";
}
[Constructable]
public Recipebag( int amount )
{
DropItem( Reward.FletcherRecipe());
DropItem(Reward.TailorRecipe());
DropItem(Reward.SmithRecipe());
DropItem(Reward.TinkerRecipe());
DropItem(Reward.CarpRecipe());
}
public Recipebag(Serial serial): base(serial)
{
}
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();
}
}
}