These are the changes I have made. I do not know if they are valid changes or not, as I am not a coder and this is my first toe-dip into the xml and plugin coding.
Quote:
<trigger
enabled="y" keep_evaluating="y" regexp="y" omit_from_output="y"
match="^\[(Public|Roleplay|Code|Help|Chargen)\] .*"
script="chats"
send_to="12"
sequence="100"
>
<send>
Win = GetPluginID() .. "_Chats"
TRIGGER_TITLE_NAME = Chat Channels
</send>
</trigger>
<trigger
enabled="y" keep_evaluating="y" regexp="y" omit_from_output="y"
match="^(Long distance to |You paged |From afar, |.* pages: |\(To: .*\) ).*"
script="chats"
send_to="12"
sequence="100"
>
<send>
Win = GetPluginID() .. "_Pages"
TRIGGER_TITLE_NAME = Pages
</send>
</trigger>
Quote:
theme = {
TITLE_NAME = TRIGGER_TITLE_NAME, -- for miniwindow title area
}
Quote:
-- Title text
WindowText(Win, "titlefont"..Win, theme.TITLE_NAME, ((WINDOW_WIDTH)-(7.5*line_height))/2, (theme.TITLE_HEIGHT-line_height)/2, WINDOW_WIDTH, theme.TITLE_HEIGHT, theme.HIGHLIGHT, false)
When I install it I get the following error messages
Quote:
Error number: 0
Event: Run-time error
Description: [string "Plugin"]:116: bad argument #1 to 'WindowCreate' (string expected, got nil)
stack traceback:
[C]: in function 'WindowCreate'
[string "Plugin"]:116: in function <[string "Plugin"]:114>
Called by: Function/Sub: OnPluginInstall called by Plugin Chat_Capture_Miniwindow
Reason: Executing plugin Chat_Capture_Miniwindow sub OnPluginInstall
And when triggering the Chat trigger:
Quote:
Error number: 0
Event: Compile error
Description: [string "Trigger: "]:4: '=' expected near '<eof>'
Called by: Immediate execution
Quote:
Error number: 0
Event: Run-time error
Description: [string "Plugin"]:449: attempt to compare string with number
stack traceback:
[string "Plugin"]:449: in function 'add_line'
[string "Plugin"]:359: in function 'fillBuffer'
[string "Plugin"]:439: in function <[string "Plugin"]:411>
Called by: Function/Sub: chats called by trigger
Reason: processing trigger ""
[EDIT] (by moderator) quoted forum codes. |