Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

llInstantMessage help

Gomez Bracken
Who said that??
Join date: 12 Apr 2007
Posts: 479
05-05-2007 05:07
Hi

I'm currently learning how scripting works and having a go at writing and modifying some simple scripts.

I've written an online indicator, which when the object is touched, listens to the chat channel and allows the person to send me an IM.

The script is working, in that the message can be sent, and it seems to be working as an IM (ie if i'm not in the same region, the message comes through), but when the message is recieved, it comes through via the chat window rather than being trated by the client as a IM.

The section of the script which I use to send the message is here:

llInstantMessage(llGetOwner(), "IM from online Indicator: " + name + ": " + message);
llSay(0, "Thank you, " + name + ", your message has been sent.";);

The name variable is gathered from the person touching the object, and the message variable is collected from the chat channel.

Is this just a quirk (ie how llInstantMessage does work) or have I done it wrong? If it is a quirk, is there a workaround to send the message as an actual IM?

Gomez
Deanna Trollop
BZ Enterprises
Join date: 30 Jan 2006
Posts: 671
05-05-2007 05:23
From: Gomez Bracken
when the message is recieved, it comes through via the chat window rather than being trated by the client as a IM.
This is how all IMs from scripts are handled.


From: someone
is there a workaround to send the message as an actual IM?
Nope.
Sys Slade
Registered User
Join date: 15 Feb 2007
Posts: 626
05-05-2007 05:25
IMs from objects go through the chat window. AFAIK, there's no workaraound to make them use the proper IM window, because they cannot be replied to.
Gomez Bracken
Who said that??
Join date: 12 Apr 2007
Posts: 479
05-05-2007 05:48
Thanks :)

Thought I was doing something wrong, but if thats how it should work, that's fine :)

Gomez