If you allow the vendor to buy the bag back, they will offer quite a lot of money for it though.
..and alternatively, if you just remove it from the sell list (I'm sure that was your plan anyway) then your server might be litered with 2 types of bags, ones you can sell and ones you can't. That would make my OCD run wild knowing players are having to deal with "unsellable" and "sellable" bags and having no real way of telling them apart.
Here's a script I wrote back in 55i for doing what you want, the only difference is it's not *actually* a container. Dclicking it will "unpack the bag", giving you a legitimate/real i_bag and the reagents. I also made a "60 each" version but I don't see a point in posting both
Don't ask me why I used Base IDs instead of their DEFNAMEs, I wrote this like 5 years ago.
You could probably modify it to bounce the items back into a "real" bag container instead of dumping them in your pack, that might be cleaner. I'm not sure why I didn't do that when I wrote this, but as I said, 5 years ago.
Code:
[ITEMDEF i_Bag_of_Reagents_30]
NAME=Bag of Reagents (30 of Each)
ID=i_BAG
TYPE=134
WEIGHT=15
VALUE=800
ON=@CREATE
COLOR=07b7
ON=@DCLICK
REMOVE
SRC.SOUND=0048
SRC.MESSAGE You remove the reagents from the bag.
SRC.NEWITEM=0f7a
SRC.ACT.AMOUNT=30
SRC.ACT.BOUNCE
SRC.NEWITEM=0f7b
SRC.ACT.AMOUNT=30
SRC.ACT.BOUNCE
SRC.NEWITEM=0f84
SRC.ACT.AMOUNT=30
SRC.ACT.BOUNCE
SRC.NEWITEM=0f85
SRC.ACT.AMOUNT=30
SRC.ACT.BOUNCE
SRC.NEWITEM=0f86
SRC.ACT.AMOUNT=30
SRC.ACT.BOUNCE
SRC.NEWITEM=0f88
SRC.ACT.AMOUNT=30
SRC.ACT.BOUNCE
SRC.NEWITEM=0f8c
SRC.ACT.AMOUNT=30
SRC.ACT.BOUNCE
SRC.NEWITEM=0f8d
SRC.ACT.AMOUNT=30
SRC.ACT.BOUNCE
SRC.NEWITEM=i_bag
SRC.ACT.COLOR=07b7
SRC.ACT.BOUNCE
CATEGORY=Abanellia Items
SUBSECTION=Misc
DESCRIPTION=Bag of Regs (30)
An MMORPG based on the Ultima Online engine.
Completely Custom Map, GUI, AI, Combat, Skills, Crafts, Art, Music and so much more.
http://aetharia.com - Home of Ambition!