Page 1 of 1

MaxItems and MaxWeight for Containers

Posted: Fri Jun 30, 2006 12:58 am
by CrazyMan
How i can change MaxItems and MaxWeight for containers in script?
Maybe need create object members?

Posted: Fri Jun 30, 2006 1:48 am
by DevGIB
what scriptbase?

umm just a quick option to check out goto your main pol dir and open objtypes.txt i think it is, then do a find for chest and have a look at what its followed by eg it would generally give a package if its in one or it will just say config?? no i could be wrong im not sure, but then you can use that to look up the defined containers and they have props like MaxItems and MaxWeight... asfor defaults i think its is servspecopt.cfg or something.

Posted: Fri Jun 30, 2006 6:21 am
by MuadDib
http://poldoc.fem.tu-ilmenau.de/pol095/configfiles.php

Look in itemdesc.cfg for per container entries explanation and servspecopt.cfg for default entries explanation.

Posted: Fri Jun 30, 2006 6:23 am
by DevGIB
thats what i meant :P :wink:

Posted: Fri Jun 30, 2006 11:33 am
by Yukiko
This brings up an interesting question. CrazyMan asked:
How i can change MaxItems and MaxWeight for containers in script?
Are those r/w members? I didn't see any reference to them on containers in the POL Docs. They aren't even listed as a member of a container there.

Posted: Fri Jun 30, 2006 12:52 pm
by MuadDib
That's because they are r/o, not r/w. No way to change them via scripts, only via itemdesc.cfg and a reload of POL

Posted: Fri Jun 30, 2006 12:54 pm
by CrazyMan
So i say:
Shini, add new obj member for containers for change MaxItems and MaxWeight.

MoatDib:
I have bad english....
But i now about itemdesc.... i vont change maxitems online, ingame, from scripts