Page 1 of 1

bug in container use script

Posted: Wed Sep 13, 2006 7:01 am
by Lagoon
097\Distro\pkg\items\containers\container\use.src

Code: Select all

	if ( mobile.cmdlevel )
		SendSysMessage(mobile, "Command level is present - container is skipping locks, traps, etc.");
		SendViewContainer(mobile, container);
	elseif ( ContainerIsLocked(mobile, container) )
		RunTraps(container, mobile);
		return 0;
	endif
	
	SendViewContainer(mobile, container);
You should add a return 1 after the first SendViewContainer() or it will be called twice if pc has cmdlevel != 0

Posted: Wed Sep 13, 2006 2:02 pm
by Austin
Updated along with a lot of other little issues in the container package.