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

Gammon Forum

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

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Miniwindows
. . -> [Subject]  Mini-window for public chatter
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Mini-window for public chatter

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Pages: 1  2 3  4  5  6  7  8  9  

Posted by Leonhardt   (24 posts)  [Biography] bio
Date Reply #15 on Sat 13 Nov 2010 10:17 PM (UTC)

Amended on Sat 13 Nov 2010 10:28 PM (UTC) by Leonhardt

Message
Hot damn its all up and running great now thanks for helping the newbie guys. I just got one more thing to ask is there a way to hide the window like using noinv for the inventory miniwindow?
[Go to top] top

Posted by Nick Gammon   Australia  (21,322 posts)  [Biography] bio   Forum Administrator
Date Reply #16 on Sun 14 Nov 2010 04:45 AM (UTC)
Message
Modified on page 1, to add "chats hide" and "chats show" aliases.

- Nick Gammon

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

Posted by Leonhardt   (24 posts)  [Biography] bio
Date Reply #17 on Sun 14 Nov 2010 05:18 AM (UTC)
Message
Perfect it works great man thanks again for all the help.
[Go to top] top

Posted by Fiendish   USA  (1,641 posts)  [Biography] bio   Global Moderator
Date Reply #18 on Sun 14 Nov 2010 09:11 PM (UTC)
Message
Nick Gammon said:
Also, I think the problem with positioning might have been that you asked for absolute window positions in the movewindow.install line, which I don't think is really wanted, because absolute positions really only apply once they have dragged the window from its default position. I changed that bit.

I don't think I've ever had a situation where the window allowed me to move the movewindow area offscreen. It always just jumps back into view if it goes too far. Hmm.

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

Posted by Grimwar   (6 posts)  [Biography] bio
Date Reply #19 on Sun 19 Dec 2010 04:47 AM (UTC)
Message
I downloaded MUSHClient v4.71 and now the plug-in works, in part:

The MiniWindow displays my tells (You tell Bilbo 'thanks') but doesn't display the replies back, nor most other forms of chat.

My question is, how can I make the MiniWindow display other forms of communication:

Bilbo tells you 'no problem'
Leto shouts 'next time'
Korgan says 'yes'
Aristox tells your clan 'durka durka'
Shayd tells your group 'run away!'

Thanks, and keep up the great work!
Grim
[Go to top] top

Posted by Nick Gammon   Australia  (21,322 posts)  [Biography] bio   Forum Administrator
Date Reply #20 on Sun 19 Dec 2010 05:29 AM (UTC)

Amended on Sun 19 Dec 2010 05:30 AM (UTC) by Nick Gammon

Message
Inside the plugin, near where it has triggers, like this:


 <trigger
    enabled="y"
    match="You tell * '*'"
    script="chats"
    omit_from_output="y"
    sequence="100"
    ></trigger>


Add more to match what you want, eg.


 <trigger
    enabled="y"
    match="* tells you '*'"
    script="chats"
    omit_from_output="y"
    sequence="100"
    ></trigger>

 <trigger
    enabled="y"
    match="* shouts '*'"
    script="chats"
    omit_from_output="y"
    sequence="100"
    ></trigger>

 <trigger
    enabled="y"
    match="* tells your clan '*'"
    script="chats"
    omit_from_output="y"
    sequence="100"
    ></trigger>



And so on. Just put them into a gap between triggers, and the reinstall the plugin.

- Nick Gammon

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

Posted by Grimwar   (6 posts)  [Biography] bio
Date Reply #21 on Sun 19 Dec 2010 08:09 PM (UTC)
Message
Thanks Nick - works great. Also, very easy solution for a non-programmer (such as myself) to adapt to any type of chat.

One other question: is there a way to re-size the MiniWindow? Preferably in-game via click-and-drag on the MiniWindow border, or perhaps via a right-click menu (like current the time stamp option).

