[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  MUSHclient Help

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?
(New message)
Subject: MUSHclient Help
Name:
Your forum user name.
Register forum user name
Password:
Your forum password.
Forgotten password?
Message:
Message to be posted (in English, please)
Maximum of 6000 characters. Text only please, no HTML.
Forum codes:
Check this if your message uses 'forum codes' or templates (auto-detected for new posts).
Forum codes Templates

Save this message ...


Subject review (reverse sequence)

Pages: 1 2  

Posted by Meerclar   USA  (554 posts)  [Biography] bio
Date Mon 22 Jan 2007 04:32 PM (UTC)  quote  ]
Message
If that's all in a single plugin, odds are it so far exceeds the single post character limit it's near painful to try breaking into postable chunks.

Meerclar - Lord of Cats
Coder, Builder, and Tormenter of Mortals
Stormbringer: Rebirth
storm-bringer.org:4500
www.storm-bringer.org
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio   Moderator
Date Mon 22 Jan 2007 04:12 PM (UTC)  quote  ]
Message
Sounds great -- thanks for offering to share. Out of curiosity why can't you post it here?

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Mictlan   (1 post)  [Biography] bio
Date Mon 22 Jan 2007 01:28 PM (UTC)  quote  ]
Message
well i cant post my plugin for you guys here conact me in aard for it

it shows
quest info/results auto posted to your personal channel of choice

example of taken quest:

(Group) -={666}=- Mictlan: '}- -¤--^}-{Quest}-{Camaxtli }-{ a professional cook }-{ Pantry }-{ Wedded Bliss }-{ 24mins}-{^--¤- -{'

example of completed quest:

(Group) -={666}=- Mictlan: '}- -¤--^}-{Quest}-{9qps }-{ +2qps MCCP }-{ 1276gold }-{ 44secs }-{ 2Tqs }-{ 33Tqps }-{ 16AVEqp/q }-{ 2pracs 0trains 0tps}-{^--¤- -{'

this info also appears in your info bar along with
total exp/avg exp
total gold/avg gold
vorpals/gags/skins

also has warfare scripting in it which puts the war info in the status bar telling you the kind of war who started it and what lvls

also in status bar it posts your quest info when takeing a quest
shows name of mob room and area along with time
very handy and faster then q info

i will note this is all 1 plugin
its for aardwolf mud
send me a note if your interested it was writen by Opoch of Xunti. ill pass it on to you all b/c people are always asken about my plugins for aard

Mictlan
[Go to top] top

Posted by Flannel   USA  (1,230 posts)  [Biography] bio
Date Mon 14 Mar 2005 05:36 AM (UTC)  quote  ]
Message
Copy the whole thing (copy from <triggers> to </triggers> including that text) and then go to the triggers page (thats the one with all the lines where you can add triggers and such) and click 'paste' and that's it!
This button (except the triggers page not the alias one):
http://www.gammon.com.au/images/alias_paste.gif

~Flannel

Messiah of Rose
Eternity's Trials.

Clones are people two.
[Go to top] top

Posted by Skewer   (1 post)  [Biography] bio
Date Mon 14 Mar 2005 12:10 AM (UTC)  quote  ]
Message
Hello

I just started using mushclient (aardwolf player)
but can't figure out how to enter this script - or even where to enter it! I know I may appear to be dumb but I've tried everything to get this to work.

I simply don't know how or where to enter it...I assumed in the trigger dialog in the config box.

hope someone can help me..
[Go to top] top

Posted by Flannel   USA  (1,230 posts)  [Biography] bio
Date Fri 16 Jul 2004 09:55 PM (UTC)  quote  ]

Amended on Sat 17 Jul 2004 07:11 AM (UTC) by Flannel

Message
I got an email from someone asking if I could email them a copy/pastable version of this... I dont know which of the two of you it is. But, here it is (complete with color change to validate your regexp).

Copy between <triggers> and </triggers> then click "paste" in the trigger dialog.

