Update of /cvsroot/wpdev/xmlscripts/scripts
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26148/scripts
Modified Files:
bandages.py
Log Message:
changed to cliloc messages
Index: bandages.py
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/scripts/bandages.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** bandages.py 31 Aug 2004 22:10:08 -0000 1.9
--- bandages.py 2 Sep 2004 18:17:57 -0000 1.10
***************
*** 67,80 ****
if not char.gm and not char.canreach( target, 2 ):
! char.socket.sysmessage( 'You can''t reach that.' )
return 0
if target.id != 0x2006:
! char.socket.sysmessage( 'Try using these on a corpse.' )
return 0
# Check Owner
if not target.owner or not target.owner.dead:
! char.socket.sysmessage( 'You can''t help them anymore.' )
return 0
--- 67,80 ----
if not char.gm and not char.canreach( target, 2 ):
! char.socket.clilocmessage(500313)
return 0
if target.id != 0x2006:
! char.socket.clilocmessage(500971)
return 0
# Check Owner
if not target.owner or not target.owner.dead:
! char.socket.clilocmessage(500971)
return 0
***************
*** 94,100 ****
if not target.poison and target.health >= target.maxhitpoints:
if target == char:
! char.socket.sysmessage( 'You are healthy.' )
else:
! char.socket.sysmessage( '%s does not require you to heal or cure them!' % target.name )
return 0
--- 94,100 ----
if not target.poison and target.health >= target.maxhitpoints:
if target == char:
! char.socket.clilocmessage(1061289)
else:
! char.socket.clilocmessage(500956)
return 0
***************
*** 118,130 ****
if corpse and ( char.skill[ HEALING ] < 800 or char.skill[ ANATOMY ] < 800 ):
! char.socket.sysmessage( 'You are not skilled enough to resurrect.' )
return
if target.char and target.char.dead and ( char.skill[ HEALING ] < 800 or char.skill[ ANATOMY ] < 800 ):
! char.socket.sysmessage( 'You are not skilled enough to resurrect.' )
return
if target.char and target.char.poison and ( char.skill[ HEALING ] < 600 or char.skill[ ANATOMY ] < 600 ):
! char.socket.sysmessage( 'You are not skilled enough to cure poison.' )
return
--- 118,130 ----
if corpse and ( char.skill[ HEALING ] < 800 or char.skill[ ANATOMY ] < 800 ):
! char.socket.clilocmessage(1002086)
return
if target.char and target.char.dead and ( char.skill[ HEALING ] < 800 or char.skill[ ANATOMY ] < 800 ):
! char.socket.clilocmessage(1002086)
return
if target.char and target.char.poison and ( char.skill[ HEALING ] < 600 or char.skill[ ANATOMY ] < 600 ):
! char.socket.clilocmessage(1002086)
return
***************
*** 200,204 ****
if not success:
! char.socket.sysmessage( 'You fail to resurrect the target.' )
return
--- 200,204 ----
if not success:
! char.socket.clilocmessage(500967)
return
***************
*** 219,223 ****
target.delete()
! char.socket.sysmessage( 'You successfully resurrect ' + owner.name )
else:
char.socket.sysmessage( 'You can''t help them anymore' )
--- 219,223 ----
target.delete()
! char.socket.clilocmessage(500966)
else:
char.socket.sysmessage( 'You can''t help them anymore' )
***************
*** 233,237 ****
if target.dead:
if not success:
! char.socket.sysmessage( 'You fail to resurrect the target.' )
return
--- 233,237 ----
if target.dead:
if not success:
! char.socket.clilocmessage(500967)
return
***************
*** 239,243 ****
target.update()
! char.socket.sysmessage( 'You successfully resurrect ' + target.name )
elif target.poison:
if not success:
--- 239,243 ----
target.update()
! char.socket.clilocmessage(500966)
elif target.poison:
if not success:
***************
*** 253,259 ****
if not success:
if target != char:
! char.socket.sysmessage( 'You fail applying bandages to %s.' % target.name )
else:
! char.socket.sysmessage( 'You fail applying bandages to yourself.' )
return
--- 253,259 ----
if not success:
if target != char:
! char.socket.clilocmessage(500969)
else:
! char.socket.clilocmessage(500969)
return
***************
*** 276,282 ****
if char == target:
! char.socket.sysmessage( 'You successfully apply bandages on yourself.' )
else:
! char.socket.sysmessage( 'You successfully apply bandages on %s' % target.name )
# Create bloody bandages
--- 276,282 ----
if char == target:
! char.socket.clilocmessage(500970)
else:
! char.socket.clilocmessage(500970)
# Create bloody bandages
***************
*** 290,292 ****
item = wolfpack.additem( 'e22' )
if not wolfpack.utilities.tobackpack( item, char ):
! item.update()
\ No newline at end of file
--- 290,292 ----
item = wolfpack.additem( 'e22' )
if not wolfpack.utilities.tobackpack( item, char ):
! item.update()
|