|
TheLastHawk Beginner
Joined: 12 Jun 2006 Posts: 17
|
Posted: Sun Jun 18, 2006 7:04 pm
%0 problem |
I use to be able to sen to the mud this command:
#alias gooc {gdt ooc %0}
and what it did was send everything I typed with the %0 to the mud
gooc This is a test
would be
gdt ooc This is a test
but it won't work with CMUD, how do I get it to send the text after the command usualy done with the %0 "capture"? |
|
|
|
edb6377 Magician
Joined: 29 Nov 2005 Posts: 482
|
Posted: Sun Jun 18, 2006 8:12 pm |
why not %1
#alias gooc {gdt ooc %1} |
|
_________________ Confucious say "Bugs in Programs need Hammer" |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Mon Jun 19, 2006 2:55 am |
I don't remember if Zugg kept the %-1 stuff, but that's how you did it in ZMud (%0 was merely a functionally-necessary bug and never a supported feature). Now you might have to use %params() instead.
|
|
_________________ EDIT: I didn't like my old signature |
|
|
|
edb6377 Magician
Joined: 29 Nov 2005 Posts: 482
|
Posted: Mon Jun 19, 2006 8:26 am |
%-4 works in my script but i am not even sure it is supposed too. I agree with MattLofton here try and use the newer features that are meant to replace them.
|
|
_________________ Confucious say "Bugs in Programs need Hammer" |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Mon Jun 19, 2006 9:31 am |
%0 was never supported in zMud, in fact it was classed as a bug. It would seem that Zugg finally got around to fixing it. The correct usage for your alias in both zMud and CMud is simply:
#alias gooc {gdt ooc}
Unused parameters are still appended to the end. The only time you have to manually specify parameter usage is when you want to do something other than allowing them to be tacked on. |
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
|
TheLastHawk Beginner
Joined: 12 Jun 2006 Posts: 17
|
Posted: Tue Jun 20, 2006 6:11 pm hmmm |
what if I want to have text before and after the text?
like#alias gooc {gdt says in oocly manner %0 and then turns away}
and the way it would show is
gooc hey hey
gdt says in oocly manner hey hey and then turns away
how do I fix that? |
|
|
|
Larkin Wizard
Joined: 25 Mar 2003 Posts: 1113 Location: USA
|
Posted: Tue Jun 20, 2006 6:42 pm |
Try this in CMUD:
Code: |
#ALIAS gooc {gdt says in oocly manner %param(-1) and then turns away} |
|
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Wed Jul 05, 2006 7:03 pm |
This change wasn't intentional. I'll be fixing %0 so that it works like %-1 in the next version.
|
|
|
|
|
|