[wpdev-commits] xmlscripts/scripts shrink.py,1.4,1.5
Brought to you by:
rip,
thiagocorrea
From: Sebastian H. <dar...@us...> - 2004-09-04 21:19:13
|
Update of /cvsroot/wpdev/xmlscripts/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23652 Modified Files: shrink.py Log Message: update version db script. Index: shrink.py =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/scripts/shrink.py,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** shrink.py 26 May 2004 13:07:20 -0000 1.4 --- shrink.py 4 Sep 2004 21:19:02 -0000 1.5 *************** *** 8,15 **** # Shrink import wolfpack def onUse( char, item ): if not item.hastag( "npc_id" ): - char.socket.clilocmessage( 0, 500, 312 ) # You can't reach... item.delete() return 1 --- 8,15 ---- # Shrink import wolfpack + from wolfpack.consts import * def onUse( char, item ): if not item.hastag( "npc_id" ): item.delete() return 1 *************** *** 17,36 **** # Needs to be on ourself if item.getoutmostchar() != char: ! char.socket.clilocmessage( 0, 500, 312 ) # You can't reach... return 1 ! npcid = item.gettag( "npc_id" ) ! npctype = item.gettag( "npc_type" ) ! pos = char.pos ! npc = wolfpack.addnpc( npcid, pos ) ! if npctype == 'mount': ! char.mount(npc) ! item.delete() ! elif npctype == 'follow': ! npc.tamed = 1 ! npc.npcwander = 0 ! npc.follow(char) ! item.delete() ! else: ! item.delete() ! return 1 --- 17,40 ---- # Needs to be on ourself if item.getoutmostchar() != char: ! char.socket.clilocmessage( 500312 ) # You can't reach... return 1 ! npcid = item.gettag("npc_id") ! npc = wolfpack.addnpc(npcid, char.pos) ! ! if npc: ! if item.hastag('npc_type') and char.gettag('npc_type') == 'mount': ! char.mount(npc) ! else: ! npc.owner = char ! npc.tamed = True ! npc.wandertype = 0 ! npc.direction = char.direction ! npc.update() ! ! npc.sound(SND_IDLE) ! npc.action(ANIM_CASTDIRECTED) ! ! item.delete() ! return True ! |