Shattered Kingdoms

Where Roleplay and Tactics Collide
VOTE NOW!
It is currently Fri May 17, 2024 3:17 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 18 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: MUSHclient halp.
PostPosted: Thu Sep 06, 2012 6:24 am 
Offline
Mortal

Joined: Thu Jan 22, 2009 4:41 am
Posts: 2596
Location: Witness Protection
SK Character: Cyndane - Talys
Alright, I had to reinstall MUSHclient, and I used to not use all these fancy colorizing/highlighting triggers/etc for bashes and whatnot, but someone had sent me a file, which I still have..

But I can't figure out how to "load" it? It's not an .mct or .mca file, it seems to be a single file with aliases/triggers and other settings in it? How do I put this in!?


Top
 Profile  
Reply with quote  
 Post subject: Re: MUSHclient halp.
PostPosted: Thu Sep 06, 2012 7:10 am 
Offline
Mortal

Joined: Sat Apr 02, 2011 12:07 pm
Posts: 263
Also, is it possible to grasp tells, gtells, cabal chat and display it in an other window in mushclient as in zmud?


Top
 Profile  
Reply with quote  
 Post subject: Re: MUSHclient halp.
PostPosted: Thu Sep 06, 2012 7:13 am 
Offline
Mortal

Joined: Thu Jan 22, 2009 4:41 am
Posts: 2596
Location: Witness Protection
SK Character: Cyndane - Talys
It is, I think. Rodwen or somebody had given me the script for that ages ago, iirc.

I have no idea how to do that myself, and do not have the file!


Top
 Profile  
Reply with quote  
 Post subject: Re: MUSHclient halp.
PostPosted: Thu Sep 06, 2012 7:25 am 
Offline
Mortal

Joined: Sat Apr 02, 2011 12:07 pm
Posts: 263
That's why we await for someone who knows to respond to our questions!


Top
 Profile  
Reply with quote  
 Post subject: Re: MUSHclient halp.
PostPosted: Thu Sep 06, 2012 7:34 am 
Offline
Mortal

Joined: Sat Jul 16, 2005 7:50 pm
Posts: 1798
if you have a .MCL file, after reinstall, you can double click it to load it, it will be everything you had before

i make a new .MCL file for each new character so it has its own log, aliases, coloring, etc


Top
 Profile  
Reply with quote  
 Post subject: Re: MUSHclient halp.
PostPosted: Thu Sep 06, 2012 8:26 am 
Offline
Mortal

Joined: Fri Dec 26, 2008 1:22 pm
Posts: 1648
Lykofos wrote:
Also, is it possible to grasp tells, gtells, cabal chat and display it in an other window in mushclient as in zmud?


I did write this, and went into the thread I started to promote it. It was being hosted on my dropbox, but now, the link doesn't work, as the file doesn't exist on dropbox anymore. Le holy crap this is annoying. I don't think I have another copy, either, so unless someone else recognizes a file named miniChat.lua, then we might be sol.


Top
 Profile  
Reply with quote  
 Post subject: Re: MUSHclient halp.
PostPosted: Thu Sep 06, 2012 2:58 pm 
Offline
Mortal

Joined: Wed Apr 24, 2002 11:51 am
Posts: 1500
only posting in gd from now - thx and have a nice day


Last edited by FinneyOwnzU on Sat Jan 31, 2015 11:05 am, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: MUSHclient halp.
PostPosted: Thu Sep 06, 2012 8:49 pm 
Offline
Mortal

Joined: Thu Feb 28, 2002 4:00 pm
Posts: 1081
Location: DC
Rodwen wrote:
Lykofos wrote:
Also, is it possible to grasp tells, gtells, cabal chat and display it in an other window in mushclient as in zmud?


I did write this, and went into the thread I started to promote it. It was being hosted on my dropbox, but now, the link doesn't work, as the file doesn't exist on dropbox anymore. Le holy crap this is annoying. I don't think I have another copy, either, so unless someone else recognizes a file named miniChat.lua, then we might be sol.


