Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

llInstantMessage help

Mulligan Maskelyne
Registered User
Join date: 30 Jan 2009
Posts: 6
10-06-2009 21:27
Hello I was wondering if I could get InstantMessage to run off a list example

list names = [];


llInstantMessage(names, "hey";);

I know I'm able to run it when its set up with string name but with this little setup I'm only allowed to add one person to list

if anyone can help me out that would be nice and Thanks ahead of time
Innula Zenovka
Registered User
Join date: 20 Jun 2007
Posts: 1,825
10-06-2009 21:46
You send instant messages to uuids, not names, of course.

You would just need to loop through the list, doing something like this, I think:
CODE

list uuids;// needs some uuids, obviously
string message="this is a message";
integer max = llGetListLength(uuids);
integer i;
for(i=0;i < max;++i){
llInstantMessage(llList2Key(uuids,i),message);
}

As you will probably know, llInstantMessage causes the script to sleep for 2 seconds, so it might take some time to send out all your messages
Mulligan Maskelyne
Registered User
Join date: 30 Jan 2009
Posts: 6
10-06-2009 21:58
Thank you very much Help alot xD