|
Archaon Newbie
Joined: 13 Nov 2002 Posts: 2
|
Posted: Tue Apr 06, 2004 10:04 pm
commas and a database |
I'm trying to figure out how to add the history of an item to my database, but zMUD seems to have a problem with commas.
I was wondering if there was a way to make zMUD ignore symbols such as commas, parenthesis, etc.
History: Improves the mana regen of necromancers and gives the ability to 'quickchant'
spells to necromancers, as well.
Pattern: ^(*)
Command: #VAR ObjHistory {@ObjHistory" "%trim(%replace(%1,%char(41),*))}
Any help would be appreciated.
Thanks in advance. |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Tue Apr 06, 2004 10:37 pm |
Sure put quotes around the %1. You should have them there anyway. Also you shouldn't mix delimeters.
#VAR ObjHistory {@ObjHistory} {%trim(%replace("%1",%char(41),*))} |
|
|
|
Archaon Newbie
Joined: 13 Nov 2002 Posts: 2
|
Posted: Wed Apr 07, 2004 3:20 am |
Thanks for the help.
The quotes worked, can't believe I overlooked something that simple.
*smack self* |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Wed Apr 07, 2004 4:53 pm |
Oops! [B)]
He's not mixing delimiters. The " " inserts a space between the existing contents of @ObjHistory and the text being added from %trim. Your change will make the output of %trim the default value instead of adding it to the existing value.
#VAR ObjHistory {@ObjHistory" "%trim(%replace("%1",%char(41),*))} |
|
|
|
|
|