Page 1 of 1

add max capacity per item (Added 0.49.9)

Posted: Sun Jun 11, 2006 10:52 am
by Mit
so owner can easily set max capacity of specific items - e.g. make it so all players can carry no more than, for instance, 10 fish at a time.

Posted: Wed Jun 14, 2006 1:00 pm
by Mit
done for 0.49.9 - *setitemmax [ITEM_NAME],[AMOUNT] command added.

e.g. *setitemmax Fish,10
would mean no player could carry more than 10 fish at any one time.

Posted: Thu Jun 15, 2006 11:32 am
by zaroba
sounds nice.
are the values also stored in the namesfile with the item names or some other place for editing outside the game?

Posted: Thu Jun 15, 2006 1:01 pm
by Mit
they're in namesfile.txt, and appear as
ITEMMAX=9,10
(item number, max amount )

Posted: Thu Jun 15, 2006 2:47 pm
by zaroba
cool.

i can see many places where limiting the in inventory amount can come in handy.
with it being stored in the names file, it'll make initial world setup easier aswell.

Posted: Fri Jun 16, 2006 2:04 pm
by Jemrada
Thanks for this Mit.

I think I have a couple thigns I can use this for.

Posted: Wed Oct 17, 2007 3:42 pm
by zaroba
Mit wrote:they're in namesfile.txt, and appear as
ITEMMAX=9,10
(item number, max amount )
just so any other world owners know, its now
ITEMMAXCARRIED,#=amount
as in ITEMMAXCARRIED,173=25

Posted: Wed Oct 17, 2007 4:03 pm
by junk
never knew this exsisted ty for the new info that bumped it
Junk

Posted: Wed Oct 17, 2007 6:08 pm
by zaroba
apparently this is broken.

set a value for any item and you wont be able to carry ANYTHING at all. even if your inventory is completely empty and even if your in a vehicle with no capacity limits.