Join us in Outworldz at www.outworldz.com:9000 or follow us:

Search dozens of selected web sites for OpenSim and LSL script

New! Script Meta-Search will search thousands of scripts here and at other sites for LSL or Opensim scripts.
Loading

Want to add a script or a project? Upload it and a half million people will see it and your name here this year.

Home   Show All
Category: Contributor: Creator
Chat Emoter  

Emoter

I use the the tell() function in this script in a lot of places in SL. It lets the object take on other people or objects names.

Category: Chat
By : Ferd Frederix
Created: 2011-01-22 Edited: 2011-01-22
Worlds: Second Life

the Zip file

Download all files for Emoter
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Emoter_1.lsl

This script by Ferd Frederix may be used in any manner, modified, and republished.  Unless specified otherwise, my scripts are always free and open source.  Objects made with these scripts may be sold with no restrictions.  All I ask is that you point others to this location should they ask you about it and to not sell this script, unless it is for $0 L. Please help improve my work by reporting bugs and improvements.

1 Tell (string story) {
2 integer ind=llSubStringIndex(story, " ");
3 if(ind>-1) {
4 string oldname=llGetObjectName();
5 llSetObjectName(llGetSubString(story, 0, ind-1));
6 llSay(0,"/me "+llGetSubString(story, ind+1, -1));
7 llSetObjectName(oldname);
8 } else {
9 llSay(0,story);
10 }
11 }
12
13
14
15 default
16 {
18 {
19
20 integer random = llCeil(llFrand(99)) +50;
21 llOwnerSay("Type chat on channel " + (string) random + ". Like this: /"+ (string)random + " some text");
22 llListen(random, "", "", "");
23
24 }
25
26
27 listen( integer channel, string name, key id, string message )
28 {
29 Tell(message);
30 }
31
32 on_rez( integer start)
33 {
35 }
36
37 }

Back to the Best Free Tools in Second Life and OpenSim.