<triggers>
  <trigger
   custom_colour="12"
   enabled="y"
   ignore_case="y"
   keep_evaluating="y"
   match="^Questor tells you \'As a reward, I am giving you (\d{1,}) quest points and (\d{1,}) gold\.\'$"
   name="QuestTrig1"
   regexp="y"
   send_to="12"
   sequence="100"
  >
  <send>setvariable &quot;goldgain&quot;, %2
setvariable &quot;qpgain&quot;, %1
enabletrigger &quot;QuestTrig2&quot;, 1
enabletrigger &quot;QuestTrig3&quot;, 1
</send>
  </trigger>
  <trigger
   custom_colour="12"
   ignore_case="y"
   keep_evaluating="y"
   match="^You gain an extra (\d{1,}) quest points \'MCCP Bonus\'\.$"
   name="QuestTrig3"
   regexp="y"
   send_to="12"
   sequence="100"
  >
  <send>setvariable &quot;qpgain&quot;, Cint(getvariable(&quot;qpgain&quot;)+%1)
enabletrigger &quot;QuestTrig2&quot;, 0
enabletrigger &quot;QuestTrig3&quot;, 0
send &quot;Quest Complete: &quot; &amp; getvariable(&quot;qpgain&quot;) &amp; &quot; qp and &quot; &amp; getvariable(&quot;goldgain&quot;) &amp; &quot; gp.&quot;
</send>
  </trigger>
  <trigger
   custom_colour="12"
   ignore_case="y"
   keep_evaluating="y"
   match="^You get lucky and gain an extra (\d{1,}) quest points\.$"
   name="QuestTrig2"
   regexp="y"
   send_to="12"
   sequence="100"
  >
  <send>setvariable &quot;qpgain&quot;, Cint(getvariable(&quot;qpgain&quot;)+%1)
</send>
  </trigger>
</triggers>

~Flannel

Messiah of Rose
Eternity's Trials.

Clones are people two.
[Go to top] top

Posted by Flannel   USA  (1,230 posts)  [Biography] bio
Date Fri 16 Jul 2004 09:50 PM (UTC)  quote  ]
Message
Are you sure the triggers are matching? Try making the triggers change the color of the line, to see if it matches.

~Flannel

Messiah of Rose
Eternity's Trials.

Clones are people two.
[Go to top] top

Posted by Artel   USA  (63 posts)  [Biography] bio
Date Fri 16 Jul 2004 08:05 PM (UTC)  quote  ]
Message
Sorry for the late post.. but I have done what Flannel said, and nothing happens when I finish a quest. The qpgain and goldgain variables don't even change. What am I missing?

Artel.
[Go to top] top

Posted by Flannel   USA  (1,230 posts)  [Biography] bio
Date Fri 02 Jul 2004 01:20 AM (UTC)  quote  ]
Message
Thats what Id suspect. Less bandwidth usage, which means theoretically less lag, or whatever.

~Flannel

Messiah of Rose
Eternity's Trials.

Clones are people two.
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio   Moderator
Date Fri 02 Jul 2004 12:20 AM (UTC)  quote  ]
Message
Glad that you have a good solution that does what you need. I didn't realize the MCCP line always came. I'm curious though; are they giving out a bonus for MCCP to encourage people to use it?

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Flannel   USA  (1,230 posts)  [Biography] bio
Date Thu 01 Jul 2004 09:47 PM (UTC)  quote  ]
Message

^Questor tells you \'As a reward, I am giving you (\d{1,}) quest points and (\d{1,}) gold\.\'$
Triggername: QuestTrig1
Send to: script
Enabled, Regexp, Keep Evaluating
send: setvariable "goldgain", %2
setvariable "qpgain", %1
enabletrigger "QuestTrig2", 1
enabletrigger "QuestTrig3", 1

