Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Sending a command to a script in another SIM...

Sydney Alexander
Registered User
Join date: 19 Feb 2005
Posts: 69
06-12-2005 15:45
Hi I have been all over the wiki trying to figure this out. i have a visitor tracker script that I want to be able to send a command to "report" the list of visitors via IM to me. I have the tracker and the command to IM me, but no way to trigger it remotley.

Help?

also:

I have this:

}
llInstantMessage(llGetOwner(), "Total = " + (string)len );
}

I want total to = (string)len ) /2 and I can't format it correctly to save me.

Thanks,
Catherine Omega
Geometry Ninja
Join date: 10 Jan 2003
Posts: 2,053
06-12-2005 16:34
Right now, the only way for one script to directly communicate with another in a different sim is to use email. It's kind of a pain, but we just don't have anything else that will do it. Luckily, there are examples available at the LSL wiki, so you shouldn't have too much trouble.

For your second question, try this:
llInstantMessage(llGetOwner(), "Total = " + (string)(len / 2));

By adding the brackets, (string) applies to the end result, not just "len".

Finally, if I can make a suggestion... if you're using this in your attachment object, try using llOwnerSay instead of llInstantMessage(llGetOwner(),etc). If you're using this in your object in another sim, you'll need to stick with llInstantMessage. (Remember, though, you can use a global variable and only call llGetOwner once, rather than every time llInstantMessage is called. ;))
_____________________
Need scripting help? Visit the LSL Wiki!
Omega Point - Catherine Omega's Blog
Sydney Alexander
Registered User
Join date: 19 Feb 2005
Posts: 69
06-12-2005 17:11
Hi Catherine,

Thank you for the suggestions. I have changed over to llOwnerSay. If I am within the same SIM what is the best way for me to tell the script to report on command... still suggest email?

Here is an example:

I am in one part of the sim and I see someone has entered. I don't want to run over and see who it is... I want to call over to that building and ask for a report.

Also this returns the same as before it does not tkae the list and devide it. The list spits out time and agent name. then says a total at the end. I wnat the total to be the number of agents/avatars counted. Now it counts the time and the avatar so 5 avatars with 5 time stamps = total 10. I want total=5

llInstantMessage(llGetOwner(), "Total = " + (string)(len / 2));

Thanks so much