Jump to content

PixiPretty

Resident
  • Posts

    4
  • Joined

  • Last visited

Posts posted by PixiPretty

  1. On 20/08/2016 at 9:25 PM, Jules1979 said:

    I used this sctipt on my land.

    
    // Group gift / join script released into public domain by Qie Niangao, 2009.key GROUP_KEY = "GROUP_KEY";// Get the GROUP_KEY from its web page, found with// Search / All or from// http://search.secondlife.com/web/search/groups/?q="Group Name"// At the bottom of the group's web page is its URL,// the end of the URL is the group's key.string GIVING_MSG = "Thanks for your interest, and please enjoy your gift!";string JOIN_MSG = "You need to be a member of the group to get the gift.  If you're not a member, type Control-H to get the chat history, and click on the following blue-highlighted text, then Join.  ";string NOT_ACTIVE_MSG = "Or perhaps you're already a member and just don't have this group active at the moment; if so, click on the following text, choose the group from the list, and Activate.  ";string FOLDER_NAME = "Gift from Group Name";// ____________________________________________// END OF STUFF MOST USERS WOULD WANT TO CHANGE// --------------------------------------------string GROUP_URI = "secondlife:///app/group/";list giftContents;default{    state_entry()    {        // In lieu of other specs, we'll just give everything in the object's inventory except this script        // in a new folder named FOLDER_NAME.        integer invIdx = llGetInventoryNumber(INVENTORY_ALL) - 1;        string scriptName = llGetScriptName();        for (; invIdx >= 0; invIdx--)        {            string invItemName = llGetInventoryName(INVENTORY_ALL, invIdx);            if (invItemName != scriptName)                giftContents += invItemName;        }        if ([] == giftContents)            state no_contents;        else            llWhisper(0, "Will give folder named \"" + FOLDER_NAME + "\" containing these items: "                + llDumpList2String(giftContents, ", "));    }    changed(integer change)    {        if (CHANGED_INVENTORY & change)            llResetScript();    }    touch_start(integer total_number)    {        key toucher = llDetectedKey(0);        if (llSameGroup(toucher))        {            llInstantMessage(toucher, GIVING_MSG);            llGiveInventoryList(toucher, FOLDER_NAME, giftContents);            return;        }        llInstantMessage(toucher, JOIN_MSG + GROUP_URI + (string)GROUP_KEY + "/about\n"            + NOT_ACTIVE_MSG + GROUP_URI + "list/show");    }}state no_contents{    state_entry()    {        llWhisper(DEBUG_CHANNEL, "Nothing to give; please add one or more gift items.");    }    changed(integer change)    {        if (CHANGED_INVENTORY & change)            llResetScript();    }}

    Hi, I'm trying to make group gifts with no luck, I found this post but the text for this script pastes as one line when I put it into a SL new script! , is there anyway I can get this script set out for SL scripts,  thanks :) 

×
×
  • Create New...