Update of /cvsroot/wpdev/xmlscripts/scripts/system
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7903/system
Modified Files:
clientmacros.py
Log Message:
Updates
Index: clientmacros.py
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/scripts/system/clientmacros.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** clientmacros.py 9 Oct 2004 05:10:51 -0000 1.1
--- clientmacros.py 9 Oct 2004 05:23:31 -0000 1.2
***************
*** 18,21 ****
--- 18,25 ----
def managePacket( socket, packet ):
+ # Leave this in, used for packet sniffing.
+ #socket.sysmessage( "%i, %x" % ( packet.size, packet.getbyte(3) ) )
+
+ # Open Doors
if packet.size == 5 and packet.getbyte(3) == int( 0x58 ):
if not socket.player:
***************
*** 24,28 ****
openDoor( socket )
return True
! elif ( packet.size == 11 or packet.size == 8 ) and packet.getbyte(3) == int( 0xC7 ):
if not socket.player:
return False
--- 28,33 ----
openDoor( socket )
return True
! # Actions, Salute and Bow
! elif packet.size in [ 8, 11 ] and packet.getbyte(3) == int( 0xC7 ):
if not socket.player:
return False
***************
*** 30,33 ****
--- 35,41 ----
performAction( socket, packet )
return True
+ # Invoke Virtues
+ elif packet.size == 6 and packet.getbyte(3) == int( 0xf4 ):
+ return False
def performAction( socket, packet ):
|