 |
zeiuszeppo Novice
Joined: 22 Nov 2001 Posts: 48 Location: Italy
|
Posted: Wed Apr 10, 2002 4:46 pm
errors using %concat |
hi guys, here is a alias:
alis: telep
#EXEC %concat( @CommandSend, " ", %1, " ", @Color, %-2, "$c0013")
var @CommandSend contains: tele
var @Color contains: $c0011
if I write:
telep bilbo test :) hi
zmud send this command instead
tele bilbo $c0011test : hi, $c0013)
whatis wrong? |
|
|
|
 |
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Wed Apr 10, 2002 5:12 pm |
) is a special character. It must be preceded by ~ if you want zMUD to ignore it. Since it's not, the %concat function ends when it reaches it.
As you may have noticed, you don't really need to use the %concat function. You should have a lot less trouble if you change the alias to:
@CommandSend %1 @{Color}%{-2}$c0013
LightBulb
All scripts untested unless otherwise noted |
|
|
|
 |
zeiuszeppo Novice
Joined: 22 Nov 2001 Posts: 48 Location: Italy
|
Posted: Wed Apr 10, 2002 5:23 pm |
so how can I solve my alias?
what should I do? |
|
|
|
 |
Troubadour GURU
Joined: 14 Oct 2000 Posts: 556 Location: USA
|
Posted: Wed Apr 10, 2002 6:16 pm |
Place the %1 and %-2 in quotes in your alias:
#EXEC %concat( @CommandSend, " ", "%1", " ", @Color, "%-2", "$c0013")
Troubadour  |
|
|
|
 |
zeiuszeppo Novice
Joined: 22 Nov 2001 Posts: 48 Location: Italy
|
Posted: Wed Apr 10, 2002 6:22 pm |
OH, sure, what stupid am I !
thanks! |
|
|
|
 |
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Wed Apr 10, 2002 8:35 pm |
For command line entry:
#AL {telep} {@CommandSend %1 @{Color}%{-2}$c0013}
Or, for the settings editor:
alias: telep
Value: @CommandSend %1 @{Color}%{-2}$c0013
LightBulb
All scripts untested unless otherwise noted |
|
|
|
 |
|
|
|