Update of /cvsroot/wpdev/xmlscripts/scripts/commands
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10928
Modified Files:
account.py add.py addtree.py disconnect.py dye.py eval.py
events.py freeze.py go.py kill.py password.py restore.py
resurrect.py serverinfo.py skill.py skillinfo.py sound.py
Log Message:
Importing only what needs to be imported.
Index: kill.py
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/scripts/commands/kill.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** kill.py 9 Jul 2004 09:58:21 -0000 1.1
--- kill.py 9 Jul 2004 21:08:36 -0000 1.2
***************
*** 12,15 ****
--- 12,16 ----
import wolfpack
+ from wolfpack.consts import LOG_MESSAGE
def onLoad():
***************
*** 29,32 ****
--- 30,34 ----
else:
target.char.lightning()
+ char.log( LOG_MESSAGE, "Used kill on 0x%x.\n" % target.char.serial )
target.char.kill()
return True
Index: disconnect.py
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/scripts/commands/disconnect.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** disconnect.py 26 May 2004 13:07:21 -0000 1.2
--- disconnect.py 9 Jul 2004 21:08:36 -0000 1.3
***************
*** 1,4 ****
- import wolfpack
-
"""
\command disconnect
--- 1,2 ----
***************
*** 7,10 ****
--- 5,10 ----
"""
+ import wolfpack
+
def disconnect( socket, command, argstring):
socket.sysmessage( "Which client do you want to disconnect?" )
Index: resurrect.py
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/scripts/commands/resurrect.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** resurrect.py 9 Jul 2004 07:41:02 -0000 1.2
--- resurrect.py 9 Jul 2004 21:08:36 -0000 1.3
***************
*** 8,12 ****
import wolfpack
! from wolfpack.consts import *
def onLoad():
--- 8,12 ----
import wolfpack
! from wolfpack.consts import LOG_MESSAGE
def onLoad():
***************
*** 33,37 ****
target.char.soundeffect( 0x215 )
target.char.resurrect()
! char.log(LOG_MESSAGE, "Resurrects character 0x%x.\n" % target.char.serial)
# Restore the character as well, added bonus.
target.char.hitpoints = target.char.maxhitpoints
--- 33,37 ----
target.char.soundeffect( 0x215 )
target.char.resurrect()
! char.log( LOG_MESSAGE, "Resurrects character 0x%x.\n" % target.char.serial )
# Restore the character as well, added bonus.
target.char.hitpoints = target.char.maxhitpoints
Index: skill.py
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/scripts/commands/skill.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** skill.py 2 Jul 2004 13:40:45 -0000 1.3
--- skill.py 9 Jul 2004 21:08:36 -0000 1.4
***************
*** 19,23 ****
import wolfpack
import string
! from wolfpack.consts import *
usage = 'Usage: skill <skill-name> <value*10>'
--- 19,23 ----
import wolfpack
import string
! from wolfpack.consts import YELLOW, NORMAL
usage = 'Usage: skill <skill-name> <value*10>'
Index: go.py
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/scripts/commands/go.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** go.py 7 Jul 2004 04:21:37 -0000 1.8
--- go.py 9 Jul 2004 21:08:36 -0000 1.9
***************
*** 31,35 ****
from wolfpack.consts import *
from system.makemenus import MakeMenu, MakeAction, findmenu
-
from wolfpack.console import *
--- 31,34 ----
***************
*** 132,142 ****
if len(arguments) == 0:
! global generated
! if not generated:
! socket.sysmessage('Generating go menu.')
! socket.sysmessage('Please wait...')
! generateGoMenu()
! generated = 1
!
menu = findmenu('GOMENU')
if menu:
--- 131,141 ----
if len(arguments) == 0:
! global generated
! if not generated:
! socket.sysmessage('Generating go menu.')
! socket.sysmessage('Please wait...')
! generateGoMenu()
! generated = 1
!
menu = findmenu('GOMENU')
if menu:
***************
*** 263,266 ****
def onUnload():
! global generated
! generated = 0
--- 262,265 ----
def onUnload():
! global generated
! generated = 0
Index: password.py
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/scripts/commands/password.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** password.py 9 Jul 2004 08:38:25 -0000 1.1
--- password.py 9 Jul 2004 21:08:36 -0000 1.2
***************
*** 10,14 ****
import wolfpack.accounts
import string
! from wolfpack.consts import *
# Loads the command
--- 10,14 ----
import wolfpack.accounts
import string
! from wolfpack.consts import LOG_MESSAGE
# Loads the command
Index: skillinfo.py
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/scripts/commands/skillinfo.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** skillinfo.py 5 Jul 2004 12:55:35 -0000 1.4
--- skillinfo.py 9 Jul 2004 21:08:36 -0000 1.5
***************
*** 4,12 ****
\description Show a dialog to modify the skill values and caps of a character.
"""
-
- from wolfpack.utilities import tobackpack
import wolfpack
- from wolfpack.consts import *
import wolfpack.gumps
from math import ceil, floor
from commands.info import iteminfo
--- 4,11 ----
\description Show a dialog to modify the skill values and caps of a character.
"""
import wolfpack
import wolfpack.gumps
+ from wolfpack.utilities import tobackpack
+ from wolfpack.consts import ALLSKILLS, SKILLNAMES, LOG_MESSAGE
from math import ceil, floor
from commands.info import iteminfo
Index: serverinfo.py
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/scripts/commands/serverinfo.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** serverinfo.py 29 Jun 2004 11:36:12 -0000 1.2
--- serverinfo.py 9 Jul 2004 21:08:36 -0000 1.3
***************
*** 14,18 ****
import wolfpack
import wolfpack.accounts
- from wolfpack.consts import *
from wolfpack.gumps import *
from wolfpack.time import *
--- 14,17 ----
Index: sound.py
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/scripts/commands/sound.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** sound.py 26 May 2004 13:07:21 -0000 1.2
--- sound.py 9 Jul 2004 21:08:36 -0000 1.3
***************
*** 16,20 ****
import wolfpack
! from wolfpack.utilities import *
def sound( socket, command, arguments ):
--- 16,20 ----
import wolfpack
! from wolfpack.utilities import hex2dec
def sound( socket, command, arguments ):
Index: account.py
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/scripts/commands/account.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** account.py 9 Jul 2004 09:58:21 -0000 1.7
--- account.py 9 Jul 2004 21:08:36 -0000 1.8
***************
*** 49,52 ****
--- 49,53 ----
import string
from wolfpack.utilities import hex2dec
+ from wolfpack.consts import LOG_MESSAGE
usage0 = "Account Command Usage:"
***************
*** 85,94 ****
# Reload Accounts
if action == 'reload':
! char.log( LOG_MESSAGE, "0x%x reloaded accounts.\n" % char.serial )
wolfpack.accounts.reload()
return True
# Save Accounts
elif action == 'save':
! char.log( LOG_MESSAGE, "0x%x saved accounts.\n" % char.serial )
wolfpack.accounts.save()
return True
--- 86,95 ----
# Reload Accounts
if action == 'reload':
! char.log( LOG_MESSAGE, "Reloaded accounts.\n" % char.serial )
wolfpack.accounts.reload()
return True
# Save Accounts
elif action == 'save':
! char.log( LOG_MESSAGE, "Saved accounts.\n" % char.serial )
wolfpack.accounts.save()
return True
***************
*** 169,174 ****
else:
account.delete()
! socket.sysmessage( "Success: Account %s removed!" % username )
! char.log( LOG_MESSAGE, "0x%x removed account: %s\n" % ( char.serial, username ) )
return True
# Failure
--- 170,175 ----
else:
account.delete()
! socket.sysmessage( "Success: Account %s removed!" % account.name )
! char.log( LOG_MESSAGE, "Removed account: %s\n" % account.name )
return True
# Failure
***************
*** 198,202 ****
else:
if account:
! socket.sysmessage( "Error: Account %s exists!" % username )
return False
# Create the Account
--- 199,203 ----
else:
if account:
! socket.sysmessage( "Error: Account %s exists!" % account.name )
return False
# Create the Account
***************
*** 205,209 ****
newaccount.acl = 'player'
socket.sysmessage( "You created the account successfully!" )
! char.log( LOG_MESSAGE, "0x%x created account: %s\n" % ( char.serial, username ) )
return True
# Failure
--- 206,210 ----
newaccount.acl = 'player'
socket.sysmessage( "You created the account successfully!" )
! char.log( LOG_MESSAGE, "Created account: %s\n" % account.name )
return True
# Failure
***************
*** 233,269 ****
if key == 'acl':
socket.sysmessage( "%s.acl = %s" % ( account.name, account.acl ) )
! char.log( LOG_MESSAGE, "0x%x requested %s.acl.\n" % ( char.serial, account.name ) )
return True
elif key == 'characters':
socket.sysmessage( "%s.characters = %s" % ( account.name, account.characters ) )
! char.log( LOG_MESSAGE, "0x%x requested %s.characters.\n" % ( char.serial, account.name ) )
return True
elif key == 'flags':
socket.sysmessage( "%s.flags = %s" % ( account.name, account.flags ) )
! char.log( LOG_MESSAGE, "0x%x requested %s.flags.\n" % ( char.serial, account.name ) )
return True
elif key == 'inuse':
socket.sysmessage( "%s.inuse = %s" % ( account.name, account.inuse ) )
! char.log( LOG_MESSAGE, "0x%x requested %s.inuse.\n" % ( char.serial, account.name ) )
return True
elif key == 'lastlogin':
socket.sysmessage( "%s.lastlogin = %s" % ( account.name, account.lastlogin ) )
! char.log( LOG_MESSAGE, "0x%x requested %s.lastlogin.\n" % ( char.serial, account.name ) )
return True
elif key == 'multigems':
socket.sysmessage( "%s.multigems = %s" % ( account.name, account.multigems ) )
! char.log( LOG_MESSAGE, "0x%x requested %s.multigems.\n" % ( char.serial, account.name ) )
return True
elif key == 'name':
socket.sysmessage( "%s.name = %s" % ( account.name, account.name ) )
! char.log( LOG_MESSAGE, "0x%x requested %s.name.\n" % ( char.serial, account.name ) )
return True
elif key == 'password' and ( account.name == characcount.name or characcount.rank == 100 ):
socket.sysmessage( "%s.password = %s" % ( account.name, account.password ) )
! char.log( LOG_MESSAGE, "0x%x requested %s.password.\n" % ( char.serial, account.name ) )
return True
elif key == 'rank':
socket.sysmessage( "%s.rank = %i" % ( account.name, account.rank ) )
! char.log( LOG_MESSAGE, "0x%x requested %s.rank.\n" % ( char.serial, account.name ) )
return True
else:
--- 234,270 ----
if key == 'acl':
socket.sysmessage( "%s.acl = %s" % ( account.name, account.acl ) )
! char.log( LOG_MESSAGE, "Requested %s.acl.\n" % account.name )
return True
elif key == 'characters':
socket.sysmessage( "%s.characters = %s" % ( account.name, account.characters ) )
! char.log( LOG_MESSAGE, "Requested %s.characters.\n" % account.name )
return True
elif key == 'flags':
socket.sysmessage( "%s.flags = %s" % ( account.name, account.flags ) )
! char.log( LOG_MESSAGE, "Requested %s.flags.\n" % account.name )
return True
elif key == 'inuse':
socket.sysmessage( "%s.inuse = %s" % ( account.name, account.inuse ) )
! char.log( LOG_MESSAGE, "Requested %s.inuse.\n" % account.name )
return True
elif key == 'lastlogin':
socket.sysmessage( "%s.lastlogin = %s" % ( account.name, account.lastlogin ) )
! char.log( LOG_MESSAGE, "Requested %s.lastlogin.\n" % account.name )
return True
elif key == 'multigems':
socket.sysmessage( "%s.multigems = %s" % ( account.name, account.multigems ) )
! char.log( LOG_MESSAGE, "Requested %s.multigems.\n" % account.name )
return True
elif key == 'name':
socket.sysmessage( "%s.name = %s" % ( account.name, account.name ) )
! char.log( LOG_MESSAGE, "Requested %s.name.\n" % account.name )
return True
elif key == 'password' and ( account.name == characcount.name or characcount.rank == 100 ):
socket.sysmessage( "%s.password = %s" % ( account.name, account.password ) )
! char.log( LOG_MESSAGE, "Requested %s.password.\n" % account.name )
return True
elif key == 'rank':
socket.sysmessage( "%s.rank = %i" % ( account.name, account.rank ) )
! char.log( LOG_MESSAGE, "Requested %s.rank.\n" % account.name )
return True
else:
***************
*** 301,306 ****
account.acl == value
socket.sysmessage( "Changed: %s.acl = %s" % ( account.name, account.acl ) )
! char.log( LOG_MESSAGE, "0x%x modified %s.acl.\n" % ( char.serial, account.name ) )
! char.log( LOG_MESSAGE, "%s.acl = %s :: %s.flags = %s\n" % ( account.name, oldvalue, account.name, value ) )
return True
else:
--- 302,306 ----
account.acl == value
socket.sysmessage( "Changed: %s.acl = %s" % ( account.name, account.acl ) )
! char.log( LOG_MESSAGE, "Modified %s.acl ( %s :: %s ).\n" % ( account.name, oldvale, value ) )
return True
else:
***************
*** 313,318 ****
account.flags = hex2dec(value)
socket.sysmessage( "Changed: %s.acl = %s" % ( account.name, account.flags ) )
! char.log( LOG_MESSAGE, "0x%x modified %s.flags.\n" % ( char.serial, account.name ) )
! char.log( LOG_MESSAGE, "%s.flags = 0x%x :: %s.flags = 0x%x\n" % ( account.name, oldvalue, account.name, value ) )
return True
# MultiGems
--- 313,317 ----
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
***************
*** 323,328 ****
account.multigems == value
socket.sysmessage( "Changed: %s.acl = %s" % ( account.name, account.acl ) )
! char.log( LOG_MESSAGE, "0x%x modified %s.multigems.\n" % ( char.serial, account.name ) )
! char.log( LOG_MESSAGE, "%s.multigems = %s :: %s.multigems = %s\n" % ( account.name, oldvalue, account.name, value ) )
return True
else:
--- 322,326 ----
account.multigems == value
socket.sysmessage( "Changed: %s.acl = %s" % ( account.name, account.acl ) )
! char.log( LOG_MESSAGE, "Modified %s.multigems ( %s :: %s ).\n" % ( account.name, oldvalue, value ) )
return True
else:
***************
*** 341,349 ****
account.password = key
socket.sysmessage( "Changed: %s.password" % ( account.name, account.password ) )
! char.log( LOG_MESSAGE, "0x%x 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, "0x%x 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 )
return False
--- 339,347 ----
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 )
return False
Index: eval.py
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/scripts/commands/eval.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** eval.py 26 May 2004 13:07:21 -0000 1.2
--- eval.py 9 Jul 2004 21:08:36 -0000 1.3
***************
*** 2,11 ****
# All these imports are available to the python scriptlets as well
# Keep that in mind
- from wolfpack import *
- from wolfpack.consts import *
! def evalcommand(socket, command, arguments):
! script = "from wolfpack import *\nfrom wolfpack.consts import *\n%s\n\n" % arguments
try:
code = compile(script, '<SOCKET>', 'exec')
--- 2,10 ----
# All these imports are available to the python scriptlets as well
# Keep that in mind
! import wolfpack
+ def evalcommand(socket, command, arguments):
+ script = "import wolfpack\nfrom wolfpack.consts import *\n%s\n\n" % arguments
try:
code = compile(script, '<SOCKET>', 'exec')
Index: events.py
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/scripts/commands/events.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** events.py 6 Jul 2004 12:52:14 -0000 1.1
--- events.py 9 Jul 2004 21:08:36 -0000 1.2
***************
*** 1,5 ****
import wolfpack
! from wolfpack.consts import *
def addevent_response(player, arguments, target):
--- 1,5 ----
import wolfpack
! from wolfpack.consts import LOG_MESSAGE, EVENT_USE
def addevent_response(player, arguments, target):
***************
*** 13,22 ****
player.socket.sysmessage("You've burnt your fingers!")
return
!
object = target.char
else:
player.socket.sysmessage('You have to target a character or item.')
return
!
player.log(LOG_MESSAGE, "Adds event '%s' to object 0x%x.\n" % (event, object.serial))
object.addevent(event)
--- 13,22 ----
player.socket.sysmessage("You've burnt your fingers!")
return
!
object = target.char
else:
player.socket.sysmessage('You have to target a character or item.')
return
!
player.log(LOG_MESSAGE, "Adds event '%s' to object 0x%x.\n" % (event, object.serial))
object.addevent(event)
***************
*** 34,41 ****
socket.sysmessage('Usage: addevent <identifier>')
return
!
event = arguments.strip()
!
! try:
wolfpack.hasevent(event, EVENT_USE)
except:
--- 34,41 ----
socket.sysmessage('Usage: addevent <identifier>')
return
!
event = arguments.strip()
!
! try:
wolfpack.hasevent(event, EVENT_USE)
except:
***************
*** 45,49 ****
socket.sysmessage("Please select the object you want to add the event '%s' to." % event)
socket.attachtarget('commands.events.addevent_response', [event])
!
def removeevent_response(player, arguments, target):
event = arguments[0]
--- 45,49 ----
socket.sysmessage("Please select the object you want to add the event '%s' to." % event)
socket.attachtarget('commands.events.addevent_response', [event])
!
def removeevent_response(player, arguments, target):
event = arguments[0]
***************
*** 56,65 ****
player.socket.sysmessage("You've burnt your fingers!")
return
!
object = target.char
else:
player.socket.sysmessage('You have to target a character or item.')
return
!
if object.hasevent(event):
player.log(LOG_MESSAGE, "Removes event '%s' from object 0x%x.\n" % (event, object.serial))
--- 56,65 ----
player.socket.sysmessage("You've burnt your fingers!")
return
!
object = target.char
else:
player.socket.sysmessage('You have to target a character or item.')
return
!
if object.hasevent(event):
player.log(LOG_MESSAGE, "Removes event '%s' from object 0x%x.\n" % (event, object.serial))
***************
*** 80,86 ****
socket.sysmessage('Usage: removeevent <identifier>')
return
!
event = arguments.strip()
!
try:
wolfpack.hasevent(event, EVENT_USE)
--- 80,86 ----
socket.sysmessage('Usage: removeevent <identifier>')
return
!
event = arguments.strip()
!
try:
wolfpack.hasevent(event, EVENT_USE)
Index: add.py
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/scripts/commands/add.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** add.py 7 Jul 2004 04:21:37 -0000 1.7
--- add.py 9 Jul 2004 21:08:36 -0000 1.8
***************
*** 1,5 ****
import wolfpack
! from wolfpack.consts import *
from wolfpack import console
from system.makemenus import MakeItemAction, MakeMenu, MakeAction, findmenu
--- 1,5 ----
import wolfpack
! from wolfpack.consts import WPDT_NPC, WPDT_ITEM, WPDT_MULTI
from wolfpack import console
from system.makemenus import MakeItemAction, MakeMenu, MakeAction, findmenu
Index: addtree.py
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/scripts/commands/addtree.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** addtree.py 26 May 2004 13:07:21 -0000 1.4
--- addtree.py 9 Jul 2004 21:08:36 -0000 1.5
***************
*** 9,13 ****
import wolfpack
! from wolfpack.consts import *
from wolfpack.utilities import hex2dec
from wolfpack import console
--- 9,13 ----
import wolfpack
! from wolfpack.consts import WPDT_ITEM
from wolfpack.utilities import hex2dec
from wolfpack import console
Index: dye.py
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/scripts/commands/dye.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** dye.py 15 Jun 2004 19:28:59 -0000 1.3
--- dye.py 9 Jul 2004 21:08:36 -0000 1.4
***************
*** 16,20 ****
import wolfpack
! from wolfpack.utilities import *
def dye( socket, command, arguments ):
--- 16,20 ----
import wolfpack
! from wolfpack.utilities import hex2dec
def dye( socket, command, arguments ):
Index: freeze.py
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/scripts/commands/freeze.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** freeze.py 15 Jun 2004 19:28:59 -0000 1.1
--- freeze.py 9 Jul 2004 21:08:36 -0000 1.2
***************
*** 15,19 ****
import wolfpack
! from wolfpack.utilities import *
def freeze( socket, command, arguments ):
--- 15,19 ----
import wolfpack
! from wolfpack.utilities import booleantoggle
def freeze( socket, command, arguments ):
***************
*** 25,32 ****
def response( char, args, target ):
if target.char:
! if target.char.frozen == 0:
! target.char.frozen = 1
! elif target.char.frozen == 1:
! target.char.frozen = 0
else:
char.socket.sysmessage( 'That was not a valid object.', GRAY )
--- 25,29 ----
def response( char, args, target ):
if target.char:
! target.char.frozen = booleantoggle( target.char.frozen )
else:
char.socket.sysmessage( 'That was not a valid object.', GRAY )
Index: restore.py
===================================================================
RCS file: /cvsroot/wpdev/xmlscripts/scripts/commands/restore.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** restore.py 8 Apr 2004 19:04:50 -0000 1.1
--- restore.py 9 Jul 2004 21:08:36 -0000 1.2
***************
*** 21,26 ****
import wolfpack
! from wolfpack.consts import *
! from wolfpack.utilities import *
def onLoad():
--- 21,25 ----
import wolfpack
! from wolfpack.consts import LOG_MESSAGE
def onLoad():
***************
*** 43,46 ****
--- 42,46 ----
target.char.mana = int( target.char.maxmana )
target.char.updatestats()
+ char.log( LOG_MESSAGE, "Restored 0x%x.\n" % target.char.serial )
def heal( socket, command, arguments ):
***************
*** 57,58 ****
--- 57,59 ----
target.char.hitpoints = int( target.char.maxhitpoints )
target.char.updatestats()
+ char.log( LOG_MESSAGE, "Healed 0x%x.\n" % target.char.serial )
|