#W# Crafting: If you have a salvage bag in your backpack crafted items go in it instead of your backpack.
This commit is contained in:
parent
c4c73b236a
commit
9944c00870
2 changed files with 10 additions and 3 deletions
|
|
@ -1552,8 +1552,15 @@ namespace Server.Engines.Craft
|
|||
item.Amount = maxAmount;
|
||||
}
|
||||
}
|
||||
|
||||
from.AddToBackpack(item);
|
||||
Item salvageBag = from.Backpack.FindItemByType(typeof(Server.Items.SalvageBag));
|
||||
if (salvageBag is Container salvageContainer && !salvageContainer.Deleted)
|
||||
{
|
||||
salvageContainer.DropItem(item);
|
||||
}
|
||||
else
|
||||
{
|
||||
from.AddToBackpack(item);
|
||||
}
|
||||
|
||||
// --- Queue System Tally (Success) ---
|
||||
{
|
||||
|
|
|
|||
|
|
@ -19,9 +19,9 @@ namespace Server.Mobiles
|
|||
{
|
||||
if (Core.ML)
|
||||
{
|
||||
Add(new GenericBuyInfo("1079931", typeof(SalvageBag), 1255, 20, 0xE76, Utility.RandomBlueHue()));
|
||||
}
|
||||
|
||||
Add(new GenericBuyInfo("1079931", typeof(SalvageBag), 1255, 20, 0xE76, Utility.RandomBlueHue()));
|
||||
Add(new GenericBuyInfo("1060834", typeof(PlantBowl), 2, 20, 0x15FD, 0));
|
||||
|
||||
Add(new GenericBuyInfo(typeof(Arrow), 2, 20, 0xF3F, 0));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue