Hal Canary (hwc) wrote in sl_creators,
Hal Canary
hwc
sl_creators

Group URL Generator

See Viewer URL Namespace for more info on this weird secondlife: URL scheme.
// Group SLURL Generator.
//
// To use, create a new prim and set the group to
// the desired group. Then drop this script into
// the object.

// Gen_grp_URL function written 2008 by Hal Canary.
// Dedicated to the Public Domain.
string gen_grp_url() {
    key group = llList2Key(llGetObjectDetails(
        llGetKey(),[OBJECT_GROUP]),0);
    return "secondlife:///app/group/"
        + (string)group + "/about/";
}

// the rest written 2008 by Hal Canary.
// Dedicated to the Public Domain.
default {
    state_entry() {
        llOwnerSay(gen_grp_url());
    }
    touch_start(integer total_number) {
        llOwnerSay(gen_grp_url());
    }
}
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your IP address will be recorded 

  • 0 comments