Page 11 of 15

Re: YATCO 2.3

Posted: Thu Aug 07, 2014 1:35 am
by Knute
add "\n" to the end of what is sent.

Re: YATCO 2.3

Posted: Thu Aug 07, 2014 1:40 am
by Iktomi
Obviously! I'm just not sure where in that code it would go.

Re: YATCO 2.3

Posted: Thu Aug 07, 2014 2:40 am
by Knute
It would go in your append line.

Re: YATCO 2.3

Posted: Thu Aug 07, 2014 3:45 am
by demonnic
If you want to make it just append a line every time you call demonnic.chat:append("ChatTabName") then find the line in the demonnic.chat:append(chat) definition that says demonnic.chat.windows[chat]:append() and then add the following line right below it:

demonnic.chat.windows[chat]:echo("\n")

And that should take care of it without having to edit all of your triggers.

Re: YATCO 2.3

Posted: Thu Aug 07, 2014 4:32 am
by phasma
Do I smell a new feature? :D

Re: YATCO 2.3

Posted: Sun Aug 10, 2014 1:22 am
by Iktomi
Awesome, thank you!

EDIT: Hm.. this works for every tab except for the All or bucket tab...

Re: YATCO 2.3

Posted: Mon Sep 01, 2014 5:18 am
by Inaryn
I'm an absolute failure with this kind of stuff, and tried searching places but meh, so

I created a tab to capture this text into

amelia: flick him back.
amelia: on the noise

and after much experimentation i got it to work fine

^(\w+):(.+)$

But it's also capturing this

Extra: hung quilt, door charm, hung painting
Places: comfy but worn sofa, workdesk with a desktop computer on it

So how can I tell it not to grab anything that starts with Extra: and Places: ?

Re: YATCO 2.3

Posted: Mon Sep 01, 2014 9:47 am
by Belgarath
Try adding an if statement to the beginning of the script box.
Code: [show] | [select all] lua
if matches[2] == "Extra" or matches[2] == "Places" then return end
Hope that helps.

Re: YATCO 2.3

Posted: Mon Sep 01, 2014 10:17 am
by Inaryn
cheers for that, yeah it worked, I just had to create a long ass list of things I didn't want it to be grabbing

Re: YATCO 2.3

Posted: Sun Sep 14, 2014 4:42 pm
by demonnic
If you have a long list, I suggest doing it this way.
Code: [show] | [select all] lua
--if this is the only trigger you need this list for, place it in the trigger itself and make it "local inarynCaptureExclusions" instead. Otherwise, put this in a script item.
inarynCaptureExclusions = { 
  "Extra",
  "Placces",
  "WoogieBoogie",
  "Thingerbopper"
}


--change the if statement from above to

if table.contains(myTable, matches[2]) then return end