[wpdev-commits] xmlscripts/scripts/tools pickaxe.py,1.7,1.8
Brought to you by:
rip,
thiagocorrea
|
From: <dr...@pr...> - 2004-01-26 21:02:42
|
Update of /cvsroot/wpdev/xmlscripts/scripts/tools In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21903/scripts/tools Modified Files: pickaxe.py Log Message: I found cliloc messages. Woo! (Should probably make an index or something... Index: pickaxe.py =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/scripts/tools/pickaxe.py,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** pickaxe.py 25 Jan 2004 01:26:14 -0000 1.7 --- pickaxe.py 26 Jan 2004 21:01:01 -0000 1.8 *************** *** 18,40 **** #Already digging ? if char.hastag( 'is_mining' ) and ( int( char.gettag( 'is_mining' ) ) > servertime() ): ! char.socket.clilocmessage( 503029, "", GRAY, NORMAL ) # You are already digging. return OK # Can't mine on horses if char.itemonlayer( LAYER_MOUNT ): ! char.socket.clilocmessage( 501864, "", GRAY, NORMAL ) # You can't mine while riding. return OK # Who is tool owner ? if tool.getoutmostchar() != char: ! char.socket.clilocmessage( 500364, "", GRAY, NORMAL ) # You can't use that, it belongs to someone else return OK # Is that mining tool ? if isminingtool( tool ): ! char.socket.clilocmessage( 503033, "", GRAY, NORMAL ) # Where do you wish to dig? char.socket.attachtarget( "skills.mining.response", [ tool ] ) else: ! char.socket.clilocmessage( 500735, "", GRAY, NORMAL ) # Don't play with things you don't know about. :) return OK --- 18,44 ---- #Already digging ? if char.hastag( 'is_mining' ) and ( int( char.gettag( 'is_mining' ) ) > servertime() ): ! # You are already digging. ! char.socket.clilocmessage( 503029, "", GRAY ) return OK # Can't mine on horses if char.itemonlayer( LAYER_MOUNT ): ! # You can't mine while riding. ! char.socket.clilocmessage( 501864, "", GRAY ) return OK # Who is tool owner ? if tool.getoutmostchar() != char: ! # You can't use that, it belongs to someone else ! char.socket.clilocmessage( 500364, "", GRAY ) return OK # Is that mining tool ? if isminingtool( tool ): ! # Where do you wish to dig? ! char.socket.clilocmessage( 503033, "", GRAY) char.socket.attachtarget( "skills.mining.response", [ tool ] ) else: ! char.socket.clilocmessage( 500735, "", GRAY) # Don't play with things you don't know about. :) return OK |