From 4b9e19425abf7f3ba9dc710a45542b62ab18bdfa Mon Sep 17 00:00:00 2001 From: zontreck Date: Tue, 13 Aug 2024 20:30:53 -0700 Subject: [PATCH] Add more common code --- functions.lsl | 3 +++ variables.lsl | 20 ++++++++++++-------- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/functions.lsl b/functions.lsl index d934657..cffee26 100644 --- a/functions.lsl +++ b/functions.lsl @@ -257,6 +257,7 @@ string Uncheckbox(string sLabel) string SLURL(key kID){ return "secondlife:///app/agent/"+(string)kID+"/about"; } + string OSLURL(key kID) { return llKey2Name(kID); // TODO: Replace with a SLURL of some kind pointing to the object inspect. @@ -316,6 +317,7 @@ DeleteDSReq(key ID){ string MkMeta(list lTmp){ return llDumpList2String(lTmp, ":"); } + string SetMetaList(list lTmp){ return llDumpList2String(lTmp, ":"); } @@ -351,6 +353,7 @@ string int2Perms(integer perm) output += "none"; return output; } + string inv2Perms(string inventory, integer iMask) { integer perm = llGetInventoryPermMask(inventory,iMask); diff --git a/variables.lsl b/variables.lsl index ed13e61..8faa151 100644 --- a/variables.lsl +++ b/variables.lsl @@ -1,16 +1,20 @@ key NULL = NULL_KEY; string API_SERVER; -#define R_ADMIN 1 -#define R_DEVELOPER 2 -#define R_SUPPORT 4 +integer R_ADMIN = 1; +integer R_DEVELOPER = 2; +integer R_SUPPORT = 4; list g_lSupport; integer g_iLastSupportCheck; -#define RED_QUEEN "27a0ae67-30d9-4fbc-b9fb-fd388c98c202" -#define ARIA "5556d037-3990-4204-a949-73e56cd3cb06" -integer ONE_DAY = ((60*60)*24); +key RED_QUEEN = "27a0ae67-30d9-4fbc-b9fb-fd388c98c202"; +key ARIA = "5556d037-3990-4204-a949-73e56cd3cb06"; -list g_lCheckboxes=["□","▣"]; -list g_lDSRequests; \ No newline at end of file + +integer ONE_DAY = 86400; //((60*60)*24); +integer THIRTY_DAYS = 2592000; //(((60*60)*24)*30); + + +list g_lCheckboxes = ["□","▣"]; +list g_lDSRequests;