Update of /cvsroot/wpdev/xmlscripts/scripts/commands
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3286/commands
Modified Files:
edit.py
Log Message:
kindling fix
Index: edit.py
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/scripts/commands/edit.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** edit.py 1 Oct 2004 16:34:10 -0000 1.3
--- edit.py 15 Oct 2004 16:36:38 -0000 1.4
***************
*** 24,32 ****
command = (response.button >> 28) & 0xC
item = wolfpack.finditem((response.button & 0x3FFFFFFF) | 0x40000000)
!
# Delete Item
if command == 0x04:
player.log(LOG_MESSAGE, 'Deleting item 0x%x from character 0x%x.\n' % (item.serial, item.container.serial))
item.delete()
# Bounce Item
--- 24,35 ----
command = (response.button >> 28) & 0xC
item = wolfpack.finditem((response.button & 0x3FFFFFFF) | 0x40000000)
! target = item.container
!
# Delete Item
if command == 0x04:
player.log(LOG_MESSAGE, 'Deleting item 0x%x from character 0x%x.\n' % (item.serial, item.container.serial))
item.delete()
+
+ showEditGump(player, target)
# Bounce Item
***************
*** 36,39 ****
--- 39,44 ----
if not tobackpack(item, player):
item.update()
+
+ showEditGump(player, target)
# Show Info For Item
***************
*** 51,55 ****
--- 56,66 ----
if not target.char:
return
+
+ showEditGump(player, target.char)
+ #
+ # Show the edit gump
+ #
+ def showEditGump(player, target):
dialog = wolfpack.gumps.cGump()
dialog.setCallback("commands.edit.response")
***************
*** 58,62 ****
for layer in range(LAYER_RIGHTHAND, LAYER_TRADING+1):
! item = target.char.itemonlayer(layer)
if item:
items.append(item)
--- 69,73 ----
for layer in range(LAYER_RIGHTHAND, LAYER_TRADING+1):
! item = target.itemonlayer(layer)
if item:
items.append(item)
|