Update of /cvsroot/wpdev/xmlscripts/scripts/commands
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18488/commands
Modified Files:
import.py
Log Message:
import now imports multis and makes everything non movable.
Index: import.py
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/scripts/commands/import.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** import.py 18 Sep 2004 15:21:02 -0000 1.10
--- import.py 30 Sep 2004 12:46:03 -0000 1.11
***************
*** 371,377 ****
else:
baseid = lstrip( str( hex( id ) ), "0x" )
! newitem = wolfpack.additem( "%s" % baseid ) # Generate a new serial for us
newitem.decay = 0
newitem.color = color
newitem.id = id
--- 371,387 ----
else:
baseid = lstrip( str( hex( id ) ), "0x" )
!
! # Multi ?
! if id >= 0x4000:
! newitem = wolfpack.addmulti( "%s" % baseid ) # Generate a new serial for us
! else:
! newitem = wolfpack.additem( "%s" % baseid ) # Generate a new serial for us
!
! if not newitem:
! warning += "Found an invalid item id: %s<br>" % baseid
! continue
newitem.decay = 0
+ newitem.movable = 3 # Make everything gm movable by default
newitem.color = color
newitem.id = id
|