Update of /cvsroot/wpdev/xmlscripts/scripts/npc
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27222/npc
Modified Files:
healer.py
Log Message:
Useful fix by Incanus, healers should work now.
Index: healer.py
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/scripts/npc/healer.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** healer.py 9 Jul 2004 10:06:54 -0000 1.6
--- healer.py 12 Aug 2004 00:56:03 -0000 1.7
***************
*** 1,33 ****
- #################################################################
- # ) (\_ # WOLFPACK 13.0.0 Scripts #
- # (( _/{ "-; # Created by: codex #
- # )).-' {{ ;'` # Revised by: #
- # ( ( ;._ \\ ctr # Last Modification: Created #
- #################################################################
-
- import wolfpack
- from wolfpack.consts import *
-
- def onContextEntry( char, healer, tag ):
- if( int( tag ) == 1 ):
- healer.say("Hold still!")
- if not char or not healer:
- return False
-
- if healer.dead:
- char.socket.clilocmessage( 501040, "", YELLOW, NORMAL ) # The resurrecter must be alive
- return False
! if char.dead:
! char.socket.clilocmessage( 3002069, "", YELLOW, NORMAL ) # Resurrection
! char.soundeffect( 0x215 )
! char.resurrect()
! return True
! else:
! char.socket.clilocmessage( 1060197, "", YELLOW, NORMAL ) # You are not dead, and thus cannot be resurrected!
! return False
!
! return True
! else:
! char.say("A HEALER! RESURRECT ME!")
! return True
--- 1,3 ----
! # For Later Use
! # Context Menu Hooks are in contextmenus.healermenu
|