https://wiki.secondlife.com/w/api.php?action=feedcontributions&user=Boreal+Latte&feedformat=atomSecond Life Wiki - User contributions [en]2024-03-28T09:22:22ZUser contributionsMediaWiki 1.36.1https://wiki.secondlife.com/w/index.php?title=LlInstantMessage&diff=51136LlInstantMessage2008-01-25T12:48:03Z<p>Boreal Latte: </p>
<hr />
<div>{{LSL_Function<br />
|func_id=118|func_sleep=2.0|func_energy=10.0<br />
|func=llInstantMessage<br />
|p1_type=key|p1_name=user|p1_desc<br />
|p2_type=string|p2_name=message|p2_desc<br />
|func_desc=Sends an Instant Message specified in the string '''message''' to the user specified by '''key'''.<br />
|return_text<br />
|spec<br />
|caveats=**For applications where this is problematic, it's possible to place the call to llInstantMessage in a child script and pass the information to that script via [[llMessageLinked]].<br />
*The message sent can not be longer than 1024 bytes.<br />
*The message shows up in the chat window. The message is not logged as part of the InstantMessage logging facility. <br />
|examples=Tell the owner somebody touched the object:<br />
<lsl>key owner;<br />
<br />
default<br />
{<br />
on_rez(integer start_param)<br />
{<br />
owner=llGetOwner(); // get the key of the objects owner.<br />
}<br />
touch_start(integer total_num)<br />
{ <br />
llInstantMessage(owner,llKey2Name(owner)+", " + (string)total_num +" Avatar(s) touched me!");<br />
}<br />
}</lsl><br />
Send a confirmation to the Avatar that touches an object without spamming other Avatars:<br />
<lsl>default<br />
{<br />
touch_start(integer total_num)<br />
{ <br />
llInstantMessage(llDetectedKey(0),"You have been registered!");<br />
}<br />
}</lsl><br />
|helpers<br />
|also_functions=<br />
{{LSL DefineRow||[[llOwnerSay]]|}}<br />
{{LSL DefineRow||[[llRegionSay]]|Sends chat region wide}}<br />
{{LSL DefineRow||[[llWhisper]]|Sends chat limited to 10 meters}}<br />
{{LSL DefineRow||[[llSay]]|Sends chat limited to 20 meters}}<br />
{{LSL DefineRow||[[llShout]]|Sends chat limited to 100 meters}}<br />
|also_tests<br />
|also_articles<br />
|also_events<br />
|notes=Instant Messaging has the benefit of allowing communication from an object to an avatar anywhere in the Grid. The downside is that an object cannot receive an Instant Message, therefore an avatar cannot send an Instant Message to an object. It's a one-way communication avenue. Also, the two-second script delay can be considered a downside in some applications.<br />
|cat1=Communications<br />
|cat2=Instant Message<br />
|cat3<br />
|cat4<br />
}}</div>Boreal Lattehttps://wiki.secondlife.com/w/index.php?title=Category_talk:LSL_Events&diff=49830Category talk:LSL Events2008-01-18T20:28:20Z<p>Boreal Latte: </p>
<hr />
<div>Why all events have a code ender? should be starting with both brackets.<br />
<br />
Not this... event(integer);<br />
<br />
Should be this... event(integer){ }<br />
<br />
But I am unable to correct this format in the wiki, what's the deal? -Vincent Nacon<br />
<br />
:Sorry thats my fault, I've been meaning to fix it, it's a bug in the template. I just kept forgetting. [[User:Strife Onizuka|Strife Onizuka]]<br />
:Fixed, the variable for that part of the title was getting double defined; the latter overwriting the former. [[User:Strife Onizuka|Strife Onizuka]] 18:17, 6 April 2007 (PDT)<br />
<br />
== Attach under S letter ==<br />
<br />
The [[Attach]] event is listed under '''S''' letter. I have no idea about how to fix it. Can someone fix that? (and explain here how it was done)<br />
--[[User:CrazyTB Oh|CrazyTB Oh]] 11:37, 21 August 2007 (PDT)<br />
<br />
:I fixed it. What I do is delete the part that says this is part of the "LSL_EVENTS" category and then put it back. That usually fixes it, and when it doesn't then I just mess around with the page and it eventually gets fixed... [[User:Xaviar Czervik|Xaviar Czervik]] 15:43, 17 September 2007 (PDT)<br />
<br />
== Script Ban Zones ==<br />
I have spend many hours on trying to figure out how events are handled in script ban zones. I have some text to describe it. But I am not sure where to put it, so for a start I put it here, someone might then help me put the logical place (which I have not yet figured out).<br />
<br />
All the usual events are happening in script-banned zones, only the script does not react to them, but keep them in the event queue for later execution. This might potentially cause problems with the 64 length of the queue, though I have not tried this out.<br />
<br />
Notice, even listen events are stored. Also notice, pending listen events are removed when moving to a new region, but not other events I have tried.<br />
<br />
The big surprise is that scripts can be made to execute in a script ban zone - pending events to a script in an attachment are all executed when the attachment is detached. By attaching and detaching an attachment, one can therefore execute code in a no script zone, even listen events. However, this will most often not be very useful.<br />
<br />
I have verified that, change, rezzing, attachment, touch are all registered and stored in the event queue for later execution. I have not investigated the behavior of other events in depth.<br />
<br />
Finally, there are some restrictions regarding repetition of events I have not fully explored. For instance, it seems that only one touch event is queued even if one touches an attachment multiple times.<br />
<br />
<br />
2008 jan 17 -[[User:Boreal Latte|Boreal Latte]]</div>Boreal Latte