Update of /cvsroot/wpdev/xmlscripts/scripts/commands
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7923/commands
Modified Files:
account.py adddecor.py dupe.py dye.py export.py info.py
kill.py restore.py stat.py tags.py testlos.py tile.py
travel.py
Added Files:
email.py
Log Message:
- Added the bolt command, just lightnings the target.
- Added the email command, changes your account's email.
- Added sparkle effects to the heal/restore commands.
- Fixes for the account command:
Fixed a few typos.
Fixed a bug in updating the password
Added support for the email field.
- Tweaked the hunger script.
- Fixed an update bug with npcs and the dye command.
- Fixed a bug with the dupe command.
Index: kill.py
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/scripts/commands/kill.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** kill.py 15 Jul 2004 22:07:51 -0000 1.3
--- kill.py 23 Aug 2004 03:10:39 -0000 1.4
***************
*** 10,13 ****
--- 10,18 ----
\notes You cannot kill invulnerable characters this way.
"""
+ """
+ \command bolt
+ \description Lightning's the selected character.
+ \notes This does not do any damage.
+ """
import wolfpack
***************
*** 16,19 ****
--- 21,25 ----
def onLoad():
wolfpack.registercommand( "kill", commandKill )
+ wolfpack.registercommand( "bolt", commandBolt )
return
***************
*** 34,35 ****
--- 40,52 ----
target.char.kill()
return True
+
+ def commandBolt(socket, cmd, args):
+ socket.sysmessage( "Please select the target to strike with lightning." )
+ socket.attachtarget( "commands.kill.dobolt", [] )
+ return True
+
+ def dobolt( char, args, target ):
+ socket = char.socket
+ if target.char and not target.char.dead:
+ target.char.lightning()
+ return True
Index: tile.py
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/scripts/commands/tile.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** tile.py 26 May 2004 13:07:21 -0000 1.2
--- tile.py 23 Aug 2004 03:10:39 -0000 1.3
***************
*** 1,3 ****
-
"""
\command tile
--- 1,2 ----
***************
*** 17,44 ****
#
def tileResponse(player, arguments, target):
! if len(arguments) < 3:
! player.socket.sysmessage('Please select the second corner.')
! player.socket.attachtarget("commands.tile.tileResponse", list(arguments) + [target.pos])
! return
! x1 = min(arguments[2].x, target.pos.x)
! x2 = max(arguments[2].x, target.pos.x)
! y1 = min(arguments[2].y, target.pos.y)
! y2 = max(arguments[2].y, target.pos.y)
! z = arguments[0]
! ids = arguments[1]
! player.socket.sysmessage('Creating items from %u,%u to %u,%u at z=%d.' % (x1, y1, x2, y2, z))
! pos = player.pos
! pos.z = z
! for x in range(x1, x2 + 1):
! for y in range(y1, y2 + 1):
! pos.x = x
! pos.y = y
! item = wolfpack.additem(random.choice(ids))
! item.moveto(pos)
! item.decay = 0
! item.update()
#
--- 16,43 ----
#
def tileResponse(player, arguments, target):
! if len(arguments) < 3:
! player.socket.sysmessage('Please select the second corner.')
! player.socket.attachtarget("commands.tile.tileResponse", list(arguments) + [target.pos])
! return
! x1 = min(arguments[2].x, target.pos.x)
! x2 = max(arguments[2].x, target.pos.x)
! y1 = min(arguments[2].y, target.pos.y)
! y2 = max(arguments[2].y, target.pos.y)
! z = arguments[0]
! ids = arguments[1]
! player.socket.sysmessage('Creating items from %u,%u to %u,%u at z=%d.' % (x1, y1, x2, y2, z))
! pos = player.pos
! pos.z = z
! for x in range(x1, x2 + 1):
! for y in range(y1, y2 + 1):
! pos.x = x
! pos.y = y
! item = wolfpack.additem(random.choice(ids))
! item.moveto(pos)
! item.decay = 0
! item.update()
#
***************
*** 46,65 ****
#
def commandTile(socket, command, arguments):
! if arguments.count(' ') != 1:
! socket.sysmessage('Usage: .tile z id{,id}')
! return
! (z, ids) = arguments.split(' ')
! ids = ids.split(',')
! try:
! z = int(z)
! except:
! socket.sysmessage('Invalid z value.')
! return
! socket.sysmessage('Please select the first corner.')
! socket.attachtarget('commands.tile.tileResponse', [z, ids])
#
--- 45,64 ----
#
def commandTile(socket, command, arguments):
! if arguments.count(' ') != 1:
! socket.sysmessage('Usage: .tile z id{,id}')
! return
! (z, ids) = arguments.split(' ')
! ids = ids.split(',')
! try:
! z = int(z)
! except:
! socket.sysmessage('Invalid z value.')
! return
! socket.sysmessage('Please select the first corner.')
! socket.attachtarget('commands.tile.tileResponse', [z, ids])
#
***************
*** 67,69 ****
#
def onLoad():
! wolfpack.registercommand("tile", commandTile)
--- 66,68 ----
#
def onLoad():
! wolfpack.registercommand("tile", commandTile)
Index: adddecor.py
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/scripts/commands/adddecor.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** adddecor.py 17 Aug 2004 19:30:46 -0000 1.5
--- adddecor.py 23 Aug 2004 03:10:39 -0000 1.6
***************
*** 208,212 ****
]
flowers_decor = [
! 'c37', 'c38', 'c45', 'c46', 'c47', 'c48', 'c49', 'c4a', 'c4b', 'c4c', 'c4d', 'c4e', # Small Flowers
'c84', # Foxglove Flowers
'c85', # Orfluer Flowers
--- 208,212 ----
]
flowers_decor = [
! #'c37', 'c38', 'c45', 'c46', 'c47', 'c48', 'c49', 'c4a', 'c4b', 'c4c', 'c4d', 'c4e', # Small Flowers
'c84', # Foxglove Flowers
'c85', # Orfluer Flowers
Index: account.py
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/scripts/commands/account.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** account.py 15 Jul 2004 20:08:30 -0000 1.10
--- account.py 23 Aug 2004 03:10:39 -0000 1.11
***************
*** 284,287 ****
--- 284,291 ----
char.log( LOG_MESSAGE, "Requested %s.rank.\n" % account.name )
return True
+ elif key == 'email':
+ socket.sysmessage( "%s.email = %i" % ( account.name, account.email ) )
+ char.log( LOG_MESSAGE, "Requested %s.email.\n" % account.name )
+ return True
else:
socket.sysmessage( "Error: Unknown account key!" )
***************
*** 323,327 ****
acl_list = wolfpack.accounts.acls()
if not acl_list or len( acl_list ) == 0:
! socket.sysmessage( "Error: No ACLs are defined!" )
return False
if not value in acl_list:
--- 327,331 ----
acl_list = wolfpack.accounts.acls()
if not acl_list or len( acl_list ) == 0:
! socket.sysmessage( "Critical Error: No ACLs are defined!" )
return False
if not value in acl_list:
***************
*** 346,359 ****
socket.sysmessage( "Previous: %s.flags = %s" % ( account.name, account.flags ) )
account.flags = hex2dec(value)
! socket.sysmessage( "Changed: %s.acl = %s" % ( account.name, account.flags ) )
char.log( LOG_MESSAGE, "Modified %s.flags ( %s :: %s ).\n" % ( account.name, oldvalue, value ) )
return True
# MultiGems
elif key == 'multigems':
! if value.lower() == "true" or value.lower() == "false" or value == 1 or value == 0:
oldvalue = account.multigems
! socket.sysmessage( "Previous: %s.acl = %s" % ( account.name, account.multigems ) )
account.multigems = value
! socket.sysmessage( "Changed: %s.acl = %s" % ( account.name, account.multigems ) )
char.log( LOG_MESSAGE, "Modified %s.multigems ( %s :: %s ).\n" % ( account.name, oldvalue, value ) )
return True
--- 350,363 ----
socket.sysmessage( "Previous: %s.flags = %s" % ( account.name, account.flags ) )
account.flags = hex2dec(value)
! socket.sysmessage( "Changed: %s.flags = %s" % ( account.name, account.flags ) )
char.log( LOG_MESSAGE, "Modified %s.flags ( %s :: %s ).\n" % ( account.name, oldvalue, value ) )
return True
# MultiGems
elif key == 'multigems':
! if value.lower() == "true" or value.lower() == "false" or value in [ 0, 1 ]:
oldvalue = account.multigems
! socket.sysmessage( "Previous: %s.multigems = %s" % ( account.name, account.multigems ) )
account.multigems = value
! socket.sysmessage( "Changed: %s.multigems = %s" % ( account.name, account.multigems ) )
char.log( LOG_MESSAGE, "Modified %s.multigems ( %s :: %s ).\n" % ( account.name, oldvalue, value ) )
return True
***************
*** 372,380 ****
oldvalue = account.password
account.password = key
! socket.sysmessage( "Changed: %s.password" % ( account.name, account.password ) )
! char.log( LOG_MESSAGE, "Modified %s.password.\n" % ( char.serial, account.name ) )
return True
# READ ONLY VALUES
! elif key == 'name' or key == 'lastlogin' or key == 'inuse' or key == 'characters' or key == 'rank':
char.log( LOG_MESSAGE, "Attempted modification of read-only value %s.%s.\n" % ( char.serial, account.name, key ) )
socket.sysmessage( "Error: The account.%s property is read only!" % key )
--- 376,398 ----
oldvalue = account.password
account.password = key
! socket.sysmessage( "Changed: %s.password" % account.name )
! char.log( LOG_MESSAGE, "Modified %s.password.\n" % account.name )
! return True
! # Email
! elif key == 'email':
! if len( key ) > 255 or len( key ) == 0:
! if len( key ) > 255:
! socket.sysmessage( "Error: Email exceeds the 255 character limit!" )
! if len( key ) == 0:
! socket.sysmessage( "Error: Email is NULL!" )
! return False
! else:
! oldvalue = account.email
! account.email = key
! socket.sysmessage( "Changed: %s.email" % account.name )
! char.log( LOG_MESSAGE, "Modified %s.email.\n" % account.name )
return True
# READ ONLY VALUES
! elif key in ['name','lastlogin','inuse','characters','rank']:
char.log( LOG_MESSAGE, "Attempted modification of read-only value %s.%s.\n" % ( char.serial, account.name, key ) )
socket.sysmessage( "Error: The account.%s property is read only!" % key )
Index: dupe.py
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/scripts/commands/dupe.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** dupe.py 26 May 2004 13:07:21 -0000 1.2
--- dupe.py 23 Aug 2004 03:10:39 -0000 1.3
***************
*** 23,47 ****
def dupe(socket, command, arguments):
! arguments = arguments.strip() # Remove trailing and leading whitespaces
! amount = 1
! if len( arguments ) > 0:
! try:
! amount = hex2dec(arguments)
! except:
! socket.sysmessage( 'Usage: dupe <amount>' )
! return
! socket.sysmessage( 'Please choose an item to dupe.' )
! socket.attachtarget( "commands.dupe.callback", [amount] )
def callback(char, args, target):
! if not target.item:
! char.socket.sysmessage('You have to target an item.')
! return
! for i in range(0, args[0]):
! target.item.dupe().update()
def onLoad():
! wolfpack.registercommand("dupe", dupe)
--- 23,47 ----
def dupe(socket, command, arguments):
! arguments = arguments.strip() # Remove trailing and leading whitespaces
! amount = 1
! if len( arguments ) > 0:
! try:
! amount = hex2dec(arguments)
! except:
! socket.sysmessage( 'Usage: dupe <amount>' )
! return False
! socket.sysmessage( 'Please choose an item to dupe.' )
! socket.attachtarget( "commands.dupe.callback", [amount] )
def callback(char, args, target):
! if not target.item:
! char.socket.sysmessage('You have to target an item.')
! return False
! for i in range(0, args[0]):
! target.item.dupe().update()
def onLoad():
! wolfpack.registercommand("dupe", dupe)
Index: dye.py
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/scripts/commands/dye.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** dye.py 9 Jul 2004 21:08:36 -0000 1.4
--- dye.py 23 Aug 2004 03:10:39 -0000 1.5
***************
*** 34,37 ****
--- 34,38 ----
if skin == 0:
skin = target.char.orgskin
+ target.char.removefromview()
target.char.skin = hex(skin)
target.char.update()
Index: tags.py
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/scripts/commands/tags.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** tags.py 5 Jul 2004 12:55:35 -0000 1.3
--- tags.py 23 Aug 2004 03:10:39 -0000 1.4
***************
*** 1,3 ****
-
"""
\command settag
--- 1,2 ----
***************
*** 9,13 ****
want to change or attach while value is the desired tag value.
"""
-
"""
\command gettag
--- 8,11 ----
***************
*** 16,20 ****
Shows the type and value of the tag with the given name.
"""
-
"""
\command deltag
--- 14,17 ----
***************
*** 23,30 ****
Deletes the tag with the given name on the selected object.
"""
-
"""
\command taginfo
! \description This command shows a menu with all tags assigned to the
targetted object.
\usage - <code>taginfo</code>
--- 20,26 ----
Deletes the tag with the given name on the selected object.
"""
"""
\command taginfo
! \description This command shows a menu with all tags assigned to the
targetted object.
\usage - <code>taginfo</code>
***************
*** 39,46 ****
if response.button != 1:
return
!
! object = wolfpack.findobject(tagnames[0])
if not object:
! return
tagnames = tagnames[1:]
--- 35,42 ----
if response.button != 1:
return
!
! object = wolfpack.findobject(tagnames[0])
if not object:
! return
tagnames = tagnames[1:]
***************
*** 54,63 ****
object.deltag(tagnames[i])
continue
!
if response.text.has_key(i * 2 + 0) and response.text.has_key(i * 2 + 1):
# Get value and name of the tag
name = response.text[i * 2]
value = response.text[i * 2 + 1]
!
# Should the value be interpreted as a number?
if i * 2 in switches:
--- 50,59 ----
object.deltag(tagnames[i])
continue
!
if response.text.has_key(i * 2 + 0) and response.text.has_key(i * 2 + 1):
# Get value and name of the tag
name = response.text[i * 2]
value = response.text[i * 2 + 1]
!
# Should the value be interpreted as a number?
if i * 2 in switches:
***************
*** 74,78 ****
player.socket.sysmessage("Invalid integer value for tag '%s': '%s'." % (name, value))
continue # Skip to next tag
!
try:
name = str(name)
--- 70,74 ----
player.socket.sysmessage("Invalid integer value for tag '%s': '%s'." % (name, value))
continue # Skip to next tag
!
try:
name = str(name)
***************
*** 80,89 ****
player.socket.sysmessage("Invalid tagname: '%s'." % name)
continue # Skip to next tag
!
# Set the new tag value for the player
oldvalue = object.gettag(tagnames[i])
change = (name != tagnames[i]) or (type(oldvalue) != type(value)) or (oldvalue != value)
!
! if change:
player.log(LOG_MESSAGE, u"Settings tag '%s' on object 0x%x to '%s' (%s).\n" % (unicode(name), object.serial, unicode(value), type(value).__name__))
object.deltag(tagnames[i])
--- 76,85 ----
player.socket.sysmessage("Invalid tagname: '%s'." % name)
continue # Skip to next tag
!
# Set the new tag value for the player
oldvalue = object.gettag(tagnames[i])
change = (name != tagnames[i]) or (type(oldvalue) != type(value)) or (oldvalue != value)
!
! if change:
player.log(LOG_MESSAGE, u"Settings tag '%s' on object 0x%x to '%s' (%s).\n" % (unicode(name), object.serial, unicode(value), type(value).__name__))
object.deltag(tagnames[i])
***************
*** 104,108 ****
dialog.setCallback("commands.tags.taginfo_callback")
dialog.setArgs([object.serial] + tags)
!
dialog.startPage(0)
dialog.addResizeGump(35, 12, 9260, 460, 504)
--- 100,104 ----
dialog.setCallback("commands.tags.taginfo_callback")
dialog.setArgs([object.serial] + tags)
!
dialog.startPage(0)
dialog.addResizeGump(35, 12, 9260, 460, 504)
***************
*** 125,136 ****
dialog.addButton(60, 476, 247, 248, 1)
dialog.addButton(136, 476, 242, 241, 0)
!
# This is a group
count = (len(tags) + 3) / 4
!
! for i in range(0, count):
page = i + 1
dialog.startPage(page)
!
if page > 1:
dialog.addText(88, 445, "Previous Page", 2100)
--- 121,132 ----
dialog.addButton(60, 476, 247, 248, 1)
dialog.addButton(136, 476, 242, 241, 0)
!
# This is a group
count = (len(tags) + 3) / 4
!
! for i in range(0, count):
page = i + 1
dialog.startPage(page)
!
if page > 1:
dialog.addText(88, 445, "Previous Page", 2100)
***************
*** 140,163 ****
dialog.addText(376, 445, "Next Page", 2100)
dialog.addPageButton(448, 445, 9903, 9905, page + 1)
!
for j in range(0, 4):
! tagid = i * 4 + j
if tagid >= len(tags):
continue
!
tag = tags[tagid]
value = object.gettag(tag)
yoffset = j * 80
! dialog.addResizeGump(65, 109 + yoffset, 9200, 405, 68)
! dialog.addText(78, 117 + yoffset, "Name", 2100)
dialog.addText(78, 146 + yoffset, "Value", 2100)
dialog.addResizeGump(123, 144 + yoffset, 9300, 250, 26)
! dialog.addInputField(129, 147 + yoffset, 240, 20, 2100, tagid * 2 + 1, unicode(value))
dialog.addResizeGump(123, 115 + yoffset, 9300, 250, 26)
dialog.addInputField(128, 118 + yoffset, 240, 20, 2100, tagid * 2 + 0, tag)
!
dialog.addCheckbox(380, 118 + yoffset, 208, 209, tagid * 2 + 1, 0)
! dialog.addText(405, 118 + yoffset, "Delete", 2100)
!
dialog.addCheckbox(380, 147 + yoffset, 208, 209, tagid * 2 + 0, type(value) == float or type(value) == int)
dialog.addText(405, 147 + yoffset, "Number", 2100)
--- 136,159 ----
dialog.addText(376, 445, "Next Page", 2100)
dialog.addPageButton(448, 445, 9903, 9905, page + 1)
!
for j in range(0, 4):
! tagid = i * 4 + j
if tagid >= len(tags):
continue
!
tag = tags[tagid]
value = object.gettag(tag)
yoffset = j * 80
! dialog.addResizeGump(65, 109 + yoffset, 9200, 405, 68)
! dialog.addText(78, 117 + yoffset, "Name", 2100)
dialog.addText(78, 146 + yoffset, "Value", 2100)
dialog.addResizeGump(123, 144 + yoffset, 9300, 250, 26)
! dialog.addInputField(129, 147 + yoffset, 240, 20, 2100, tagid * 2 + 1, unicode(value))
dialog.addResizeGump(123, 115 + yoffset, 9300, 250, 26)
dialog.addInputField(128, 118 + yoffset, 240, 20, 2100, tagid * 2 + 0, tag)
!
dialog.addCheckbox(380, 118 + yoffset, 208, 209, tagid * 2 + 1, 0)
! dialog.addText(405, 118 + yoffset, "Delete", 2100)
!
dialog.addCheckbox(380, 147 + yoffset, 208, 209, tagid * 2 + 0, type(value) == float or type(value) == int)
dialog.addText(405, 147 + yoffset, "Number", 2100)
***************
*** 171,175 ****
socket.sysmessage("Select an object you want to use this command on.")
socket.attachtarget("commands.tags.taginfo_response", [])
!
#
# Target response
--- 167,171 ----
socket.sysmessage("Select an object you want to use this command on.")
socket.attachtarget("commands.tags.taginfo_response", [])
!
#
# Target response
***************
*** 185,192 ****
if not target.char.hastag(name):
change = 1
! else:
oldvalue = target.char.gettag(name)
change = (type(oldvalue) != type(value)) or (oldvalue != value)
!
if change:
player.log(LOG_MESSAGE, u"Settings tag '%s' on object 0x%x to '%s' (%s).\n" % (unicode(name), target.char.serial, unicode(value), type(value).__name__))
--- 181,188 ----
if not target.char.hastag(name):
change = 1
! else:
oldvalue = target.char.gettag(name)
change = (type(oldvalue) != type(value)) or (oldvalue != value)
!
if change:
player.log(LOG_MESSAGE, u"Settings tag '%s' on object 0x%x to '%s' (%s).\n" % (unicode(name), target.char.serial, unicode(value), type(value).__name__))
***************
*** 197,204 ****
if not target.item.hastag(name):
change = 1
! else:
oldvalue = target.item.gettag(name)
change = (type(oldvalue) != type(value)) or (oldvalue != value)
!
if change:
player.log(LOG_MESSAGE, u"Settings tag '%s' on object 0x%x to '%s' (%s).\n" % (unicode(name), target.item.serial, unicode(value), type(value).__name__))
--- 193,200 ----
if not target.item.hastag(name):
change = 1
! else:
oldvalue = target.item.gettag(name)
change = (type(oldvalue) != type(value)) or (oldvalue != value)
!
if change:
player.log(LOG_MESSAGE, u"Settings tag '%s' on object 0x%x to '%s' (%s).\n" % (unicode(name), target.item.serial, unicode(value), type(value).__name__))
***************
*** 341,343 ****
wolfpack.registercommand('gettag', commandGettag)
wolfpack.registercommand('deltag', commandDeltag)
! wolfpack.registercommand('taginfo', commandTaginfo)
\ No newline at end of file
--- 337,339 ----
wolfpack.registercommand('gettag', commandGettag)
wolfpack.registercommand('deltag', commandDeltag)
! wolfpack.registercommand('taginfo', commandTaginfo)
Index: stat.py
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/scripts/commands/stat.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** stat.py 2 Jul 2004 13:40:45 -0000 1.3
--- stat.py 23 Aug 2004 03:10:39 -0000 1.4
***************
*** 22,28 ****
from wolfpack.consts import *
! usage = 'Usage: stat <short-stat-name> <value>'
example = 'Example: stat str 100'
def stat( socket, command, args ):
args = args.strip() # Remove trailing and leading whitespaces
--- 22,31 ----
from wolfpack.consts import *
! usage = 'Usage: stat <short-stat-name> <value>'
example = 'Example: stat str 100'
+ def onLoad():
+ wolfpack.registercommand( "stat", stat )
+
def stat( socket, command, args ):
args = args.strip() # Remove trailing and leading whitespaces
***************
*** 89,94 ****
return True
-
- def onLoad():
- wolfpack.registercommand( "stat", stat )
-
--- 92,93 ----
--- NEW FILE: email.py ---
"""
\command email
\description Change your current account email.
\usage - <code>email [value]</code>
Value is the new email for your account. Its length is
limited to 255 characters.
"""
import wolfpack
import wolfpack.accounts
import string
from wolfpack.consts import LOG_MESSAGE
# Loads the command
def onLoad():
wolfpack.registercommand( 'email', commandEmail )
return
# Handles the password command
def commandEmail( socket, cmd, args ):
account = None
password = None
char = socket.player
args = args.strip()
account = wolfpack.accounts.find( char.account.name )
email = str( args )
if len( email ) == 0 or len( email ) > 255:
if len( email ) > 0:
socket.sysmessage( "Usage: email <newemail>" )
elif len( password ) > 255:
socket.sysmessage( "Your email can have a maximum of 255 characters." )
return False
else:
account.email = str( email )
socket.sysmessage( "Your email has been changed." )
char.log( LOG_MESSAGE, "Account %s changed their email.\n" % account.name )
return True
Index: export.py
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/scripts/commands/export.py,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** export.py 15 Aug 2004 08:57:04 -0000 1.11
--- export.py 23 Aug 2004 03:10:39 -0000 1.12
***************
*** 73,77 ****
def exportcmd( socket, command, arguments ):
-
socket.sysmessage( "Target the upper left corner of the area you want to export." )
socket.attachtarget( "commands.export.callback", [] )
--- 73,76 ----
Index: travel.py
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/scripts/commands/travel.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** travel.py 2 Jul 2004 13:40:45 -0000 1.2
--- travel.py 23 Aug 2004 03:10:39 -0000 1.3
***************
*** 14,20 ****
import wolfpack
! import string
! from moongate import *
! from wolfpack.consts import *
def travel( socket, command, args ):
--- 14,18 ----
import wolfpack
! from moongate import sendGump
def travel( socket, command, args ):
Index: restore.py
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/scripts/commands/restore.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** restore.py 9 Jul 2004 21:08:36 -0000 1.2
--- restore.py 23 Aug 2004 03:10:39 -0000 1.3
***************
*** 42,45 ****
--- 42,47 ----
target.char.mana = int( target.char.maxmana )
target.char.updatestats()
+ target.effect(0x376A, 9, 32)
+ target.soundeffect(0x202)
char.log( LOG_MESSAGE, "Restored 0x%x.\n" % target.char.serial )
***************
*** 57,59 ****
--- 59,63 ----
target.char.hitpoints = int( target.char.maxhitpoints )
target.char.updatestats()
+ target.effect(0x376A, 9, 32)
+ target.soundeffect(0x202)
char.log( LOG_MESSAGE, "Healed 0x%x.\n" % target.char.serial )
Index: info.py
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/scripts/commands/info.py,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** info.py 7 Aug 2004 05:35:47 -0000 1.16
--- info.py 23 Aug 2004 03:10:39 -0000 1.17
***************
*** 23,29 ****
def str2bool( str ):
! if str.upper() == "TRUE":
! return True
! return False
def info( socket, command, argstring ):
--- 23,29 ----
def str2bool( str ):
! if str.upper() == "TRUE":
! return True
! return False
def info( socket, command, argstring ):
Index: testlos.py
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/scripts/commands/testlos.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** testlos.py 20 Jun 2004 20:22:17 -0000 1.2
--- testlos.py 23 Aug 2004 03:10:39 -0000 1.3
***************
*** 12,23 ****
"""
-
import wolfpack
! from wolfpack import *
! from wolfpack.consts import *
!
def testlos( socket, command, arguments ):
! wolfpack.console.log( LOG_MESSAGE, "Message" )
def onLoad():
--- 12,20 ----
"""
import wolfpack
! from wolfpack.consts import LOG_MESSAGE
def testlos( socket, command, arguments ):
! wolfpack.console.log( LOG_MESSAGE, "Message" )
def onLoad():
|