[wpdev-commits] xmlscripts/scripts door.py,1.2,1.3
Brought to you by:
rip,
thiagocorrea
|
From: <dar...@us...> - 2003-10-08 01:35:53
|
Update of /cvsroot/wpdev/xmlscripts/scripts In directory sc8-pr-cvs1:/tmp/cvs-serv22545 Modified Files: door.py Log Message: Updated reloading of scripts Index: door.py =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/scripts/door.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** door.py 13 Sep 2003 15:29:16 -0000 1.2 --- door.py 8 Oct 2003 01:35:48 -0000 1.3 *************** *** 295,319 **** return 1 ! # The Door has no lock ! if not item.hastag( 'lock' ) or char.gm: ! return opendoor( char, item ) ! ! lock = int( item.gettag( 'lock' ) ) ! ! if item.hastag( 'locked' ): ! locked = int( item.gettag( 'locked' ) ) ! else: ! locked = 0 ! ! if locked == 0: ! return opendoor( char, item ) ! ! # Search for a key in the users backpack ! backpack = char.getbackpack() ! ! if searchkey( backpack, lock ): ! char.message( 'You quickly unlock, use, and then relock the door.' ) ! return opendoor( char, item ) ! ! char.message( 'This door is locked.' ) ! return 1 \ No newline at end of file --- 295,297 ---- return 1 ! return opendoor( char, item ) |