PenUltima Online

It is currently Sun Sep 07, 2008 2:45 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: custom container
PostPosted: Fri Nov 23, 2007 5:33 am 
Offline

Joined: Fri Feb 17, 2006 5:34 pm
Posts: 12
What if i have to make a custom container 4 example in itemdesc.cfg i have:
Code:
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:
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 ;)

_________________
Master of dis(ass)ter


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 23, 2007 9:00 am 
Offline
User avatar

Joined: Sun Feb 05, 2006 5:24 am
Posts: 30
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.

_________________
<uninitialized object>


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 26, 2007 11:37 am 
Offline

Joined: Fri Feb 17, 2006 5:34 pm
Posts: 12
Thnx, then I will do a src that will contain items. Anyway thnx for info ;)

_________________
Master of dis(ass)ter


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subice by phpBBservice.nl