Send a message to anyone in world as any name

Thread Started By Skoupa

2585
2
  • 73 Vote(s) - 2.93 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rate Thread
#1
(Simply create a prim and name it whatever you want the message to come from like: "John Resident". Add this script to it..The command is: /111 UserFirstName UserLastName Message you wish to send to them.. Updated to check to make sure the person is online. If they were offline, and had their IM's forwarded to e-mail, it would tell them who it came from.. (Or perhaps from the owner of the prim)
The target person can see your message only at open chat and the other residents arround can not.

[To see links please register here]

Code:
string NAME; // name to look up
   string URL = "http://w-hat.com/name2key"; // name2key url
   key reqid; // http request id
   string Message;
   integer x;
   key onlineReq;
   key avatarId;
   integer channel=111;
   default
  {
  state_entry()
  {
  llSetText("",<0,0,0>,0);
  llListen(channel,"",llGetOwner(),"");
  }
  on_rez(integer start_param)
  {
  llResetScript();
  }
  touch_start(integer num_detected)
  {
  llOwnerSay("Type: /" + (string)channel + " FirstName LastName Message to send to the person");
  }
  listen(integer channel,string name, key id, string message)
  {
  Message = "";
  list templist = llParseString2List(message, [" "],[]);
  integer length = llGetListLength(templist);
  for (x=2;x<length;x++)
  {
  Message = Message + llList2String(templist,x) + " ";
  }
  NAME = llList2String(templist,0) + " " + llList2String(templist,1);
  if(Message == "")
  {
  llOwnerSay("You must enter a message to send");
  }
  else
  {
  reqid = llHTTPRequest( URL + "?terse=1&name=" +llEscapeURL(NAME), [], "" );
  }
  }
  http_response(key id, integer status, list meta, string body) {
  if( id != reqid )
  return;
  if( status == 499 )
  llOwnerSay("name2key request timed out");
  else if( status != 200 )
  llOwnerSay("the internet exploded!!");
  else if( (key)body == NULL_KEY )
  llOwnerSay(NAME + " not found");
  else
  {
  avatarId = (key)body;
  onlineReq = llRequestAgentData((key)body,DATA_ONLINE);
  }
  }
  dataserver(key queryid, string data)
  {
  if( queryid != onlineReq )
  return;
  if( (integer)data )
  {
  llInstantMessage(avatarId, Message);
  llOwnerSay("[" + NAME + "] " + Message);
  llSetText(NAME + "\n" + Message,<1.0,0.0,0.0>,1.0);
  }
  else
  llOwnerSay(NAME + " is not online");
  }
  }
(add the script by Lagertha)
Reply


#2
can you paste the script instead of making it a .DOC file?
there is a thing called .DOC exploit so i dont trust this
Reply


#3
.doc is not a dangererous file its a microsoft world text file
maybe it will be open also with open office i will try and then ad the script here
Don't send Buddy Requests with no reasons
Rules 1-6

[To see links please register here]

Reply




Possibly Related Threads…
Thread Author Replies Views Last Post
  message relay script zion 0 3,368 02-18-2013, 03:40 AM
Last Post: zion
  Send IM From Website zion 0 2,552 02-18-2013, 03:38 AM
Last Post: zion

Forum Jump:

1 Guest(s)
Share this:

About Second Life Copybot

Second Life CopyBot Forum is a place where you can get items for Second Life and other vitual worlds for free. With our CopyBot viewers you can export and import any content from these virtual worlds and modify them in 3D software such as Blender, 3D studio Macx etc...