Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Caman
Newbie


Joined: 20 Mar 2009
Posts: 9

PostPosted: Sat Mar 21, 2009 7:58 am   

Alias working Diff than Zmud, help
 
I make a Alias in Zmud and Cmud "hm" to do 2 comands. I run some triggers to copy a Chain of Commands that appear in the screen
Example : Combination! ~( (%w) (%w) (%w) ~) is the pattern and the output is each % as own command. "HM" happends to be one of those commands
and when the client catches the var it inputs it direct instead of using the alias in Cmud but Zmud uses the alias flawless with the triggers.

My question is How do I get Cmud to Act like Zmud ;p

P.S. in example the mud outputs those extra () so I ignore them
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Sat Mar 21, 2009 8:20 am   
 
Show us your code. It'll depend on the specific way you're doing this - for example, #send doesn't check aliases, or you might be encountering this problem. Without seeing your code, there's no way of knowing.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Caman
Newbie


Joined: 20 Mar 2009
Posts: 9

PostPosted: Sat Mar 21, 2009 8:25 am   
 
I use the package editor. Pattern is literally : Combination! ~( (%w) (%w) (%w) ~)

command 1 = %1
command 2 = %2
command 3 = %3

I used the editor to make the alias too

<?xml version="1.0" encoding="ISO-8859-1" ?>
<cmud>
<trigger priority="355" copy="yes">
<pattern>Combination! ~( (%w) (%w) (%w) ~)</pattern>
<value>%1
%2
%3</value>
</trigger>
</cmud>

is the direct copy paste it changed it to XML apparently ;p
So the pattern is a constantly changing combination of commands and when "hm" is one
I need it to Input two commands
command 1 = Hammer
command 2 = fly
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Sat Mar 21, 2009 11:24 am   
 
The page I linked above will explain what your problem is.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Caman
Newbie


Joined: 20 Mar 2009
Posts: 9

PostPosted: Sat Mar 21, 2009 1:50 pm   
 
Thank you. #exec did the job ;p
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net