[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]  Tips and tricks
. . -> [Subject]  How to make a separate chats window
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?
(New message)
Subject: How to make a separate chats window
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  3  4 5  6  7  8  

Posted by Nick Gammon   Australia  (19,169 posts)  [Biography] bio   Forum Administrator
Date Tue 25 Mar 2014 08:16 PM (UTC)  quote  ]
Message
Start a new thread, I suggest. Reference this one if you like, but this is really a different topic.

- Nick Gammon

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

Posted by Tolveor   (1 post)  [Biography] bio
Date Thu 20 Mar 2014 05:15 AM (UTC)  quote  ]
Message
Hi guys,
I'm struggling with a script that is related to this. Basically what i want to do is to capture the chats but not send it to another window. Instead i want an alias to print a stored set of say 10 or 15 chats to the main world. Honestly i'm not even sure how to start, but it looks related to this topic at least so thought id start here.

Any help would be appreciated, not necesarrily in the form of written code, but any references, links, a push in the right direction etc would be welcome.
Thanks!
Tom
[Go to top] top

Posted by Fiendish   USA  (937 posts)  [Biography] bio   Global Moderator
Date Tue 03 Sep 2013 01:55 AM (UTC)  quote  ]
Message
Quote:
This is a great plugin and all, and I use it quite successfully on the Discworld MUD.. However, how can I put this exact same redirect script into a mini window with a context menu to choose which channels/chats to echo in the main output (like the Aardwolf chat window), instead of a world window?

If you want features from plugins written for the Aardwolf client package, copy from the plugin source files. They're not exactly hidden.

There are also (somewhat old) threads here:
http://www.gammon.com.au/forum/bbshowpost.php?id=10728&page=1
and here:
http://www.gammon.com.au/forum/?id=10143

Broken links to my repository found in those threads are probably corrected later in the threads, so keep reading if you hit a dead link.

http://aardwolfclientpackage.googlecode.com/
https://github.com/fiendish/aardwolfclientpackage
[Go to top] top

Posted by Trynn   (1 post)  [Biography] bio
Date Tue 03 Sep 2013 12:44 AM (UTC)  quote  ]
Message
This is a great plugin and all, and I use it quite successfully on the Discworld MUD.. However, how can I put this exact same redirect script into a mini window with a context menu to choose which channels/chats to echo in the main output (like the Aardwolf chat window), instead of a world window?
[Go to top] top

Posted by Fiendish   USA  (937 posts)  [Biography] bio   Global Moderator
Date Sun 18 Aug 2013 06:42 AM (UTC)  quote  ]
Message
I use the CallPlugin interface.

http://aardwolfclientpackage.googlecode.com/
https://github.com/fiendish/aardwolfclientpackage
[Go to top] top

Posted by Nick Gammon   Australia  (19,169 posts)  [Biography] bio   Forum Administrator
Date Fri 16 Aug 2013 08:22 AM (UTC)  quote  ]
Message
It could probably be done one way or another. You could intercept "Note" function calls and make them do something else, if that is where the notes are coming from.

- Nick Gammon

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

Posted by Kaidesa   (2 posts)  [Biography] bio
Date Thu 15 Aug 2013 02:46 PM (UTC)  quote  ]
Message
I suppose I used the wrong term. Rather than information, I suppose notes would be the proper term. Sorry for the confusion, if any.
[Go to top] top

Posted by Kaidesa   (2 posts)  [Biography] bio
Date Thu 15 Aug 2013 08:23 AM (UTC)  quote  ]
Message
Hello!

I've been using this script, albeit highly modified, for quite some time now. I've come to a scenario where I want to send my information messages (info messages from the client, not from the M* I'm connected to) to a separate window.

Is this possible with the current script? If not, is there anything I can use to do such?

I'd appreciate it if anyone could help!
[Go to top] top

Posted by Alkain   (4 posts)  [Biography] bio
Date Thu 28 Mar 2013 03:11 AM (UTC)  quote  ]

Amended on Thu 28 Mar 2013 09:23 AM (UTC) by Alkain

Message
Soooo, it's been a while... Any help would be appreciated, I'm also looking for how to make a clock or something similar.


EDIT: Thanks to a friend, I was able to get it working. THanks for the help though
[Go to top] top

Posted by Alkain   (4 posts)  [Biography] bio
Date Tue 19 Mar 2013 12:43 AM (UTC)  quote  ]
Message
I would, but I really have no idea what I'm doing. I'm new to Mushclient and have no coding experience :/
[Go to top] top

Posted by Nick Gammon   Australia  (19,169 posts)  [Biography] bio   Forum Administrator
Date Mon 18 Mar 2013 03:51 AM (UTC)  quote  ]
Message
I think there are a few versions over the life of this thread. Take then one you tried, try to get it working, and then post what you have.

- Nick Gammon

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

