[wpdev-commits] xmlscripts/scripts/commands tele.py,1.3,1.4
Brought to you by:
rip,
thiagocorrea
From: Sebastian H. <dar...@us...> - 2004-11-01 17:16:22
|
Update of /cvsroot/wpdev/xmlscripts/scripts/commands In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3597/commands Modified Files: tele.py Log Message: Added telem command Index: tele.py =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/scripts/commands/tele.py,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** tele.py 23 Sep 2004 00:27:55 -0000 1.3 --- tele.py 1 Nov 2004 17:16:13 -0000 1.4 *************** *** 4,7 **** --- 4,14 ---- """ + """ + \command telem + \description Transports you directly to the targetted location. + In addition, the target cursor is displayed again once you choose + a new location to allow you consecutive teleportation. + """ + import wolfpack from wolfpack import utilities *************** *** 9,17 **** def onLoad(): wolfpack.registercommand( "tele", commandTele ) return def commandTele( socket, cmd, args ): socket.sysmessage( 'Select your teleport destination.' ) ! socket.attachtarget( "commands.tele.teleport", [] ) return True --- 16,27 ---- def onLoad(): wolfpack.registercommand( "tele", commandTele ) + wolfpack.registercommand( "telem", commandTele ) return def commandTele( socket, cmd, args ): + multi = cmd == 'telem' + socket.sysmessage( 'Select your teleport destination.' ) ! socket.attachtarget( "commands.tele.teleport", [multi] ) return True *************** *** 31,33 **** --- 41,48 ---- utilities.smokepuff(char, source) utilities.smokepuff(char, target) + + if args[0]: + socket.sysmessage( 'Select your teleport destination.' ) + socket.attachtarget( "commands.tele.teleport", [multi] ) + return True |