add max capacity per item (Added 0.49.9)

Forum Archive - from http://theuniversal.net
Locked
User avatar
Mit
Staff
Staff
Posts: 3551
Joined: Sun Sep 21, 2003 10:14 pm
Location: Unknown

add max capacity per item (Added 0.49.9)

Post 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.
Last edited by Mit on Wed Jun 14, 2006 1:04 pm, edited 1 time in total.
User avatar
Mit
Staff
Staff
Posts: 3551
Joined: Sun Sep 21, 2003 10:14 pm
Location: Unknown

Post 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.
User avatar
zaroba
World Owner
World Owner
Posts: 7257
Joined: Fri Oct 10, 2003 11:06 pm
Location: Hereford, PA
Contact:

Post 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?
User avatar
Mit
Staff
Staff
Posts: 3551
Joined: Sun Sep 21, 2003 10:14 pm
Location: Unknown

Post by Mit »

they're in namesfile.txt, and appear as
ITEMMAX=9,10
(item number, max amount )
User avatar
zaroba
World Owner
World Owner
Posts: 7257
Joined: Fri Oct 10, 2003 11:06 pm
Location: Hereford, PA
Contact:

Post 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.
User avatar
Jemrada
World Owner
World Owner
Posts: 632
Joined: Tue Aug 10, 2004 3:47 pm
Location: uhhh!
Contact:

Post by Jemrada »

Thanks for this Mit.

I think I have a couple thigns I can use this for.
User avatar
zaroba
World Owner
World Owner
Posts: 7257
Joined: Fri Oct 10, 2003 11:06 pm
Location: Hereford, PA
Contact:

Post 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
User avatar
junk
World Owner
World Owner
Posts: 149
Joined: Mon Jun 21, 2004 7:15 pm
Location: Okla
Contact:

Post by junk »

never knew this exsisted ty for the new info that bumped it
Junk
User avatar
zaroba
World Owner
World Owner
Posts: 7257
Joined: Fri Oct 10, 2003 11:06 pm
Location: Hereford, PA
Contact:

Post 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.
Locked