I just started using MUSHclient due to it's friendliness with HTML posting. I set up a fake world and sent all the stuff to it - However, I went batsh-t crazy trying to figure out gagging the prompt afterwards so I didn't have tons of empty line breaks on my main screen.. I don't know if it's possible for it to capture my prompt (as generic as it is, I don't want to change it) and set an inherently-disabled trigger that activates to gag it only once once after the xfer to the new world/chat window occurs.

I was working up on setting up a series of 2 triggers to gag the 2 following lines after the capture and transfer, but I was missing little lines of important stuff here and there with a broad-stroke trigger like that.

/rage at zmud and mushclient both, hopefully Rodwin/Finney saves the day.


Top
 Profile  
Reply with quote  
 Post subject: Re: MUSHclient halp.
PostPosted: Thu Sep 06, 2012 9:14 pm 
Offline
Mortal

Joined: Mon Jun 11, 2012 9:57 pm
Posts: 40
I have a tell (gtell, clan, yell) capture. i'll post it here (c/p it into a standard .txt file, but give it a name with .xml at the end....like "chat.xml" (xml is a markup language like html...but its just text...MUSHClient reads the xml extension as a plugin file... all you need to create a plugin is Notepad.... all you need to create a simple webpage is Notepad and whatever web browser you use... if you know how to write all the code yourself)

Then start a new world and save it as "chat" (it will save as chat.mcl)...needs to be called that in order for the plugin to work. set its IP address as 0.0.0.0 (port doesn't matter, i think it defaults to 4000)

To install a plugin (both the chat.xml and the .xml file you have, WW, for hilites etc.) while on SK window, go to File > Plugins. Click Add, then browse to wherever you have your .xml files stored, select your plugin file, Open it (have to do it one at a time if you have multiple ones to add). Provided the plugin installed without incident, a note line should appear on your main (SK) world about it being installed. Resize your windows (SK and Chat) to how you want it.

SAVE YOUR SK WORLD. (Save your chat world as well.)

Now, next time you start up MUSHClient and open your SK world, the chat window will open automatically.

(By the way, this chat capture plugin was written by the creator of MUSHClient, though I added in one or two things, most notably a "clear window" alias.... so if you're like me and dont want to be staring at tells from an hour ago because things have been quiet for a while... you can type: clear tells )
-------------------------------------------------------------------------------------

<?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="1.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>

<aliases>
<alias
enabled="y"
match="clear tells"
script="clear_tells"
></alias>
</aliases>

<aliases>
<alias
enabled="y"
match="noyells on"
script="no_yells"
></alias>
</aliases>

<aliases>
<alias
enabled="y"
match="noyells off"
script="yells_on"
></alias>
</aliases>


<!-- Triggers -->

<triggers>

<trigger
enabled="y"
name="they_yell"
group="chatlogging"
match="^[A-Za-z ]+ yells \'(.*?)\'$"
regexp="y"
script="redirect"
sequence="100"
>
</trigger>

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

<trigger
enabled="y"
group="chatlogging"
match="* replies '*'"
script="redirect"
sequence="100"
>
</trigger>
<trigger
enabled="y"
group="chatlogging"
match="You reply to * '*'"
script="redirect"
sequence="100"
>
</trigger>
<trigger
enabled="y"
group="chatlogging"
match="* tells you '*'"
script="redirect"
sequence="100"
>
</trigger>
<trigger
enabled="y"
group="chatlogging"
match="You tell * '*'"
script="redirect"
sequence="100"
>
</trigger>
<trigger
enabled="y"
group="chatlogging"
match="You tell the group '*'"
script="redirect"
sequence="100"
>
</trigger>

<trigger
enabled="y"
group="chatlogging"
match="* tells the group '*'"
script="redirect"
sequence="100"
>
</trigger>


<trigger
enabled="y"
group="chatlogging"
match="^\[[A-Z]+\] [A-Za-z\- ]+\: (.*)$"
regexp="y"
script="redirect"
sequence="100"
>
</trigger>

</triggers>


<!-- Script -->


<script>
<![CDATA[
chat_world = "chat"
local first_time = true

function redirect (name, line, wildcards, styles)

-- try to find "chat" world
local w = GetWorld (chat_world) -- get "chat" world

if w then -- if present
for _, v in ipairs (styles) do
w:ColourTell (RGBColourToName (v.textcolour),
RGBColourToName (v.backcolour),
v.text)
end -- for each style run
w:Note ("") -- wrap up line
w:Note ("")

end -- world found

end -- function redirect


function clear_tells(name, line, wildcards)

local w = GetWorld (chat_world) -- get "chat" world

if w then
w:DeleteOutput()
w:Note ("")
end

end

function no_yells (n,l,w)
SetTriggerOption("you_yell","enabled","n")
SetTriggerOption("they_yell","enabled","n")
ColourNote("YELLOW","BLACK","Yells will NOT redirect.")
end

function yells_on (n,l,w)
SetTriggerOption("you_yell","enabled","y")
SetTriggerOption("they_yell","enabled","y")
ColourNote("YELLOW","BLACK","Yells WILL redirect.")
end


function init_chat()

local w = GetWorld (chat_world) -- get "chat" world

-- if not found, try to open it
if first_time and not w then
local filename = GetInfo (67) .. chat_world .. ".mcl"
Open (filename)
w = GetWorld (chat_world) -- try again
if not w then
ColourNote ("white", "red", "Can't open chat world file: " .. filename)
first_time = false -- don't repeatedly show failure message
end -- can't find world
end -- can't find world first time around
end -- end function


function OnPluginConnect()
init_chat()
end

function OnPluginLoad()
init_chat()
end

function OnPluginInstall()
init_chat()
end

]]>
</script>

</muclient>


Top
 Profile  
Reply with quote  
 Post subject: Re: MUSHclient halp.
PostPosted: Thu Sep 06, 2012 9:23 pm 
Offline
Mortal

Joined: Thu Feb 28, 2002 4:00 pm
Posts: 1081
Location: DC
Does that get rid of the blank lines once captured, or does chat show up in both windows?


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 18 posts ]  Go to page 1, 2  Next

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 6 guests


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

Search for:
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group