bug in container use script

Archive of posts related to former distro versions. Be aware that posts here do not refer to the current distro and may not work.
Locked
Lagoon
Grandmaster Poster
Posts: 118
Joined: Sun Mar 05, 2006 7:25 am

bug in container use script

Post 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
User avatar
Austin
Former Developer
Posts: 621
Joined: Wed Jan 25, 2006 2:30 am

Post by Austin »

Updated along with a lot of other little issues in the container package.
Locked