-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathexample_deliver_specific_group.lsl
27 lines (22 loc) · 1.14 KB
/
example_deliver_specific_group.lsl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
string product = "W0pDU09dIEVxdWlwbWVudCBQYWNrIDIwMjEgQmFzaWMoYm94ZWQp"; //Base64 Encoded Object Name
string authkey = "";
string purpose = ""; // The Box ID, eventually, this will be optional, if not specified, it will ask each dropbox until one replies that it has it.
string baseURL = "";
default
{
touch_start(integer total_number)
{
key AttachedNames;
list AttachedUUIDs = llGetAttachedList(llDetectedKey(0));
list temp = llGetObjectDetails(llList2Key(AttachedUUIDs,0),[OBJECT_GROUP]);
AttachedNames = llList2Key(temp,0);
// Jasper County Sheriff's Office Group Key
if(AttachedNames == "32b66933-f4da-75e1-6693-49c62e2676a5"){
llHTTPRequest(baseurl + "?auth="+ llEscapeURL(authkey) + "&purpose=" + llEscapeURL(purpose) + " &item=" + llEscapeURL(product) + "&uuid=" + llEscapeURL(llDetectedKey(0)), [], "");
llInstantMessage(llDetectedKey(0), "Attempting to send you the JCSO Uniform and Equipment Pack from the magical elves in the Red Robot Cloud");
}
else{
llSay(0, "SECURITY WARN: Please ensure you have the appropiate JCSO Group Tag on.");
}
}
}