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
Mudlover123
Newbie


Joined: 09 Jan 2010
Posts: 3

PostPosted: Sat Jan 09, 2010 5:55 pm   

New to Cmud, need help with trigger
 
I am playing a mud that has a Java client they use but I dislike using it. So I was told to check out Cmud for all of my needs!

Right now if your not using the Java face you have to imput this command before it will allow you to enter your Character name and password.

//\/connect: n/a!!n/a

However I must be having an issue because I can't get any triggers to fire off this command, because / and ! are special characters, which I have already disabled.

Some thoughts?

Oh and this is the old code I was using with Mirc...

n13=on 1:sockopen:client.sock:{
n14= window -ek0 @Client 0 100 $window(-3).w $calc($window(-3).h - 100)
n15= echo -s connected at $time
n16= titlebar xOLDKNIGHTS - %VERSION - connected
n17= .timerlogin 1 1 sockwrite -n client.sock //\/connect: n/a!!n/a
n19=}
Reply with quote
Mudlover123
Newbie


Joined: 09 Jan 2010
Posts: 3

PostPosted: Sat Jan 09, 2010 8:41 pm   Anyone?
 
Just figured I'd come visit to see if anyone had posted an idea.

It's nothing simple that I could figure out, so I would appreciate some help!
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sat Jan 09, 2010 9:13 pm   
 
If it's a command entered from the command line or a script, you need to use a command-input type trigger. It's no longer possible to fire off commands using other trigger types. The good news is that command-input triggers are now essentially dynamic aliases with multi-state benefits.

I have absolutely no clue what to do with the old code you posted, however.
_________________
EDIT: I didn't like my old signature
Reply with quote
gamma_ray
Magician


Joined: 17 Apr 2005
Posts: 496

PostPosted: Sat Jan 09, 2010 9:40 pm   
 
Code:
<event event="onConnect" priority="1220" id="122">
  <value>#send {//\/connect: n/a!!n/a }</value>
</event>
Reply with quote
Mudlover123
Newbie


Joined: 09 Jan 2010
Posts: 3

PostPosted: Sat Jan 09, 2010 11:07 pm   
 
Don't worry about the old code, I was just showing it for reference.

What I am trying to do is one of two things:

Either set it up so that when I connect to this game it either: A. sends the game the connect command. or B. Sees the welcome message which triggers sending the connect command.

I tried the event one gamma posted, but I got this error message:
ERROR: Trigger "{Welcome to Old Knights}" fired but did not compile
Reply with quote
gamma_ray
Magician


Joined: 17 Apr 2005
Posts: 496

PostPosted: Sat Jan 09, 2010 11:19 pm   
 
Oh. Well that's because it's not a trigger. It's an event. Just copy everything inside the code block, open the settings editor, select your window on the left, and then paste. Alternatively, same thing with this one, which is an actual trigger. (I couldn't decide if your pattern was actually {Welcome to Old Knights} or if you just had gratuitous braces, but anyway ~{Welcome to Old Knights~} will match {Welcome to Old Knights} WITH braces. If you don't want to match the braces, take out the ~s.)
Code:
<trigger priority="1220" id="122">
  <pattern>~{Welcome to Old Knights~}</pattern>
  <value>#send {//\/connect: n/a!!n/a }</value>
</trigger>
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