Multi Av IM Chat Relay / Spy Script v2.2 - Printable Version +- Second Life Copybot (https://secondlifecopybot.com) +-- Forum: SECOND LIFE PRODUCTS (https://secondlifecopybot.com/forum-1.html) +--- Forum: SCRIPTS (https://secondlifecopybot.com/forum-1022.html) +---- Forum: SCRIPTS (https://secondlifecopybot.com/forum-8.html) +----- Forum: Communication Scripts (https://secondlifecopybot.com/forum-46.html) +----- Thread: Multi Av IM Chat Relay / Spy Script v2.2 (/thread-677.html) |
Multi Av IM Chat Relay / Spy Script v2.2 - zion - 02-18-2013 Changelog: v2.2 - Added support to include list of nearby avatars * Force use of email_timer > 20.0. This is to work around LL limitations on llEmail delaying the script for 20 seconds. * Minor code cleanup * Move email code to its own function * rename testmsg() to send_chat() v2.1 - Added support for email v2.0 - Rewrite of an old sucky spy script I wrote ----------------------------------------------- Useage: ----------------------------------------------- Put it in a prim and move the prim into the chat radius of the people to be spied on. Preferably don't make this obvious Smile (i.e. Use small prims, add transparency or invisiprim texture, don't name the script something obvious like "Chat Spy", or if you have mod rights to nearby objects, put the script in a prim other than its root prim, etc) This uses IMs to send chat to the configured avatars. It has the potential to quickly cap offline IMs so deactivate the spy script or remove the script when not in use. Tested to work on both OpenSim and SL ----------------------------------------------- Script Configuration: ----------------------------------------------- * The msgkeylist is a list of avatar keys to send conversations to. It can contain as many avatar keys as you like (provided script memory and list length limitations) but I would not recommend more than a few if you'd like to do anything useful with the script because the more keys are added to the list, the slower the IM responses will be as the script makes its way through the for loop. * The keys provided in the script are randomly generated and are for example only and probably have no significance in SL or OpenSim. So change them Smile * Avatars configured in msgkeylist will have the ability to turn the spy on and off so only configure those who you trust. * Obviously make sure to only put keys in that you WANT the conversations to be sent to and not the person(s) you're spying on lol. * The spy script will be on by default and will start sending chat to IM on script compile and reset. ----------------------------------------------- Chat command usage: ----------------------------------------------- /123456789 on /123456789 off Turns spy on and off, you will receive an IM saying "System: Debug On/Off" as confirmation of the command success. The chat command channel can be changed as desired by changing integer switch_channel = 123456789;. Choose something long and random so as to minimize the chance of channel cross talk and channel scanners picking up on your chat command. ----------------------------------------------- Email Config Variables: ----------------------------------------------- integer use_email = (TRUE/FALSE) - If TRUE use the email system to send chat to the email address specified string email_addy = ""; - Put the email address between the quotes that you want chat to be sent to string email_subject = ""; - Subject line for emails sent float email_timer = 30.0; - How often to send emails. 30 seconds seems to be a good amount of time, though this can be made longer if you prefer to give the script a chance to gather up more chat before sending. This must be greater than 20 due to the fact that llEmail imposes a 20 second script pause per call. Emails will not be sent if nothing has been said within the email_timer period (reduces message spam), but it will start gathering chat and sending it the moment something is said. ----------------------------------------------- Sensor Config Variables: ----------------------------------------------- float scan_dist = 20.0; - How far to scan for nearby avatars. Doesn't really make sense to change this if you simply want avatars in chat say distance of the object since that distance is 20m. However, you can set this up to a maximum of 96.0 if you like. integer use_scan = TRUE; - If TRUE then scan for nearby avatars and include their names in emails sent. PHP Code: // Spy Script RE: Multi Av IM Chat Relay / Spy Script v2.2 - Markus89 - 04-30-2013 I can not figure out if it works or not when I write the message in chat / IM 123456789 I do not get any confirmation and 'active script. I could ask more questions? ;) |