Update of /cvsroot/wpdev/xmlscripts/scripts/deeds
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7817/deeds
Modified Files:
carpentry_deed.py clothing_bless_deed.py commoditydeed.py
item_bless_deed.py
Log Message:
more crashfixes
Index: carpentry_deed.py
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/scripts/deeds/carpentry_deed.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** carpentry_deed.py 27 Sep 2004 22:36:47 -0000 1.4
--- carpentry_deed.py 13 Oct 2004 19:47:48 -0000 1.5
***************
*** 75,84 ****
# send target cursor
! char.socket.attachtarget( "deeds.carpentry_deed.response", [ item ] )
return True
def response( char, args, target ):
! item = args[0]
if not item or item.getoutmostchar() != char:
# msg
--- 75,84 ----
# send target cursor
! char.socket.attachtarget( "deeds.carpentry_deed.response", [ item.serial ] )
return True
def response( char, args, target ):
! item = wolfpack.finditem(args[0])
if not item or item.getoutmostchar() != char:
# msg
Index: commoditydeed.py
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/scripts/deeds/commoditydeed.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** commoditydeed.py 25 Apr 2004 18:53:21 -0000 1.1
--- commoditydeed.py 13 Oct 2004 19:47:48 -0000 1.2
***************
*** 44,48 ****
if not item.hastag ( "filled" ):
char.socket.clilocmessage( 0xFF9F5, "", 0x3b2, 3 )
! char.socket.attachtarget( "deeds.commoditydeed.response", [item] )
return 1
--- 44,48 ----
if not item.hastag ( "filled" ):
char.socket.clilocmessage( 0xFF9F5, "", 0x3b2, 3 )
! char.socket.attachtarget( "deeds.commoditydeed.response", [item.serial] )
return 1
***************
*** 65,69 ****
bank = char.getbankbox()
! deed = args[0]
# "0x1761", "0x1762", "0x1763", "0x1764" possible?
--- 65,69 ----
bank = char.getbankbox()
! deed = wolfpack.finditem(args[0])
# "0x1761", "0x1762", "0x1763", "0x1764" possible?
Index: clothing_bless_deed.py
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/scripts/deeds/clothing_bless_deed.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** clothing_bless_deed.py 25 Apr 2004 18:53:21 -0000 1.1
--- clothing_bless_deed.py 13 Oct 2004 19:47:48 -0000 1.2
***************
*** 22,26 ****
char.socket.clilocmessage( 0xF55DA, "", 0x3b2, 3 )
! char.socket.attachtarget( "deeds.clothing_bless_deed.response", [item] )
return 1
--- 22,26 ----
char.socket.clilocmessage( 0xF55DA, "", 0x3b2, 3 )
! char.socket.attachtarget( "deeds.clothing_bless_deed.response", [item.serial] )
return 1
***************
*** 36,40 ****
return 0
! item = args[0]
backpack = char.getbackpack()
--- 36,40 ----
return 0
! item = wolfpack.finditem(args[0])
backpack = char.getbackpack()
Index: item_bless_deed.py
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/scripts/deeds/item_bless_deed.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** item_bless_deed.py 25 Apr 2004 18:53:21 -0000 1.1
--- item_bless_deed.py 13 Oct 2004 19:47:48 -0000 1.2
***************
*** 24,28 ****
char.socket.clilocmessage( 0x7A31A, "", 0x3b2, 3 )
! char.socket.attachtarget( "deeds.item_bless_deed.response", [item] )
return 1
--- 24,28 ----
char.socket.clilocmessage( 0x7A31A, "", 0x3b2, 3 )
! char.socket.attachtarget( "deeds.item_bless_deed.response", [item.serial] )
return 1
***************
*** 47,51 ****
return 0
! item = args[0]
backpack = char.getbackpack()
--- 47,51 ----
return 0
! item = wolfpack.finditem(args[0])
backpack = char.getbackpack()
|