[wpdev-commits] xmlscripts/scripts door.py,1.5,1.6
Brought to you by:
rip,
thiagocorrea
|
From: <thi...@pr...> - 2004-01-23 01:56:43
|
Update of /cvsroot/wpdev/xmlscripts/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29906 Modified Files: door.py Log Message: Checks distance before opening the linked door. Index: door.py =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/scripts/door.py,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** door.py 14 Jan 2004 12:48:29 -0000 1.5 --- door.py 23 Jan 2004 01:56:02 -0000 1.6 *************** *** 1,2 **** --- 1,10 ---- + #===============================================================# + # ) (\_ | WOLFPACK 13.0.0 Scripts # + # (( _/{ "-; | Created by: unknown # + # )).-' {{ ;'` | Revised by: # + # ( ( ;._ \\ ctr | Last Modification: Created # + #===============================================================# + # Doors # # + #===============================================================# import wolfpack *************** *** 296,306 **** char.objectdelay = 0 - # Do we have a linked door, is this door not open? - if item.hastag('link') and not item.hastag('opened'): - doubledoor = wolfpack.finditem( hex2dec(item.gettag('link')) ) - # Double check to make sure either door isn't open. - if not item.hastag('opened') and not doubledoor.hastag('opened'): - opendoor( char, doubledoor ) - # In Range? if not char.gm and not char.canreach( item, 2 ): --- 304,307 ---- *************** *** 308,311 **** --- 309,318 ---- return 1 + # Do we have a linked door, is this door not open? + if item.hastag('link') and not item.hastag('opened'): + doubledoor = wolfpack.finditem( int(item.gettag('link')) ) + # Double check to make sure either door isn't open. + if not item.hastag('opened') and not doubledoor.hastag('opened'): + opendoor( char, doubledoor ) return opendoor( char, item ) |