Posted by Alkain   (4 posts)  [Biography] bio
Date Sun 17 Mar 2013 08:55 PM (UTC)  quote  ]
Message
Nick Gammon said:


@Alkain - can you post what you tried?



Sadly I erased it all, but I tried several of the fixes listed here with slight modifications.

I did set up the chat world as specified and made sure the script pointed to it.

I just fiddled with the match= line though, but I can't remember what I did exactly :/
[Go to top] top

Posted by Nick Gammon   Australia  (19,169 posts)  [Biography] bio   Forum Administrator
Date Sun 17 Mar 2013 08:43 PM (UTC)  quote  ]
Message
@Squeegy - sorry, I missed this question.

You need to identify what is different about the line that is not the chat line, so it can stop when it hits it. Perhaps post an example chat with an example of what follows it?




@Alkain - can you post what you tried?

- Nick Gammon

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

Posted by Alkain   (4 posts)  [Biography] bio
Date Sun 17 Mar 2013 04:20 PM (UTC)  quote  ]

Amended on Sun 17 Mar 2013 04:25 PM (UTC) by Alkain

Message
Hi, I'm trying(And failing) to adapt this to a MUCK I play on. Sadly, I can't get anything to show up on the "Chat World"

The standard channels are;

<OOC> <name> says
<OOC> <name> <does something>
[Public] <name> says
[Public] <name> <does something>
says
page

If anyone can help, it'd be greatly appreciated :)


EDIT: With exception to the <OOC> itself, the things in <> are variables, just in case it isn't clear :P
[Go to top] top

Posted by Squeegy   (1 post)  [Biography] bio
Date Thu 03 Jan 2013 09:45 PM (UTC)  quote  ]
Message
Having a slight problem; I'm trying to filter out emotes on channels as well, but it isn't catching them because they don't end with '. How would I capture that with this?

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE muclient>
<!-- Saved on Saturday, June 30, 2007, 10:48 -->
<!-- MuClient version 4.13 -->

<!-- Plugin "Chat_Redirector" generated by Plugin Wizard -->

<!--
Edit plugin and change "chat_world" variable to be the name of the
world you want chats to go to.
-->

<muclient>
<plugin
name="Chat_Redirector"
author="Nick Gammon"
id="cb84a526b476f69f403517da"
language="Lua"
purpose="Redirects chat messages to another world"
date_written="2007-06-30 10:45:35"
requires="4.08"
version="2.0"
>
<description trim="y">
<![CDATA[
Redirects chats to the specified world.

Add or modify "chat" triggers to capture different sorts of message.

Change the variable "chat_world" to be the name of the world chats are to go to.
]]>
</description>

</plugin>

<!-- Triggers -->

<triggers>

<trigger
enabled="y"
match="^(\(.+\): )?[A-Za-z +]+ (CHATS|GOSSIPS|GRATZS|WIZS|QUESTCHATS|INFOS|IMCCHATS|AUCTIONS|WIZINFOS|CLANTALKS) '"
regexp="y"
script="chat_redirect"
omit_from_output="y"
sequence="100"
>
</trigger>

<trigger
enabled="y"
match="^[(CHAT|GOSSIP|GRATZ|WIZ|QUESTCHAT|INFO|IMCCHAT|AUCTION|WIZINFO|CLANTALK)] "
regexp="y"
script="chat_redirect"
omit_from_output="y"
sequence="100"
>
</trigger>

<trigger
enabled="y"
match="^You (CHAT|GOSSIP|GRATZ|WIZ|QUESTCHAT|INFO|IMCCHAT|AUCTION|WIZINFO|CLANTALK) '"
regexp="y"
script="chat_redirect"
omit_from_output="y"
sequence="100"
>
</trigger>

<trigger
enabled="n"
match="*"
omit_from_output="y"
script="chat_redirect"
name="multi_line_chat"
sequence="10"
>
</trigger>

<trigger
enabled="n"
match="*"
omit_from_output="y"
script="chat_redirect"
name="prompt"
sequence="10"
>
</trigger>

</triggers>

<!-- Script -->


<script>
<![CDATA[
chat_world = "Chat"
who_world = "Who List"

require "getworld" -- handles finding the world, and sending the line

-- chat redirector
function chat_redirect (name, line, wildcards, styles)

send_to_world (chat_world, styles)

-- if ends with quote, end of multi-line chat
if line:sub (-1) == "'" then
EnableTrigger ("multi_line_chat", false) -- no more lines to go
else
EnableTrigger ("multi_line_chat", true) -- capture subsequent lines
end -- if

end -- function chat_redirect

]]>
</script>
</muclient>


Example:
[CHAT] Blackjack just wants things to work as close to perfectly as possible,
is that really too much to ask

It will catch it, but it will also catch the newline after it, or even both the newline and the prompt, which I don't want cluttering up the place. Any advice?
[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.


78,129 views.

This is page 4, subject is 8 pages long:  [Previous page]  1  2  3  4 5  6  7  8  [Next page]

[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]