[wpdev-commits] xmlscripts/scripts/npc __init__.py,NONE,1.1 healer.py,NONE,1.1
Brought to you by:
rip,
thiagocorrea
|
From: <co...@us...> - 2003-10-01 09:19:00
|
Update of /cvsroot/wpdev/xmlscripts/scripts/npc
In directory sc8-pr-cvs1:/tmp/cvs-serv26305
Added Files:
__init__.py healer.py
Log Message:
npc healer ( resurrect context menu )
--- NEW FILE: __init__.py ---
--- NEW FILE: healer.py ---
#################################################################
# ) (\_ # WOLFPACK 13.0.0 Scripts #
# (( _/{ "-; # Created by: codex #
# )).-' {{ ;'` # Revised by: #
# ( ( ;._ \\ ctr # Last Modification: Created #
#################################################################
from wolfpack.consts import *
import wolfpack
def onContextEntry( char, healer, tag ):
if( tag == 1 ):
if not char or not healer:
return OOPS
if healer.dead:
char.socket.clilocmessage( 501040, "", YELLOW, NORMAL ) # The resurrecter must be alive
return OOPS
if char.dead:
char.socket.clilocmessage( 3002069, "", YELLOW, NORMAL ) # Resurrection
char.resurrect()
return OK
else:
char.socket.clilocmessage( 1060197, "", YELLOW, NORMAL ) # You are not dead, and thus cannot be resurrected!
return OOPS
return OK
|