Send Chat

Posted by Zzad on Sat 19 May 2007 09:00 AM — 9 posts, 32,913 views.

#0
I have read the FAQ on sending chat to another world. Which I have got working just sweet, is there any way that I can not show the chatter in the original world?

Great client by the way, lua scripting is much nicer (by nicer I mean easier) than the TinTin I have been previously using.
USA #1
Omit_from_output="y" for the triggers in the main world. If this script is for Aardwolf, I'm currently designing one, which is about 60% finished. You can set which channels are working, if it shows in the main world window, and toggle the whole script on/off. But I just have it for a few channels that my clannie requested until I have the whole thing working well enough to release.
#2
Cheers, and no its not for aardwolf its for DW. Thanks
USA #3
Shaun,
perhaps you might want to check out MY chat separator plugin for inspiration.
On Aardwolf, finger venificius, and download the plugin installer that is in the URL shown...

That will then install ALL plugins into a folder located within the Mushclient/worlds/plugins/AardOnoitsu2/ folder, it does not matter where you installed mushclient to, it will place the files in the proper locations...

And who knows you might enjoy some of my other plugins too :)

Sorry this is somewhat off topic, BUT Anyone can look at these plugins and possibly modify them to their needs.

Laterzzz,
Onoitsu2 (Venificius on Aardwolf)
USA #4
No offense meant here, but I like making my own plugins whenever possible. Partly so I learn a lot more, and partly because I have specific ideas of how the style of the program should be. To be honest, I have looked at your channel separator, and I think you would have the same reaction looking at mine. Completely confused why the other person didn't do it "the simpler" way.

I'm also trying to add in a bit of functionality into mine that would pretty much require rewriting your plugin anyway, and would be easier to start from scratch. Like having the plugin capture socials on all channels, or redirecting channels to different windows per channel. My clannies keep feeding me ideas when I mention a plugin.

I'm also having a few peculiarities with your plugin, probably from me not setting things up right, but clan -h didn't seem to work terribly well for me.
USA #5
Well actually I would LOVE to take a gander at your channel separator, or what you have so far, cause I always love to learn new methods of doing things. I tend to want to cram in at least 2/3 of the possible ways of doing things, into my head :)

Laterzzz,
Onoitsu2 (Venificius on Aardwolf)
USA #6
Here are the main two parts, the rest are in the link I sent you on Aard.
this toggless the channels on/off:
  <alias
   match="chancap:*"
   send_to="12"
   sequence="101"
   enabled="y"
  >
  <send>  local temp = channels["%1"]
if temp ~= nil then
  temp = not(temp)
  ColourTell( "white", "black", "ChanCap: ",
              "lime",  "black", "%1",
	      "white", "black", " turned " )
  if temp == true then
    ColourNote( "lime", "black", "on" )
  else
    ColourNote( "lime", "black", "off" )
  end
  SetVariable( "%1", tostring( temp ) )
  channels["%1"] = temp
  EnableTriggerGroup( "%1", temp )
else
  ColourNote( "white", "black", "Invalid option.  Please check ",
              "lime",  "black", "chancap:help",
	      "white", "black", " for a list of commands." )
end
  </send>
  </alias>

And here's the rest of the script. Anything that matches a channel is sent to the chancap function.
channels = { ["clantalk"]   = GetVariable( "clantalk" ) == "true",
             ["ftalk"]  = GetVariable( "ftalk" ) == "true",
	     ["spouse"] = GetVariable( "spouse" ) == "true",
	     ["gtell"]  = GetVariable( "gtell" ) == "true",
	     ["gossip"]  = GetVariable( "gossip" ) == "true",
	     ["tiertalk"]  = GetVariable( "tiertalk" ) == "true",
	     ["tech"]  = GetVariable( "tech" ) == "true",
	     ["barter"]  = GetVariable( "barter" ) == "true",
	     ["global"]  = GetVariable( "global" ) == "true",
	     ["curse"]  = GetVariable( "curse" ) == "true",
	     ["debate"] = GetVariable( "debate" ) == "true",
	     ["gametalk"] = GetVariable( "gametalk" ) == "true",
	     ["gratz"] = GetVariable( "gratz" ) == "true",
	     ["immtalk"] = GetVariable( "immtalk" ) == "true",
             -- class channels below
	     ["commune"]  = GetVariable( "commune" ) == "true"
	   }


for i,v in pairs( channels ) do
  EnableTriggerGroup( i, v )
end

function chancap( TriggerName, trig_line, wildcards, style )
  w = GetWorld( "chancap" )  -- get channel specific soon
  if w then -- attempt to print only if channel window is open.
    for i,v in pairs(style) do
      w:ColourTell(RGBColourToName(v.textcolour), RGBColourToName(v.backcolour), v.text)
    end
    w:Note( "" )
  end
end -- chancap
Amended on Sun 20 May 2007 11:51 PM by Shaun Biggs
Australia Forum Administrator #7
Speaking of simplicity, instead of:


channels = { ["clantalk"]   = GetVariable( "clantalk" ) == "true",
             ["ftalk"]  = GetVariable( "ftalk" ) == "true",
	     ["spouse"] = GetVariable( "spouse" ) == "true",
	     ["gtell"]  = GetVariable( "gtell" ) == "true",
	     ["gossip"]  = GetVariable( "gossip" ) == "true",
	     ["tiertalk"]  = GetVariable( "tiertalk" ) == "true",
	     ["tech"]  = GetVariable( "tech" ) == "true",
	     ["barter"]  = GetVariable( "barter" ) == "true",
	     ["global"]  = GetVariable( "global" ) == "true",
	     ["curse"]  = GetVariable( "curse" ) == "true",
	     ["debate"] = GetVariable( "debate" ) == "true",
	     ["gametalk"] = GetVariable( "gametalk" ) == "true",
	     ["gratz"] = GetVariable( "gratz" ) == "true",
	     ["immtalk"] = GetVariable( "immtalk" ) == "true",
             -- class channels below
	     ["commune"]  = GetVariable( "commune" ) == "true"
	   }


for i,v in pairs( channels ) do
  EnableTriggerGroup( i, v )
end


How about:


channels = { 
            "clantalk"  , "ftalk"     , "spouse"    ,
            "gtell"     , "gossip"    , "tiertalk"  ,
            "tech"      , "barter"    , "global"    ,
            "curse"     , "debate"    , "gametalk"  ,
            "gratz"     , "immtalk"   , "commune"   ,
            }

for i, v in ipairs (channels) do
  EnableTriggerGroup (v, GetVariable (v) == "true")
end -- for

Amended on Mon 21 May 2007 06:07 AM by Nick Gammon
USA #8
Getting there... you should see what I had before. I originally had some channels initialized to true, and some to false, and it was a bit easier for me to just copy/paste the whole thing while testing. Once I get everything tested out, I'm just going to save a serialized version of the channel table and skip that whole thing aside from an initialization test.