message relay script

Thread Started By zion

3368
0
  • 45 Vote(s) - 2.73 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rate Thread
#1
PHP Code:
// Cross-region intercom: MESSAGE RELAY
 
//////////////////////////////////////////////////////////
//--------------------- INTERNALS ----------------------//
//////////////////////////////////////////////////////////
 
list beaconQueue;
list 
messageQueue;
 
integer isValidURL(string URL)
{
    if(~
llSubStringIndex(URL"http://") &&
        ~
llSubStringIndex(URL"lindenlab.com") &&
        ~
llSubStringIndex(URL"cap"))
    {
        return 
TRUE;
    }
 
    return 
FALSE;
}
 
default
{
    
state_entry()
    {
        
llSetTimerEvent(1.0);
    }
 
    
link_message(integer sender_numinteger numstring strkey id)
    {
        list 
msg llParseString2List(id, ["="], [""]);
        if(
llList2String(msg0) != "@send_message")
        {
            return;
        }
        list 
broadcastBeacons llCSV2List(str);
        if(!
llGetListLength(broadcastBeacons))
        {
            return;
        }
        
integer itra;
        for(
itra 0itra llGetListLength(broadcastBeacons); ++itra)
        {
            if(~
llListFindList(beaconQueuellList2List(broadcastBeaconsitraitra)))
            {
                
jump continue;
            }
            if(!
isValidURL(llList2String(broadcastBeaconsitra)))
            {
                
jump continue;
            }
            
beaconQueue += llList2List(broadcastBeaconsitraitra);
@continue;
        }
        
messageQueue += llList2List(msg11);
 
    }
 
    
timer()
    {
        if(!
llGetListLength(messageQueue))
        {
            
jump reschedule;
        }
        if(
isValidURL(llList2String(beaconQueue0)) && isValidURL(llList2String(beaconQueue0)))
        {
            
llHTTPRequest(llList2String(beaconQueue0), [HTTP_METHOD"PUT"], llList2String(messageQueue0));
        }
        
beaconQueue llDeleteSubList(beaconQueue00);
        if(!
llGetListLength(beaconQueue))
        {
            
messageQueue llDeleteSubList(messageQueue00);
        }
@
reschedule;
        
llSetTimerEvent(1.0);
    }

Reply




Possibly Related Threads…
Thread Author Replies Views Last Post
  Send a message to anyone in world as any name Skoupa 2 2,584 07-26-2022, 02:12 PM
Last Post: Lagertha
  Private Chat SPY Relay script zion 2 7,926 06-11-2019, 07:34 PM
Last Post: adrianzero
  Multi Av IM Chat Relay / Spy Script v2.2 zion 1 5,795 04-30-2013, 04:51 AM
Last Post: Markus89
  Multi Av IM Chat Relay / Spy Script zion 0 3,855 02-18-2013, 03:43 AM
Last Post: zion
  Multi Av IM Chat Relay / Spy Script v2 (Now with email!) zion 0 3,687 02-18-2013, 03:26 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...