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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
mma
Beginner


Joined: 15 Oct 2002
Posts: 21
Location: Switzerland

PostPosted: Thu Oct 17, 2002 6:28 pm   

Lalaynyas Achaea Channel capture script
 
Took the script, pasted into a txt file, imported it, created a small prompt trigger that fills two variables with my hp and mana values and added the #class cap 0 line.
Loged into Achaea, but nothing happened, no output to a channel window.
Created a window with the #win command, but still no output to this window.

What did i do wrong? I am using zmud6.16. Hope you can help.

case insensitivity maybe ??
eg...{#var cap... {#cap @Cap...

-sorry for the misplaced question in "finished scripts"-
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Thu Oct 17, 2002 7:31 pm   
 
Here's the original post
quote:
Ok, For those of you who wanted a script to capture the different channels in Achaea, here's my script:

 #CLASS {Cap} {disable}

#TRIGGER {^~((%w)~):(*)} {#var cap "%1";#class cap 1}
#TRIGGER {*} {#cap @Cap;#gag} "Cap"


The only thing that goes with this, is a line that says
#class cap 0
in your prompt trigger. (everyone has a prompt trigger already, don't they?)

Now, this will capture all guild tells, city tells, order tells to a window named the same as the channel. For something REALLY cool, add this trigger in to the channel window:

#TRIGGER {^~((%w)~):} {#sub %time(hh:mm)}

That will timestamp each tell(It replaces the channel name in the tell, but that information is already in the caption of the window, right?).

Lalaynya


Because Lalaynya used "code" tags in her post, you lose the end-of-lines when you cut-and-paste, and you get this:
#CLASS {Cap} {disable} #TRIGGER {^~((%w)~):(*)} {#var cap "%1";#class cap 1} #TRIGGER {*} {#cap @Cap;#gag} "Cap"

Notice all the lines are run together? These are supposed to be 3 separate lines, like this:
#CLASS {Cap} {disable}
#TRIGGER {^~((%w)~):(*)} {#var cap "%1";#class cap 1}
#TRIGGER {*} {#cap @Cap;#gag} "Cap"


You can cut-and-paste this one. It's a good script though, I've used it myself.

LightBulb
Senior Member
Reply with quote
Lalaynya
Wanderer


Joined: 23 Aug 2002
Posts: 96

PostPosted: Thu Oct 17, 2002 8:53 pm   
 
I didn't realize that the code tag did that when you copy/paste something... I used it to keep the forum from doing a word wrap on the code. Also it makes it look prettier.
Reply with quote
mma
Beginner


Joined: 15 Oct 2002
Posts: 21
Location: Switzerland

PostPosted: Thu Oct 17, 2002 9:03 pm   
 
I dont know what i am doing wrong, i took line bye line and it still does not work??

In Zmud it reads:
Class name: Cap
Class script value:

#CLASS {Cap} {disable}
#TRIGGER {^~((%w)~):(*)} {
#var cap "%1"
#class cap 1
}
#TRIGGER {*} {
#cap @Cap
#gag
}
#CLASS 0

miniprompt trigger:
on prompt
pattern:
^(%d)h, (%d)m

Script value:
#var healthStat %1
#var manaStat %2
#class cap 0

Any idea ???
Reply with quote
Lalaynya
Wanderer


Joined: 23 Aug 2002
Posts: 96

PostPosted: Thu Oct 17, 2002 9:25 pm   
 
Your first trigger is in the wrong class!

It never fires, because it's disabled. Move it to the 'none' class... It HAS to be able to fire, to turn on the cap class.
Reply with quote
mma
Beginner


Joined: 15 Oct 2002
Posts: 21
Location: Switzerland

PostPosted: Thu Oct 17, 2002 10:19 pm   
 
Mea culpa!

At my first try both triggers landed in the non class. Deleted, trigger and class.

2nd try new and both trigger again in the non class. Deleted them again.

3rd try both triggers in the cap class.
I moved the first into the none class and now everything is fine and working.

The only thing i have to say in my defence is that i am a complete newbie at zmud, althoug not at programming ...

Thank you for your help, great script!
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Fri Oct 18, 2002 2:00 am   
 
Hi Lalaynya. Great script. I never realized the "code" tags did that either, until I tried to cut-and-paste to find out what the problem was.

LightBulb
Senior Member
Reply with quote
Lalaynya
Wanderer


Joined: 23 Aug 2002
Posts: 96

PostPosted: Fri Oct 18, 2002 7:06 am   
 
quote:

Hi Lalaynya. Great script. I never realized the "code" tags did that either, until I tried to cut-and-paste to find out what the problem was.

LightBulb
Senior Member



One of my simpler ones from Achaea... I don't play there anymore, but it's nice to see that people use it.

I've had some people ask for help on the mud I currently play, so I guess I'll have to post some more stuff... Now, to decide what to post... Hmmm....
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD 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