[INVALID] PCs can not place items into a container

Here we stuff all the bugs we've managed to squash/squish/squelch.
Post Reply
stranf
UOX3 Guru
Posts: 939
Joined: Wed Jan 04, 2006 3:59 pm
Has thanked: 0
Been thanked: 0

PCs can not place items into a container

Post by stranf »

Containers set by Xuri's World Builder do not have the weightmax flag attached (don't know why).

I added the following to the "set.js" to add weightmax manually:

Code: Select all

case "WEIGHTMAX":
		ourItem.weightmax = nVal;
		okMsg( socket );
		break;

Changing the value says it is a "success", but the value is not set. Do I have the syntax right?

I'm going to look for "tweak" in the JS and see how it is run, weightmax is listed; however, you CAN NOT adjust the value. It is stuck at 0.

Any thoughts?
stranf
UOX3 Guru
Posts: 939
Joined: Wed Jan 04, 2006 3:59 pm
Has thanked: 0
Been thanked: 0

Post by stranf »

Guess I should read the changelog..
A command to iterate through old containers to fix them is also available: 'FIXCONTWEIGHT
Easy enough, I'll give it a try! :D
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

Post by Xuri »

You might be able to avoid having to use that command for containers added through WB if you add entries for the containers in harditems.dfn, with the WEIGHTMAX (and TYPE, even) flags set. That way all "base" containers added automatically get those settings applied.
-= Ho Eyo He Hum =-
Post Reply