^You get lucky and gain an extra (\d{1,}) quest points\.$
Triggername: "QuestTrig2"
Send to: script
Regexp, Keep Evalutating, NOT ENABLED
send: setvariable "qpgain", Cint(getvariable("qpgain")+%1

^You gain an extra (\d{1,}) quest points \'MCCP Bonus\'\.$
Triggername: "QuestTrig3"
Send to: script
Regexp, Keep Evalutating, NOT ENABLED
send: setvariable "qpgain", Cint(getvariable("qpgain")+%1
enabletrigger "QuestTrig2", 0
enabletrigger "QuestTrig3", 0
send "Quest Complete: " & getvariable("qpgain") & " qp and " & getvariable("goldgain") & " gp."

That should do it, if I got all that right.

~Flannel

Messiah of Rose
Eternity's Trials.

Clones are people two.
[Go to top] top

Posted by Artel   USA  (63 posts)  [Biography] bio
Date Thu 01 Jul 2004 08:20 PM (UTC)  quote  ]
Message
I'm afraid I might be a little more new than either one of us thought.. It makes sense to me what you said Flannel, but where do I put that stuff in at?

Artel.
[Go to top] top

Posted by Flannel   USA  (1,230 posts)  [Biography] bio
Date Thu 01 Jul 2004 06:01 AM (UTC)  quote  ]
Message
Yeah, the MCCCP can terminate it.

Have three triggers, for each of the lines. The first one catches it and turns the other two on (enabletrigger "triggerX", 1). Sends the number to the variable (which resets it), then the second one adds to it (Setvariable "questpoints", Cint(getvariable("questpoints"))+%1 then the third does the same, except it also sends it (and turns off itself (enabletrigger "triggerX", 0) and the second line one).
If the second one doesnt catch (because its not there) its no big deal, you dont need it.

And no, Ive never been a big fan of multiline triggers. What happens if things lag and a command gets put in between, or another line, or who knows what. This will always work, assuming you always get the MCCP bonus (which you will know if you do or dont).

~Flannel

Messiah of Rose
Eternity's Trials.

Clones are people two.
[Go to top] top

Posted by Artel   USA  (63 posts)  [Biography] bio
Date Thu 01 Jul 2004 04:48 AM (UTC)  quote  ]
Message
Ksilyan, I have tried the multi-line solution already, and when I review the channel history at the end, it is a bit spammy. When combined with multi-lines of leveling messages and rewards, it is not pretty. :)

I should have mentioned this the in the first post, but since MUSHclient supports MCCP, it is guaranteed that I will get "You gain an extra 2 quest points 'MCCP Bonus'." every single time, and that message is always at the very end of the quest rewards. I just wanted to make sure those 2 were added to the total qp.

I will try what you mentioned, Nick, also.
Thanks again

Artel.
[Go to top] top

Posted by Nick Gammon   Australia  (18,770 posts)  [Biography] bio   Forum Administrator
Date Thu 01 Jul 2004 04:44 AM (UTC)  quote  ]
Message
Or, you can probably make a single multi-line trigger with the extra lines as options. Read up on regular expressions, but basically you can do something like this:

Match: blah blah (this is optional)?

The "?" after a group means match zero or one of the group, so it would match "blah blah" followed by an optional occurrence of "this is optional".

So (again without testing) it might look like this:

Questor tells you 'As a reward, I am giving you (.*) quest points and (.*) gp\.'\n(You get lucky and gain an extra (.*) quest points\.\n)?(You gain an extra (.*) quest points 'MCCP Bonus'\.\n)?<.*>.*\z

Notice the extra brackets with the question marks. You can express the same idea a bit more readably with braces:

Questor tells you 'As a reward, I am giving you (.*) quest points and (.*) gp\.'\n(You get lucky and gain an extra (.*) quest points\.\n){0,1}(You gain an extra (.*) quest points 'MCCP Bonus'\.\n){0,1}<.*>.*\z




- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


9,182 views.

This is page 1, subject is 2 pages long: 1 2  [Next page]

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]