Update of /cvsroot/wpdev/xmlscripts/scripts/speech
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22324/speech
Modified Files:
banker.py
Log Message:
various
Index: banker.py
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/scripts/speech/banker.py,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** banker.py 4 Oct 2004 13:47:13 -0000 1.13
--- banker.py 8 Oct 2004 01:14:16 -0000 1.14
***************
*** 10,13 ****
--- 10,14 ----
from wolfpack import tr
from wolfpack.consts import *
+ import wolfpack.utilities
import wolfpack
import re
***************
*** 68,72 ****
speaker.soundeffect( 0x37, 0 )
!
break
--- 69,73 ----
speaker.soundeffect( 0x37, 0 )
!
break
***************
*** 127,137 ****
# We have enough money, so let's withdraw it
# Into your bank box I have placed a check in the amount of:
! total = str( amount )
speaker.socket.clilocmessage( 0xFE8F1, "", 0x3b2, 3, listener, " %s" %total )
bank.useresource( amount, 0xEED, 0x0 )
check = wolfpack.additem( "bank_check" )
check.settag( 'value', amount )
! check.container = bank
check.update()
break
--- 128,141 ----
# We have enough money, so let's withdraw it
# Into your bank box I have placed a check in the amount of:
! total = str(amount)
speaker.socket.clilocmessage( 0xFE8F1, "", 0x3b2, 3, listener, " %s" %total )
bank.useresource( amount, 0xEED, 0x0 )
check = wolfpack.additem( "bank_check" )
check.settag( 'value', amount )
! bank.additem(check)
check.update()
+
+ # Resend Status (Money changed)
+ speaker.socket.resendstatus()
break
***************
*** 140,145 ****
# An item has been dropped on us
def onDropOnChar( char, item ):
! char.socket.clilocmessage( 0x7A2A4, "", 0x3b2, 3, listener )
! #backpack = char.getbackpack()
! #item.container = backpack
return 0
--- 144,160 ----
# An item has been dropped on us
def onDropOnChar( char, item ):
! player = item.container
!
! if not player or not player.ischar() or not player.socket:
! return False
!
! # Move to bankbox if gold
! if item.id == 0xeed:
! bankbox = player.getbankbox()
! if not wolfpack.utilities.tocontainer(item, bankbox):
! item.update()
! return True
! else:
! char.say( 500388, "", "", False, 0x3b2, player.socket )
!
return 0
|