Mulligan Silversmith Posted March 29, 2011 Share Posted March 29, 2011 With this script your able to send out a message to everyone in the sims. Simply type out a message "/1 You need stop Shooting" and a dialog will be sent out to everyone in the sims. They can choice to simply ingore it or okya it doesn't matter. What you need to know:Type in Channel /1/1 mMessage ("Must type mThen your Message" Example /1 mTest Test, Hello Everyone.")/1 s (" You only need say "s" To get message out to everyone" Example /1 s " You must add a message to be sent out!)default { on_rez(integer message) { llResetScript(); } state_entry() { llListen(1,"",llGetOwner(),""); } listen(integer channel,string name,key id,string message) { if(llGetSubString(message,0,0) == "m") { string message = llGetSubString(message,1,-1); llSetObjectDesc(message); llOwnerSay("message changed to " +message); } if(llGetSubString(message,0,0) == "s") { llSensor("", NULL_KEY, AGENT, 96, PI); } } sensor(integer count) { integer i; for(i = 0; i < count; ++i) { string message = (string)llGetObjectDesc(); llDialog(llDetectedKey(i), message, ["Ok"], 12345); } } } Link to comment Share on other sites More sharing options...
Rufus Darkfold Posted March 29, 2011 Share Posted March 29, 2011 I think this would send a message to the first 16 avatars it found that are within 96 meters of it, not "everyone in the sims". Still handy though. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now