Currently, my MiniWindow is "locked" at six lines of chat and has a fixed width as well.

Thanks again,
Grim
[Go to top] top

Posted by Nick Gammon   Australia  (21,322 posts)  [Biography] bio   Forum Administrator
Date Reply #22 on Mon 20 Dec 2010 05:37 AM (UTC)

Amended on Mon 20 Dec 2010 05:38 AM (UTC) by Nick Gammon

Message
If you are using the plugin on page 1 it has a resize capability.



See circled resize icon.

- Nick Gammon

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

Posted by Grimwar   (6 posts)  [Biography] bio
Date Reply #23 on Mon 20 Dec 2010 06:47 AM (UTC)
Message
Great - that's perfect!

Perhaps another thread (if so, apologies - I can move it there or start a new one), I'm looking to do a MiniWindow for other things such as spells being Memorized, which looks something like this:

------------
Spells currently memorized:
1: [ 3]bless [ 1]know alignment [3]curse
[ 2]create food
2: [ 7]prismatic spray [11]heal
3: [ 3]stoneskin


Spells left (level-number): 1-0 2-0 3-2

899H 78V 280C Exits:NEW>
------------

Is there something I can cut/paste/save as a plug-in that will capture everything above (except for the prompt line at the bottom)? I tried modifying a MiniWindow (for inventory on another thread) as a base script but no luck.

And thank you the quick and on-target responses.
Grim

P.S. I guess the next step I'm looking for is a very basic MiniWindow script that one can (1) modify for various uses, and (2) move around like the chat MiniWindow in this thread.
[Go to top] top

Posted by Nick Gammon   Australia  (21,322 posts)  [Biography] bio   Forum Administrator
Date Reply #24 on Mon 20 Dec 2010 08:50 PM (UTC)
Message
Best to start a new thread I think.

- Nick Gammon

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

Posted by Chyort   USA  (57 posts)  [Biography] bio
Date Reply #25 on Sat 01 Jan 2011 11:20 AM (UTC)

Amended on Sat 01 Jan 2011 11:22 AM (UTC) by Chyort

Message
using this plugin seems to break the command echo on triggers for me.

the problem shows up when something the plugin is set to match, also triggers something else...

for example


You hear Bymox hrm.
say moo

<Relina 1066/1066hp 1523/1523mp 735mv 199/350wtg HT 14,045,487g> You say 'moo'

<Relina 1066/1066hp 1523/1523mp 735mv 199/350wtg HT 14,045,487g> 
Bymox says 'hrm'

<Relina 1066/1066hp 1523/1523mp 735mv 199/350wtg HT 14,045,487g> You say 'mooo'


so the trigger that fires off "You hear Bymox hrm." echo's the command like its supposed to...
But the trigger that fires off the say doesn't echo like its supposed to... because the plugin is set to match the same message. the trigger still fires it just doesn't echo the command.



Oh and is there any way to edit out the prompt from the chat window?

[01 Jan 04:11:18] <Relina 1066/1066hp 1523/1523mp 735mv 199/350wtg HT 14,045,487g> You say 'moo'
[01 Jan 04:11:21] Bymox says 'hrm'
[01 Jan 04:11:21] <Relina 1066/1066hp 1523/1523mp 735mv 199/350wtg HT 14,045,487g> You say 'mooo'
[Go to top] top

Posted by Nick Gammon   Australia  (21,322 posts)  [Biography] bio   Forum Administrator
Date Reply #26 on Sat 01 Jan 2011 09:24 PM (UTC)
Message
I was going to say just edit out the prompt with a regular expression but it will probably be harder than that, because the prompt will probably have different colours, and thus span style runs. If it is all one colour it would be simple enough.

Your simplest thing is probably to make the prompts on a new line. To do that:

Template:faq=11 Please read the MUSHclient FAQ - point 11.


Then the problem goes away because prompts and chats are not on the same line.

- Nick Gammon

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

