[wpdev-commits] xmlscripts/scripts/commands __init__.py,1.16,1.17
Brought to you by:
rip,
thiagocorrea
From: Sebastian H. <dar...@us...> - 2004-09-14 23:03:24
|
Update of /cvsroot/wpdev/xmlscripts/scripts/commands In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19227/commands Modified Files: __init__.py Log Message: 0000309 Index: __init__.py =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/scripts/commands/__init__.py,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** __init__.py 25 Aug 2004 17:03:04 -0000 1.16 --- __init__.py 14 Sep 2004 23:03:09 -0000 1.17 *************** *** 1,3 **** ! import wolfpack from wolfpack import time --- 1,3 ---- !  import wolfpack from wolfpack import time *************** *** 185,188 **** --- 185,206 ---- gump.send(socket) + def newlostarget(char, arguments, target): + targpos = target.pos + + if target.item: + targpos = target.item.pos + elif target.char: + targpos = target.item.char + targpos.z += 10 + + srcpos = char.pos + srcpos.z += 15 + + srcpos.lineofsightnew(targpos) + + def newlos(socket, command, arguments): + socket.attachtarget('commands.newlostarget', []) + socket.sysmessage('Select NEWLOS target.') + def onLoad(): wolfpack.registercommand("test", test) *************** *** 197,200 **** --- 215,219 ---- wolfpack.registercommand("followers", followers) wolfpack.registercommand("gouid", gouid) + wolfpack.registercommand("newlos", newlos) """ |