Help - Search - Members - Calendar
Full Version: Windows
Achaea's Forums > Off-Topic > Tech Support > Client Help
Kresslack
Ok, so I figure it would be a lot more efficient and cleaner to have tells and channels such as ct, ht, pt, clt, etc send to a new window, that way during combat, it isn't a headache to keep up with battle orders, or miss something if you are hunting. Would also be nice if you can log in that window. I'm not sure how to do this, I haven't used Mush in about a year since returning to Achaea, but I vaguly remember having to Capture lines and send them to the new window while gagging them in the main one. If there is a better way to do this these days, that would be helpful, but any method(s) by which this can be accomplished would be greatly appreciated. Thank you for any help in advance.
tarnok
I too would be interested in something like this for the MUSHclient!
There seems to be something here for zMUD by Shanir here
tarnok
QUOTE (Trevize @ Aug 15 2009, 03:56 PM) *


Thanks Trevize! Now I am just trying to get it to work. I do not think I have the triggers set correctly as nothing seems to happen when I set it up, is the following correct for Achaea?
CODE
<!--  Triggers  -->

<triggers>

  <trigger
   enabled="y"
   match="^[A-Za-z]+ (says|chats|yells|tells) \'(.*?)\'$"
   regexp="y"
   script="redirect"
   sequence="100"
  >
  </trigger>

  <trigger
   enabled="y"
   match="^You (say|chat|yell|tell) \'(.*?)\'$"
   regexp="y"
   script="redirect"
   sequence="100"
  >
  </trigger>

</triggers>


I ask in the sense that, are those the type of triggers that work in this game? I am not familiar with this code syntax yet.
Sena
That will only match "Person says/chats/tells/yells 'Stuff.'" The name of the person has to be a single word, it has to use single quotes around the speech. You'll have to modify it to work with Achaea's format. If you want to capture just channels, for example, the regex would be something like:
CODE
^\([A-Za-z ]+\): \w+ says, ".+"$
Mymyc
QUOTE (Kresslack @ Aug 14 2009, 03:43 PM) *
Ok, so I figure it would be a lot more efficient and cleaner to have tells and channels such as ct, ht, pt, clt, etc send to a new window, that way during combat, it isn't a headache to keep up with battle orders, or miss something if you are hunting. Would also be nice if you can log in that window. I'm not sure how to do this, I haven't used Mush in about a year since returning to Achaea, but I vaguly remember having to Capture lines and send them to the new window while gagging them in the main one. If there is a better way to do this these days, that would be helpful, but any method(s) by which this can be accomplished would be greatly appreciated. Thank you for any help in advance.


NO! Forget the Nick Gammon method, there is a WAY MORE simpler way to do the same stuff.

Let me see what I have in Mushclient:
Create new world with the name redirect
IP adress 0.0.0.0
port number 4000
Resize the new redirect window and the Achaea window to see both.
----------------
Create an alias in the Achaea word named initializeredirecting (or whatever you like), this is a must have alias!!
Sendto: script
redirect = GetWorld ('redirect')
redirect:ColourNote("orange","","REDIRECTING OK")
----------------
Create a trigger in the Achaea world: (Market):*
Sendto: script
redirect:ColourNote("red","","MARKET:%1")
----------------

Tada!

You can move windows like this, so you may include this in the initializeredirect:
MoveWorldWindow(0,0,750,730) to move the Achaea window
redirect:MoveWorldWindow(750,130,270,600) to move the redirect window

When I open Mushclient I manually open the achaea.mcl and the redirect mcl.
I catch the password correct message and execute the initializeredirecting alias.

You can do stuff executing redirect:whateverluacommand from the Achaea world. Eg redirect:Note("Hi, this is a message sent from the Achaea world to the redirect window")

For example you may create a trigger catching the stupidity affliction line and do a redirect:Note("OMG afllicted with stupidity!!!!! Eat goldenseal!")
tarnok
QUOTE (Sena @ Aug 16 2009, 10:30 AM) *
That will only match "Person says/chats/tells/yells 'Stuff.'" The name of the person has to be a single word, it has to use single quotes around the speech. You'll have to modify it to work with Achaea's format. If you want to capture just channels, for example, the regex would be something like:
CODE
^\([A-Za-z ]+\): \w+ says, ".+"$



Mushclient complains about the doublequotes and period there near the end there and I dont know the syntax to get it to regonize those doublequotes. I tried \" and ' to no effect.

I may try mymyc method later, but right now Gammons method is partically installed and I just want to see it working.
Sena
The quotes aren't really necessary there, it's specific enough already that you can just use .* for that part.
CODE
^\([A-Za-z ]+\): \w+ says, .*$


I may be missing something Mushclient-specific though, in which case you should ignore me.
tarnok
QUOTE (Sena @ Aug 16 2009, 11:23 PM) *
The quotes aren't really necessary there, it's specific enough already that you can just use .* for that part.
CODE
^\([A-Za-z ]+\): \w+ says, .*$


I may be missing something Mushclient-specific though, in which case you should ignore me.



Nice! Thank you! I also go it working for tells too! BUt I do have newline issues if its a long mesage. Should I be adding a \n around there? I tried and nothing.
Sena
Other than recommending screenwidth 0, I can't help much there. Someone more familiar with Mushclient will have to help with that.
tarnok
QUOTE (Sena @ Aug 17 2009, 12:04 AM) *
Other than recommending screenwidth 0, I can't help much there. Someone more familiar with Mushclient will have to help with that.



Scrolling down and reading on the original site trevize linked, Nick Gammon posted solutions to most of the issues and features I wanted. Just wanted to say thanks everyone!
Kresslack
Gah, work is eating up most of my time. Hopefully I can try to hammer a working method for this out soon.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.