Damien Darkwater
Initiate
just wondering if anyone has a working bag of blessing script, I cant seem to find any that works properly, any help is appreciated, Thanx
using System;
using Server.Network;
namespace Server.Items
{
public class BlessBag : Container
{
[Constructable]
public BlessBag() : base( 0xE76) /*Bag =0xE76 ,Backpack = 0x9B2, Pouch = 0xE79, GrayMetalChest = 0xE7C, WoodenBox = 0xE7D, SmallCrate = 0xE7E, StrongBox = 0xE80*/
{
Name = "A Blessing Bag";
Weight = 0.0;
Hue = 0;
LootType = LootType.Blessed;
}
public override bool OnDragDropInto( Mobile from, Item item, Point3D p )
{
if ( !base.OnDragDropInto( from, item, p ) )
return false;
item.LootType = LootType.Blessed;
from.SendMessage("Thee item becomes Blessed");
return true;
}
public override bool OnDragDrop( Mobile from, Item dropped )
{
if ( !base.OnDragDrop( from, dropped ) )
return false;
dropped.LootType = LootType.Blessed;
from.SendMessage("Thee item becomes Blessed");
return true;
}
public BlessBag(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();
}
}
}
The code I posted was never intended to do anything more then bless items that are placed into it. As I posted in my original message with the code.Hmm found a little bug on this item, working on the fix for you . But upon death all items in bless bag are emptied into players main backpack. Should not be hard to change, if i figure it I will post changes
OP never said anything about wanting the bag to keep items upon death.Just to clarify you want a bag of blessing that keeps the items inside the bag that are also blessed. Even upon death or removing it from the players backpack?
not just a bag that blesses items. right?
Here is code for a Bag that blesses items placed into it.
I take no credit for this script.
We use essential cookies to make this site work, and optional cookies to enhance your experience.