hi im completely new to this program. im trying to set up a trig/script to grab talk on certain channels and send it to a seperate window. ive download the chat plugin but mush wouldnt activate it. ive tried a simple script using the trigger command but it didnt work
in trigger window i have "%1 tells you %2"
then have it do: SendToNotepad "Tell", "%1 tells you %2"
then i have it sent to script, i couldnt get it to work that way
i tried having it just straigh appended to the notepad but it didnt work
It isn't working because chat isn't part of the output from the game. So the trigger can't catch any of that. However you can open up the chat.xml file and look for this part:
' if message >= 4 and message <= 9 then
' AppendToNotepad "Chats", Replace (StripAnsi (sText), chr (10), vbCrLf)
' OnPluginChatDisplay = vbFalse
' end if
Then remove the 's on the first, second, and fourth line, it will make a notepad file and sends chat msgs there.
No, you don't need the chat plugin, that's for chatting with other clients, outside of the server.
What you need to do is change your trigger from %1 and %2 to * and * (in the match text).
And, go with append to notepad instead of SendtoNotepad.
But, the rest of your stuff looks good. You just weren't triggering on any lines.
Another thing you might want to do is just send %0, which is 'the whole line'. AppendToNotepad "Tell", "%0"
thanks very much fannel, that did the trick. is it possible to set it up so i can also send stuff i write to the same document? i can grab it, but it says 'tell' is already used
Umm, it shouldn't mention a notepad window being already used. Could you copy/paste your trigger here? (the whole trigger, not just the fields, it's easier! honest, click copy on the triggers dialog (thats the one with the multiple trigger) and then paste it here (both of the problem causing triggers, you can actually select them both and copy at the same time).
You can make both your input and the clan channel come out to the same window by using a small bit of script rather than "append to notepad". This is an example:
Both the trigger and alias use AppendToNotepad to append to the same window, "ClanTalk". I made the alias match on #clan, but you can make it whatever you usually type to chat in the clan channel.
Cannot use parentheses when calling a Sub
Line in error:
AppendToNotepad ("ClanTalk", ">", "#ct moo", "\r\n")
called by Immediate execution
Cannot use parentheses when calling a Sub
Line in error:
AppendToNotepad ("ClanTalk", "[CLAN] Lulu: '[Lu] I was so pissed off'")
called by immediate execution