Update of /cvsroot/wpdev/xmlscripts/scripts/commands
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17742
Modified Files:
account.py
Added Files:
tele.py
Log Message:
Updates
--- NEW FILE: tele.py ---
"""
\command tele
\description Transports you directly to the targetted location.
"""
import wolfpack
from wolfpack.consts import *
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
def teleport( char, args, target ):
source = char.pos
# Keeps you from teleporting to weird places.
if target.item and target.item.container:
target = char.pos
else:
target = target.pos
char.removefromview()
char.moveto( target )
char.update()
if char.socket:
char.socket.resendworld()
wolfpack.effect(0x3728, source, 10, 15)
wolfpack.effect(0x3728, target, 10, 15)
char.soundeffect(0x1fe)
return True
Index: account.py
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/scripts/commands/account.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** account.py 9 Jul 2004 03:29:18 -0000 1.5
--- account.py 9 Jul 2004 09:00:09 -0000 1.6
***************
*** 1,3 ****
-
"""
\command account
--- 1,2 ----
|