corrade-lsl-templates – Diff between revs 5 and 29
?pathlinks?
Rev 5 | Rev 29 | |||
---|---|---|---|---|
Line 1... | Line 1... | |||
1 | /////////////////////////////////////////////////////////////////////////// |
1 | /////////////////////////////////////////////////////////////////////////// |
|
2 | // Copyright (C) Wizardry and Steamworks 2016 - License: GNU GPLv3 // |
2 | // Copyright (C) Wizardry and Steamworks 2016 - License: CC BY 2.0 // |
|
3 | /////////////////////////////////////////////////////////////////////////// |
3 | /////////////////////////////////////////////////////////////////////////// |
|
4 | // |
4 | // |
|
5 | // This script can be used to control Corrade's movement manually using the |
5 | // This script can be used to control Corrade's movement manually using the |
|
6 | // WSAD and arrow keys on the keyboard. |
6 | // WSAD and arrow keys on the keyboard. |
|
7 | // |
7 | // |
|
Line 9... | Line 9... | |||
9 | // http://grimore.org/secondlife/scripted_agents/corrade |
9 | // http://grimore.org/secondlife/scripted_agents/corrade |
|
10 | // |
10 | // |
|
11 | /////////////////////////////////////////////////////////////////////////// |
11 | /////////////////////////////////////////////////////////////////////////// |
|
Line 12... | Line 12... | |||
12 | |
12 | |
|
13 | /////////////////////////////////////////////////////////////////////////// |
13 | /////////////////////////////////////////////////////////////////////////// |
|
14 | // Copyright (C) 2015 Wizardry and Steamworks - License: GNU GPLv3 // |
14 | // Copyright (C) 2015 Wizardry and Steamworks - License: CC BY 2.0 // |
|
15 | /////////////////////////////////////////////////////////////////////////// |
15 | /////////////////////////////////////////////////////////////////////////// |
|
16 | string wasKeyValueGet(string k, string data) { |
16 | string wasKeyValueGet(string k, string data) { |
|
17 | if(llStringLength(data) == 0) return ""; |
17 | if(llStringLength(data) == 0) return ""; |
|
18 | if(llStringLength(k) == 0) return ""; |
18 | if(llStringLength(k) == 0) return ""; |
|
Line 21... | Line 21... | |||
21 | if(i != -1) return llList2String(a, 2*i+1); |
21 | if(i != -1) return llList2String(a, 2*i+1); |
|
22 | return ""; |
22 | return ""; |
|
23 | } |
23 | } |
|
Line 24... | Line 24... | |||
24 | |
24 | |
|
25 | /////////////////////////////////////////////////////////////////////////// |
25 | /////////////////////////////////////////////////////////////////////////// |
|
26 | // Copyright (C) 2013 Wizardry and Steamworks - License: GNU GPLv3 // |
26 | // Copyright (C) 2013 Wizardry and Steamworks - License: CC BY 2.0 // |
|
27 | /////////////////////////////////////////////////////////////////////////// |
27 | /////////////////////////////////////////////////////////////////////////// |
|
28 | string wasKeyValueEncode(list data) { |
28 | string wasKeyValueEncode(list data) { |
|
29 | list k = llList2ListStrided(data, 0, -1, 2); |
29 | list k = llList2ListStrided(data, 0, -1, 2); |
|
30 | list v = llList2ListStrided(llDeleteSubList(data, 0, 0), 0, -1, 2); |
30 | list v = llList2ListStrided(llDeleteSubList(data, 0, 0), 0, -1, 2); |
|
Line 36... | Line 36... | |||
36 | } while(llGetListLength(k) != 0); |
36 | } while(llGetListLength(k) != 0); |
|
37 | return llDumpList2String(data, "&"); |
37 | return llDumpList2String(data, "&"); |
|
38 | } |
38 | } |
|
Line 39... | Line 39... | |||
39 | |
39 | |
|
40 | /////////////////////////////////////////////////////////////////////////// |
40 | /////////////////////////////////////////////////////////////////////////// |
|
41 | // Copyright (C) 2015 Wizardry and Steamworks - License: GNU GPLv3 // |
41 | // Copyright (C) 2015 Wizardry and Steamworks - License: CC BY 2.0 // |
|
42 | /////////////////////////////////////////////////////////////////////////// |
42 | /////////////////////////////////////////////////////////////////////////// |
|
43 | // escapes a string in conformance with RFC1738 |
43 | // escapes a string in conformance with RFC1738 |
|
44 | string wasURLEscape(string i) { |
44 | string wasURLEscape(string i) { |
|
45 | string o = ""; |
45 | string o = ""; |