Update of /cvsroot/wpdev/xmlscripts/scripts/system
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31000/system
Modified Files:
input.py
Log Message:
Fix for shrink potions, the input system and the alchemy tools
Index: input.py
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/scripts/system/input.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** input.py 21 Oct 2004 21:40:25 -0000 1.1
--- input.py 29 Oct 2004 14:49:13 -0000 1.2
***************
*** 12,15 ****
--- 12,17 ----
import wolfpack
+ from wolfpack import console
+ from wolfpack.consts import *
#
***************
*** 27,35 ****
def callEvent(item, event, args):
scripts = item.scripts + item.basescripts.split(',') # Build the scriptlist
for script in scripts:
! if not wolfpack.hasnamedevent(script, event):
continue
! result = wolfpack.callnamedevent(script, event, args)
if result:
--- 29,45 ----
def callEvent(item, event, args):
scripts = item.scripts + item.basescripts.split(',') # Build the scriptlist
+
for script in scripts:
! if len(script) == 0:
continue
! try:
! if not wolfpack.hasnamedevent(script, event):
! continue
!
! result = wolfpack.callnamedevent(script, event, args)
! except:
! console.log(LOG_ERROR, "Error processing script %s.\n" % script)
! raise
if result:
|