PenUltima Online Forum Index Official Core: 096.7
Official Core: 097 2008-02-26
Donate towards the POL web hosting bill!
 POL Home   FAQ   Search    Memberlist   Usergroups    Register    Profile   Log in to check your private messages   Log in
bug in container use script

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    PenUltima Online Forum Index -> Development Discussion
Display posts from previous:   

Author Message
Lagoon



Joined: 05 Mar 2006
Posts: 118
Location: Italy

PostPosted: Wed Sep 13, 2006 11:01 am    Post subject: bug in container use script Reply with quote

097\Distro\pkg\items\containers\container\use.src
Code:

   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

Author Message
Austin
POL Developer


Joined: 30 Jan 2006
Posts: 354
Location: San Diego, California

PostPosted: Wed Sep 13, 2006 6:02 pm    Post subject: Reply with quote

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

Post new topic   This topic is locked: you cannot edit posts or make replies.    PenUltima Online Forum Index -> Development Discussion All times are GMT - 4 Hours
Page 1 of 1

 




Powered by phpBB © 2001, 2005 phpBB Group :: Theme & Graphics by GHS & Scott E. Royalty