[wpdev-commits] xmlscripts/scripts/wolfpack/commands info.py,1.10,1.11
Brought to you by:
rip,
thiagocorrea
|
From: <dr...@us...> - 2003-11-28 08:52:47
|
Update of /cvsroot/wpdev/xmlscripts/scripts/wolfpack/commands In directory sc8-pr-cvs1:/tmp/cvs-serv27174 Modified Files: info.py Log Message: Gender fixing, removed poison since it's not an item value anymore it seems... Index: info.py =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/scripts/wolfpack/commands/info.py,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** info.py 23 Sep 2003 12:17:39 -0000 1.10 --- info.py 28 Nov 2003 08:52:44 -0000 1.11 *************** *** 77,81 **** if tile['flag2']&0x04: flags = flags + "stairs, " ! flags = flags[0:len(flags)-2] # cut the last ", " gump.addText( 50, 195, "Properties: "+flags, 0x834 ) --- 77,81 ---- if tile['flag2']&0x04: flags = flags + "stairs, " ! flags = flags[0:len(flags)-2] # cut the last ", " gump.addText( 50, 195, "Properties: "+flags, 0x834 ) *************** *** 299,304 **** gump.addText( 50, 260, "Emote color:", 0x834 ) gump.addInputField( 200, 260, 200, 16, 0x834, 38, hex( char.emotecolor ) ) ! gender = "female" ! if not char.gender: gender = "male" --- 299,310 ---- gump.addText( 50, 260, "Emote color:", 0x834 ) gump.addInputField( 200, 260, 200, 16, 0x834, 38, hex( char.emotecolor ) ) ! if char.gender: ! if char.gender == 0: ! gender = "male" ! elif char.gender == 1: ! gender = "female" ! else ! gender = "male" ! else gender = "male" *************** *** 475,481 **** char.gender = int( hex2dec( textentries[ key ] ) ) elif textentries[key] == "female": - char.gender = 0 - elif textentries[key] == "male": char.gender = 1 if char.npc: --- 481,487 ---- char.gender = int( hex2dec( textentries[ key ] ) ) elif textentries[key] == "female": char.gender = 1 + elif textentries[key] == "male": + char.gender = 0 if char.npc: *************** *** 637,642 **** gump.addText( 50, 260, "Restock:", 0x834 ) gump.addInputField( 200, 260, 200, 16, 0x834, 28, str( item.restock ) ) - gump.addText( 50, 280, "Poisoned:", 0x834 ) - gump.addInputField( 200, 280, 200, 16, 0x834, 29, str( item.poisoned ) ) gump.addText( 310, 340, "Page "+str( page_ )+" of "+str( pages ), 0x834 ) --- 643,646 ---- *************** *** 739,744 **** elif key == 28: item.restock = int( hex2dec( textentries[ key ] ) ) - elif key == 29: - item.poisoned = int( hex2dec( textentries[ key ] ) ) elif key == 30: item.spawnregion = textentries[key] --- 743,746 ---- *************** *** 754,756 **** ! \ No newline at end of file --- 756,758 ---- ! |