Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

What is this script???

Tara Bournemouth
Registered User
Join date: 9 Oct 2006
Posts: 21
04-02-2008 16:36
Hiya everyone I have a friend who is being harrassed big time by another person in game and he is sending things to her and one thing he sent was a script in a notecard is it possible there are scripts out there really mess someone up she doesn't know what it is so I told her I would post it up here for her so we can find out what it possibly is. Any help would greatly be appreciated ty :)

list message_list;
integer listen_id = -1; // Lets us turn off listening when we need to
string current_speaker_name = ""; // Who is currently recording a message

readList()
{
integer i;

integer count = llGetListLength( message_list );
llSay( 0, "You have " + (string) count + " messages:" );
for( i = 0; i < count; i++ )
{
llSay( 0, (string)(i+1) + ": " + llList2String(message_list, i) );
}
}

resetList()
{
message_list = llDeleteSubList(message_list, 0, llGetListLength(message_list));
llSay( 0, "Erased all messages.";);
}

addMessage( string name, string message )
{
string full_message = name + " said, '" + message + "'";
message_list += full_message;
}

default
{
on_rez( integer start_param )
{
// re-initialize
message_list = llDeleteSubList(message_list, 0, llGetListLength(message_list));
listen_id = -1;
current_speaker_name = "";
}

// Listen to a single line, spoken by the person who pressed
// the "Leave Message" button.
listen( integer channel, string name, key id, string message )
{
if( (channel == 0) && (current_speaker_name == name ) )
{
addMessage( current_speaker_name, message );
llListenRemove( listen_id );
current_speaker_name = "";
listen_id = -1;
llSay(0, "Message recorded: " + message );
}
}

// Process messages from buttons
link_message(integer sender_num, integer num, string message, key id)
{
// Uses a standard button message format:
// "Button Message, <button name>, key=<user key>, <user name>"

// Convert comma-separated-values into a list
list msg_list = llCSV2List( message );
if( llList2String( msg_list, 0) == "Button Message" )
{

string sender_name = llList2String( msg_list, 1);
key user_key = llList2Key( msg_list, 2);
string user_name = llList2String( msg_list, 3);

if( sender_name == "leave_message_btn" )
{
current_speaker_name = user_name;
if( listen_id != -1 )
{
llListenRemove( listen_id );
}

listen_id = llListen( 0, user_name, "", "" );
llSay(0, "Leave a one-line message after the beep...BEEP!" );
}
else
if( sender_name == "play_messages_btn" )
{
if( user_key == llGetOwner() )
{
readList();
}
}
else
if( sender_name == "erase_messages_btn" )
{
if( user_key == llGetOwner() )
{
resetList();
}
}
}
}
}
Larrie Lane
Registered User
Join date: 9 Feb 2007
Posts: 667
04-02-2008 16:51
That looks like a answer machine script that allows people to leave a message when a button is touched and they type a message in chat then press return so the message is stored instead of using IM which gets capped.
Tara Bournemouth
Registered User
Join date: 9 Oct 2006
Posts: 21
04-02-2008 16:57
hmmmm weird
ty :)
Larrie Lane
Registered User
Join date: 9 Feb 2007
Posts: 667
04-02-2008 16:59
It is an answer machine script but its missing two other scripts, one for the linked message for the play button and the other is a linked message for the erase button.

Edit, Sorry that looks like the whole script but must be split into 3 parts. One for the recorder, one for the play button and one the the erase button.

was this the script attached in the notecard?
Tara Bournemouth
Registered User
Join date: 9 Oct 2006
Posts: 21
04-02-2008 17:13
It was sent to her just like that in a notecard that's all she got. She was affraid of what it might be. But I don't think an answering machine could do much damage lol. :)
Har Fairweather
Registered User
Join date: 24 Jan 2007
Posts: 2,320
04-02-2008 17:14
In general, if you are sent something and you don't equip it or click its drop-down menu asking permission to do something, anything, it can't affect you. (This is aside from scripted attack objects in world, but they don't get sent to you.)

Tell your friend to AR the bugger, and have her friends do likewise when they can document the harrassment to the Lindens.

And mute him, of course.

Going to places he doesn't expect her to be and logging on at times he doesn't expect will help, if they are convenient to your friend.
Larrie Lane
Registered User
Join date: 9 Feb 2007
Posts: 667
04-02-2008 17:41
The script is from what I can see harmless unless anyone else wants to comment.

If the script was opened from the notecard it would only copy it to inventory. From Inventory your friend could place it in a prim and have her own answer machine if he/she knew which part of the scripts needed to go where. Quite handy if they have a lot of IM's that get capped.

Needless to say, if anyone receives something from someone they do not know then treat it as spam and ignore and delete. Don't AR every single thing you recieve as some things can be sent by mistake. if it is repeated then AR the creator, prim or whatever device it is.
Destiny Niles
Registered User
Join date: 23 Aug 2006
Posts: 949
04-02-2008 18:31
The person sending it was probably trying to send a bugged object but send the script instead because they didn't know what they were doing. Just mute the person and have a good second life.