[wpdev-commits] xmlscripts/scripts/commands invis.py,NONE,1.1
Brought to you by:
rip,
thiagocorrea
From: Richard M. <dr...@us...> - 2004-07-09 10:31:07
|
Update of /cvsroot/wpdev/xmlscripts/scripts/commands In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32483/commands Added Files: invis.py Log Message: I almost forgot to commit this --- NEW FILE: invis.py --- #===============================================================# # ) (\_ | WOLFPACK 13.0.0 Scripts # (( _/{ "-; | Created by: Dreoth # )).-' {{ ;'` | Revised by: # ( ( ;._ \\ ctr | Last Modification: Created #===============================================================# """ \command invis \description Toggle invisibility. """ import wolfpack from wolfpack.utilities import booleantoggle def onLoad(): wolfpack.registercommand( "invis", commandInvis ) return def commandInvis( socket, cmd, args ): char = socket.player char.invisible = booleantoggle( char.invisible ) char.update() socket.sysmessage( "Invisible is now '%i'." % char.invisible ) return True |