Page 1 of 1

custom container

Posted: Fri Nov 23, 2007 5:33 am
by Althalus
What if i have to make a custom container 4 example in itemdesc.cfg i have:

Code: Select all

container someid
{
 name ..
 desc ..
 graphic ..
 gump gumpid
 minX
 maxX
 minY
 maxY
 script someUseScript
}
And in someUseScript i would like to have couple of options, i've made a gump with them, player is choosing one of them which is:

Code: Select all

SendOpenSpecialContainer( who, item);
and.. nothing is happening.
Can somebody help me?

I would like to add that the graphic of the item doesn't look like a container, it's a wall item ;)

Posted: Fri Nov 23, 2007 9:00 am
by AsYlum
I think you need to add new graphic to uo files (art.mul). Also you'll need to add corresponding entry into tiledata.mul. In tiledata.mul this tile must be defined as container.

Defining container in pol itemdesc.cfg doesn't allows you make any item container like.

Correct me if I'm wrong.

Posted: Mon Nov 26, 2007 11:37 am
by Althalus
Thnx, then I will do a src that will contain items. Anyway thnx for info ;)