[wpdev-commits] xmlscripts/scripts/commands export.py,1.5,1.6
Brought to you by:
rip,
thiagocorrea
From: Richard M. <dr...@us...> - 2004-07-12 02:04:52
|
Update of /cvsroot/wpdev/xmlscripts/scripts/commands In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12334/commands Modified Files: export.py Log Message: Actually, this worked better. Index: export.py =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/scripts/commands/export.py,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** export.py 12 Jul 2004 01:51:53 -0000 1.5 --- export.py 12 Jul 2004 02:04:41 -0000 1.6 *************** *** 138,142 **** i = 0 while item: ! if not item.baseid in nonsaves and ( item.spawnregion == None or item.spawnregion == '' ): # Build our string if format == 1: # Sphere 51a --- 138,142 ---- i = 0 while item: ! if not item.baseid in nonsaves and len( item.spawnregion ) == 0 # Build our string if format == 1: # Sphere 51a *************** *** 176,190 **** #output.write( "0x%x %i %i %i 0x%x%s" % ( item.id, item.pos.x, item.pos.y, item.pos.z, item.color, newline ) ) ! if item.amount > 1: ! warnings += 'Item %i has an amount of %i. This information will be lost when made static.<br><br>' % ( hex( item.serial ), item.amount ) ! eventlist = item.eventlist ! if len( eventlist ) > 0: ! warnings += 'Item %i has events (%s) assigned to it. It wont be usable when made static.<br><br>' % ( hex( item.serial ), eventlist ) ! if item.type != 0: warnings += 'Item %i is of type %i. It wont be usable when made static.<br><br>' % ( hex( item.serial ), item.type ) ! i += 1 item = iterator.next --- 176,190 ---- #output.write( "0x%x %i %i %i 0x%x%s" % ( item.id, item.pos.x, item.pos.y, item.pos.z, item.color, newline ) ) ! if item.amount > 1: ! warnings += 'Item %i has an amount of %i. This information will be lost when made static.<br><br>' % ( hex( item.serial ), item.amount ) ! eventlist = item.eventlist ! if len( eventlist ) > 0: ! warnings += 'Item %i has events (%s) assigned to it. It wont be usable when made static.<br><br>' % ( hex( item.serial ), eventlist ) ! if item.type != 0: warnings += 'Item %i is of type %i. It wont be usable when made static.<br><br>' % ( hex( item.serial ), item.type ) ! i += 1 item = iterator.next |