Posted by Chyort   USA  (57 posts)  [Biography] bio
Date Reply #27 on Sun 02 Jan 2011 08:07 AM (UTC)

Amended on Sun 02 Jan 2011 08:08 AM (UTC) by Chyort

Message
Yeah i found the FAQ years ago when i was first playing around with triggers... and simply adding a new line to my prompt does break up the prompt and says(or anything else) but it also adds an extra blank line on occasions.

so i get stuff like this


<Chyort 1578/1082hp 984mv 457/500wtg T 8,232,231g>   

Relina says 'hrm'

<Chyort 1578/1082hp 984mv 457/500wtg T 8,232,231g> 

instead of this

<Chyort 1578/1082hp 984mv 457/500wtg T 8,232,231g>   
Relina says 'hrm'

<Chyort 1578/1082hp 984mv 457/500wtg T 8,232,231g> 


Adding extra blank lines like that never appealed to me so i just worked around it in my simple triggers.
But since this is just a stored record i was wondering if the script could be made to just remove everything between the < > automatically if it detects them.
It isnt a big deal though, i have lived with similar issues for years :) and i can live with seeing a prompt in the chat window.

But none of this should affect my triggers failing to echo the commands into my window when they fire... Correct? That was my main issue, just figured i would tack the prompt question on since i was already posting.

I know the problem is related to the chat miniwindow plugin because when i disable the plugin, my triggers that match off says start to echo what they sent properly again.

[Go to top] top

Posted by Nick Gammon   Australia  (21,322 posts)  [Biography] bio   Forum Administrator
Date Reply #28 on Sun 02 Jan 2011 08:29 AM (UTC)
Message
The problem is that, if the prompt is in different colours like a lot are, then removing it is slightly complicated. You have to work your way through the style runs, omitting the relevant ones, and possibly having to split the last one into the part you want to keep and the part you want to omit.

As for the blank lines:

http://www.gammon.com.au/forum/?id=8768

- Nick Gammon

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

Posted by Chyort   USA  (57 posts)  [Biography] bio
Date Reply #29 on Sun 02 Jan 2011 10:43 AM (UTC)
Message
After poking around a bit, I figured out a solution to my main problem on my own :P

The sample triggers in the plugin have "Omit from output" checked, and the chat script can then echo the says back to the main window, and a copy to the mini-window. Or flat out redirect them to the mini-window, and leave them omitted from the main window.

"Omit from output" also hides any commands sent by the trigger though.
So i got this...

<Bymox 1092/1092hp 1383/1518mp 610mv 43/500wtg H 90,002g 6,615,119> 
Relina says 'sanc'

<Bymox 1092/1092hp 1518/1518mp 610mv 43/500wtg H 90,002g 6,615,119> A luminous aura spreads slowly over Relina's body. 

Apparently, the plugin managed to omit the commands being sent by my standard triggers. (Kind of surprised by that interaction between a stand alone plugin, and standard triggers)

Removing the "Omit from output" in the plugin then gave me this...

<Bymox 1092/1092hp 1518/1518mp 604mv 43/500wtg H 90,002g 6,615,119> 
Relina says 'sanc'
c sanc Relina
trance
Relina says 'sanc'

<Bymox 1092/1092hp 1518/1518mp 604mv 43/500wtg H 90,002g 6,615,119> A luminous aura spreads slowly over Relina's body.

the first say being the original text, the c sanc and trance being the standard trigger send, and the 2nd say being the echo from the plugin.

i then just turned off the plugin echo and tada back to working like normal. while still having the mini-window chat.


<Bymox 1092/1092hp 1518/1518mp 610mv 43/500wtg H 90,002g 6,615,119> 
Relina says 'sanc'
c sanc Relina
trance

<Bymox 1092/1092hp 1518/1518mp 610mv 43/500wtg H 90,002g 6,615,119> A luminous aura spreads slowly over Relina's body.
[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.


105,443 views.

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

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

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

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]