From 20215c3d30fb55bf232bff1b3d6652d82e00b798 Mon Sep 17 00:00:00 2001 From: Jeff Ames Date: Sat, 26 Jan 2008 10:34:49 +0000 Subject: Rewrote svn properties handling script in python. Added more file types. --- bin/assets/ScriptsAssetSet/llAbs.lsl | 14 +- bin/assets/ScriptsAssetSet/llAcos.lsl | 16 +- bin/assets/ScriptsAssetSet/llAddToLandBanList.lsl | 168 ++++++++++----------- bin/assets/ScriptsAssetSet/llAddToLandPassList.lsl | 168 ++++++++++----------- bin/assets/ScriptsAssetSet/llAdjustSoundVolume.lsl | 26 ++-- .../ScriptsAssetSet/llAllowInventoryDrop.lsl | 34 ++--- bin/assets/ScriptsAssetSet/llAngleBetween.lsl | 22 +-- bin/assets/ScriptsAssetSet/llApplyImpulse.lsl | 32 ++-- bin/assets/ScriptsAssetSet/llAsin.lsl | 18 +-- bin/assets/ScriptsAssetSet/llAtan2.lsl | 22 +-- bin/assets/ScriptsAssetSet/llAvatarOnSitTarget.lsl | 40 ++--- bin/assets/ScriptsAssetSet/llBase64ToString.lsl | 16 +- .../ScriptsAssetSet/llRemoveFromLandBanList.lsl | 168 ++++++++++----------- .../ScriptsAssetSet/llRemoveFromLandPassList.lsl | 168 ++++++++++----------- bin/assets/ScriptsAssetSet/llResetLandBanList.lsl | 168 ++++++++++----------- bin/assets/ScriptsAssetSet/llResetLandPassList.lsl | 168 ++++++++++----------- bin/assets/ScriptsAssetSet/llSay.lsl | 14 +- bin/assets/ScriptsAssetSet/llSetParcelMusicURL.lsl | 14 +- bin/assets/ScriptsAssetSet/llSetRot.lsl | 26 ++-- 19 files changed, 651 insertions(+), 651 deletions(-) (limited to 'bin/assets/ScriptsAssetSet') diff --git a/bin/assets/ScriptsAssetSet/llAbs.lsl b/bin/assets/ScriptsAssetSet/llAbs.lsl index aa39395..2b37584 100644 --- a/bin/assets/ScriptsAssetSet/llAbs.lsl +++ b/bin/assets/ScriptsAssetSet/llAbs.lsl @@ -1,7 +1,7 @@ -default -{ - state_entry() - { - llOwnerSay("The absolute value of -4 is: "+(string)llAbs(-4) ); - } -} +default +{ + state_entry() + { + llOwnerSay("The absolute value of -4 is: "+(string)llAbs(-4) ); + } +} diff --git a/bin/assets/ScriptsAssetSet/llAcos.lsl b/bin/assets/ScriptsAssetSet/llAcos.lsl index da30a0d..5450bc0 100644 --- a/bin/assets/ScriptsAssetSet/llAcos.lsl +++ b/bin/assets/ScriptsAssetSet/llAcos.lsl @@ -1,8 +1,8 @@ -default -{ - state_entry() - { - float r = llFrand(2) - 1.0; - llOwnerSay("The arccosine of " + (string)r + " is " + llAcos(r)); - } -} +default +{ + state_entry() + { + float r = llFrand(2) - 1.0; + llOwnerSay("The arccosine of " + (string)r + " is " + llAcos(r)); + } +} diff --git a/bin/assets/ScriptsAssetSet/llAddToLandBanList.lsl b/bin/assets/ScriptsAssetSet/llAddToLandBanList.lsl index 19ad704..f2df357 100644 --- a/bin/assets/ScriptsAssetSet/llAddToLandBanList.lsl +++ b/bin/assets/ScriptsAssetSet/llAddToLandBanList.lsl @@ -1,84 +1,84 @@ -//Commands are: -///5 ban:full_avatar_name -///5 tempban:full_avatar_name -///5 unban:full_avatar_name -///5 pass:full_avatar_name -///5 unpass:full_avatar_name -///5 clearban -///5 clearpass - -string command; - -default -{ - state_entry() - { - llListen(5, "", llGetOwner(), ""); - } - - on_rez(integer param) - { - llResetScript(); - } - - listen(integer chan, string name, key id, string message) - { - if (command != "") - { - llOwnerSay("Sorry, still processing last command, try again in a second."); - } - - list args = llParseString2List(message,[":"],[]); - command = llToLower(llList2String(args,0)); - - if (command == "clearbans") - { - llResetLandBanList(); - } - if (command == "clearpass") - { - llResetLandPassList(); - } - else - { - llSensor(llList2String(args,1),NULL_KEY,AGENT,96,PI); - } - } - - no_sensor() - { - command = ""; - } - - sensor(integer num) - { - integer i; - for (i=0; i< num; ++i) - { - if (command == "ban") - { - // Ban indefinetely - llAddToLandBanList(llDetectedKey(i),0.0); - } - if (command == "tempban") - { - // Ban for 1 hour. - llAddToLandBanList(llDetectedKey(i),1.0); - } - if (command == "unban") - { - llRemoveFromLandBanList(llDetectedKey(i)); - } - if (command == "pass") - { - // Add to land pass list for 1 hour - llAddToLandPassList(llDetectedKey(i),1.0); - } - if (command == "unpass") - { - llRemoveFromLandPassList(llDetectedKey(i)); - } - } - command = ""; - } -} +//Commands are: +///5 ban:full_avatar_name +///5 tempban:full_avatar_name +///5 unban:full_avatar_name +///5 pass:full_avatar_name +///5 unpass:full_avatar_name +///5 clearban +///5 clearpass + +string command; + +default +{ + state_entry() + { + llListen(5, "", llGetOwner(), ""); + } + + on_rez(integer param) + { + llResetScript(); + } + + listen(integer chan, string name, key id, string message) + { + if (command != "") + { + llOwnerSay("Sorry, still processing last command, try again in a second."); + } + + list args = llParseString2List(message,[":"],[]); + command = llToLower(llList2String(args,0)); + + if (command == "clearbans") + { + llResetLandBanList(); + } + if (command == "clearpass") + { + llResetLandPassList(); + } + else + { + llSensor(llList2String(args,1),NULL_KEY,AGENT,96,PI); + } + } + + no_sensor() + { + command = ""; + } + + sensor(integer num) + { + integer i; + for (i=0; i< num; ++i) + { + if (command == "ban") + { + // Ban indefinetely + llAddToLandBanList(llDetectedKey(i),0.0); + } + if (command == "tempban") + { + // Ban for 1 hour. + llAddToLandBanList(llDetectedKey(i),1.0); + } + if (command == "unban") + { + llRemoveFromLandBanList(llDetectedKey(i)); + } + if (command == "pass") + { + // Add to land pass list for 1 hour + llAddToLandPassList(llDetectedKey(i),1.0); + } + if (command == "unpass") + { + llRemoveFromLandPassList(llDetectedKey(i)); + } + } + command = ""; + } +} diff --git a/bin/assets/ScriptsAssetSet/llAddToLandPassList.lsl b/bin/assets/ScriptsAssetSet/llAddToLandPassList.lsl index 19ad704..f2df357 100644 --- a/bin/assets/ScriptsAssetSet/llAddToLandPassList.lsl +++ b/bin/assets/ScriptsAssetSet/llAddToLandPassList.lsl @@ -1,84 +1,84 @@ -//Commands are: -///5 ban:full_avatar_name -///5 tempban:full_avatar_name -///5 unban:full_avatar_name -///5 pass:full_avatar_name -///5 unpass:full_avatar_name -///5 clearban -///5 clearpass - -string command; - -default -{ - state_entry() - { - llListen(5, "", llGetOwner(), ""); - } - - on_rez(integer param) - { - llResetScript(); - } - - listen(integer chan, string name, key id, string message) - { - if (command != "") - { - llOwnerSay("Sorry, still processing last command, try again in a second."); - } - - list args = llParseString2List(message,[":"],[]); - command = llToLower(llList2String(args,0)); - - if (command == "clearbans") - { - llResetLandBanList(); - } - if (command == "clearpass") - { - llResetLandPassList(); - } - else - { - llSensor(llList2String(args,1),NULL_KEY,AGENT,96,PI); - } - } - - no_sensor() - { - command = ""; - } - - sensor(integer num) - { - integer i; - for (i=0; i< num; ++i) - { - if (command == "ban") - { - // Ban indefinetely - llAddToLandBanList(llDetectedKey(i),0.0); - } - if (command == "tempban") - { - // Ban for 1 hour. - llAddToLandBanList(llDetectedKey(i),1.0); - } - if (command == "unban") - { - llRemoveFromLandBanList(llDetectedKey(i)); - } - if (command == "pass") - { - // Add to land pass list for 1 hour - llAddToLandPassList(llDetectedKey(i),1.0); - } - if (command == "unpass") - { - llRemoveFromLandPassList(llDetectedKey(i)); - } - } - command = ""; - } -} +//Commands are: +///5 ban:full_avatar_name +///5 tempban:full_avatar_name +///5 unban:full_avatar_name +///5 pass:full_avatar_name +///5 unpass:full_avatar_name +///5 clearban +///5 clearpass + +string command; + +default +{ + state_entry() + { + llListen(5, "", llGetOwner(), ""); + } + + on_rez(integer param) + { + llResetScript(); + } + + listen(integer chan, string name, key id, string message) + { + if (command != "") + { + llOwnerSay("Sorry, still processing last command, try again in a second."); + } + + list args = llParseString2List(message,[":"],[]); + command = llToLower(llList2String(args,0)); + + if (command == "clearbans") + { + llResetLandBanList(); + } + if (command == "clearpass") + { + llResetLandPassList(); + } + else + { + llSensor(llList2String(args,1),NULL_KEY,AGENT,96,PI); + } + } + + no_sensor() + { + command = ""; + } + + sensor(integer num) + { + integer i; + for (i=0; i< num; ++i) + { + if (command == "ban") + { + // Ban indefinetely + llAddToLandBanList(llDetectedKey(i),0.0); + } + if (command == "tempban") + { + // Ban for 1 hour. + llAddToLandBanList(llDetectedKey(i),1.0); + } + if (command == "unban") + { + llRemoveFromLandBanList(llDetectedKey(i)); + } + if (command == "pass") + { + // Add to land pass list for 1 hour + llAddToLandPassList(llDetectedKey(i),1.0); + } + if (command == "unpass") + { + llRemoveFromLandPassList(llDetectedKey(i)); + } + } + command = ""; + } +} diff --git a/bin/assets/ScriptsAssetSet/llAdjustSoundVolume.lsl b/bin/assets/ScriptsAssetSet/llAdjustSoundVolume.lsl index 25e90c0..4c2d397 100644 --- a/bin/assets/ScriptsAssetSet/llAdjustSoundVolume.lsl +++ b/bin/assets/ScriptsAssetSet/llAdjustSoundVolume.lsl @@ -1,13 +1,13 @@ -default -{ - state_entry() - { - llListen(42, "", llGetOwner(), ""); - } - listen(integer chan, string name, key id, string msg) - { - float value = (float)msg; - llAdjustSoundVolume(value); - llOwnerSay("Volume set to: " + (string)value + " of 1.0"); - } -} +default +{ + state_entry() + { + llListen(42, "", llGetOwner(), ""); + } + listen(integer chan, string name, key id, string msg) + { + float value = (float)msg; + llAdjustSoundVolume(value); + llOwnerSay("Volume set to: " + (string)value + " of 1.0"); + } +} diff --git a/bin/assets/ScriptsAssetSet/llAllowInventoryDrop.lsl b/bin/assets/ScriptsAssetSet/llAllowInventoryDrop.lsl index 162396a..ca6087c 100644 --- a/bin/assets/ScriptsAssetSet/llAllowInventoryDrop.lsl +++ b/bin/assets/ScriptsAssetSet/llAllowInventoryDrop.lsl @@ -1,17 +1,17 @@ -integer allow; - -default -{ - touch_start(integer num) - { - llAllowInventoryDrop(allow = !allow); - llOwnerSay("llAllowInventoryDrop == "+llList2String(["FALSE","TRUE"],allow)); - } - changed(integer change) - { - if (change & CHANGED_ALLOWED_DROP) //note that it's & and not &&... it's bitwise! - { - llOwnerSay("The inventory has changed as a result of a user without mod permissions dropping an item on the prim and it being allowed by the script."); - } - } -} +integer allow; + +default +{ + touch_start(integer num) + { + llAllowInventoryDrop(allow = !allow); + llOwnerSay("llAllowInventoryDrop == "+llList2String(["FALSE","TRUE"],allow)); + } + changed(integer change) + { + if (change & CHANGED_ALLOWED_DROP) //note that it's & and not &&... it's bitwise! + { + llOwnerSay("The inventory has changed as a result of a user without mod permissions dropping an item on the prim and it being allowed by the script."); + } + } +} diff --git a/bin/assets/ScriptsAssetSet/llAngleBetween.lsl b/bin/assets/ScriptsAssetSet/llAngleBetween.lsl index 441be1b..21cd851 100644 --- a/bin/assets/ScriptsAssetSet/llAngleBetween.lsl +++ b/bin/assets/ScriptsAssetSet/llAngleBetween.lsl @@ -1,11 +1,11 @@ -default -{ - state_entry() - { - rotation aRot = ZERO_ROTATION; - rotation bRot = llGetRot(); - float aBetween = llAngleBetween( aRot, bRot ); - llOwnerSay((string)aBetween); - //llGetRot() being < 0, 0, 90 > this should report 1.570796 - } -} +default +{ + state_entry() + { + rotation aRot = ZERO_ROTATION; + rotation bRot = llGetRot(); + float aBetween = llAngleBetween( aRot, bRot ); + llOwnerSay((string)aBetween); + //llGetRot() being < 0, 0, 90 > this should report 1.570796 + } +} diff --git a/bin/assets/ScriptsAssetSet/llApplyImpulse.lsl b/bin/assets/ScriptsAssetSet/llApplyImpulse.lsl index 6b2461f..add7a08 100644 --- a/bin/assets/ScriptsAssetSet/llApplyImpulse.lsl +++ b/bin/assets/ScriptsAssetSet/llApplyImpulse.lsl @@ -1,16 +1,16 @@ -//Rez an object, and drop this script in it. -//This will launch it at the owner. -default -{ - state_entry() - { - list p = llGetObjectDetails(llGetOwner(), [OBJECT_POS]); - if(p != []) - { - llSetStatus(STATUS_PHYSICS, TRUE); - vector pos = llList2Vector(p, 0); - vector direction = llVecNorm(pos - llGetPos()); - llApplyImpulse(direction * 100, 0); - } - } -} +//Rez an object, and drop this script in it. +//This will launch it at the owner. +default +{ + state_entry() + { + list p = llGetObjectDetails(llGetOwner(), [OBJECT_POS]); + if(p != []) + { + llSetStatus(STATUS_PHYSICS, TRUE); + vector pos = llList2Vector(p, 0); + vector direction = llVecNorm(pos - llGetPos()); + llApplyImpulse(direction * 100, 0); + } + } +} diff --git a/bin/assets/ScriptsAssetSet/llAsin.lsl b/bin/assets/ScriptsAssetSet/llAsin.lsl index 02e9bd5..ad37ccd 100644 --- a/bin/assets/ScriptsAssetSet/llAsin.lsl +++ b/bin/assets/ScriptsAssetSet/llAsin.lsl @@ -1,9 +1,9 @@ -// Touch the object with this script in it to see the arcsine of random numbers! -default -{ - touch_start(integer num) - { - float r = llFrand(2) - 1.0; - llOwnerSay("The arcsine of " + (string)r + " is " + llAsin(r)); - } -} +// Touch the object with this script in it to see the arcsine of random numbers! +default +{ + touch_start(integer num) + { + float r = llFrand(2) - 1.0; + llOwnerSay("The arcsine of " + (string)r + " is " + llAsin(r)); + } +} diff --git a/bin/assets/ScriptsAssetSet/llAtan2.lsl b/bin/assets/ScriptsAssetSet/llAtan2.lsl index 95e0877..9fc1c63 100644 --- a/bin/assets/ScriptsAssetSet/llAtan2.lsl +++ b/bin/assets/ScriptsAssetSet/llAtan2.lsl @@ -1,11 +1,11 @@ -default -{ - state_entry() - { - float num1 = llFrand(100.0); - float num2 = llFrand(100.0); - llOwnerSay("y = " + (string)num1); - llOwnerSay("x = " + (string)num2); - llOwnerSay("The tangent of y divided by x is " + (string)llAtan2(num1, num2)); - } -} +default +{ + state_entry() + { + float num1 = llFrand(100.0); + float num2 = llFrand(100.0); + llOwnerSay("y = " + (string)num1); + llOwnerSay("x = " + (string)num2); + llOwnerSay("The tangent of y divided by x is " + (string)llAtan2(num1, num2)); + } +} diff --git a/bin/assets/ScriptsAssetSet/llAvatarOnSitTarget.lsl b/bin/assets/ScriptsAssetSet/llAvatarOnSitTarget.lsl index b4ab532..47e9588 100644 --- a/bin/assets/ScriptsAssetSet/llAvatarOnSitTarget.lsl +++ b/bin/assets/ScriptsAssetSet/llAvatarOnSitTarget.lsl @@ -1,20 +1,20 @@ -default -{ - state_entry() - { - // set sit target, otherwise this will not work - llSitTarget(<0.0, 0.0, 0.1>, ZERO_ROTATION); - } - changed(integer change) - { - if (change & CHANGED_LINK) - { - key av = llAvatarOnSitTarget(); - //evaluated as true if not NULL_KEY or invalid - if (av) - { - llSay(0, "Hello " + llKey2Name(av) + ", thank you for sitting down"); - } - } - } -} +default +{ + state_entry() + { + // set sit target, otherwise this will not work + llSitTarget(<0.0, 0.0, 0.1>, ZERO_ROTATION); + } + changed(integer change) + { + if (change & CHANGED_LINK) + { + key av = llAvatarOnSitTarget(); + //evaluated as true if not NULL_KEY or invalid + if (av) + { + llSay(0, "Hello " + llKey2Name(av) + ", thank you for sitting down"); + } + } + } +} diff --git a/bin/assets/ScriptsAssetSet/llBase64ToString.lsl b/bin/assets/ScriptsAssetSet/llBase64ToString.lsl index f8d4978..f0987cb 100644 --- a/bin/assets/ScriptsAssetSet/llBase64ToString.lsl +++ b/bin/assets/ScriptsAssetSet/llBase64ToString.lsl @@ -1,8 +1,8 @@ -default -{ - state_entry() - { - string test = llBase64ToString("U2VjcmV0Ok9wZW4="); - llOwnerSay(test); - } -} +default +{ + state_entry() + { + string test = llBase64ToString("U2VjcmV0Ok9wZW4="); + llOwnerSay(test); + } +} diff --git a/bin/assets/ScriptsAssetSet/llRemoveFromLandBanList.lsl b/bin/assets/ScriptsAssetSet/llRemoveFromLandBanList.lsl index 19ad704..f2df357 100644 --- a/bin/assets/ScriptsAssetSet/llRemoveFromLandBanList.lsl +++ b/bin/assets/ScriptsAssetSet/llRemoveFromLandBanList.lsl @@ -1,84 +1,84 @@ -//Commands are: -///5 ban:full_avatar_name -///5 tempban:full_avatar_name -///5 unban:full_avatar_name -///5 pass:full_avatar_name -///5 unpass:full_avatar_name -///5 clearban -///5 clearpass - -string command; - -default -{ - state_entry() - { - llListen(5, "", llGetOwner(), ""); - } - - on_rez(integer param) - { - llResetScript(); - } - - listen(integer chan, string name, key id, string message) - { - if (command != "") - { - llOwnerSay("Sorry, still processing last command, try again in a second."); - } - - list args = llParseString2List(message,[":"],[]); - command = llToLower(llList2String(args,0)); - - if (command == "clearbans") - { - llResetLandBanList(); - } - if (command == "clearpass") - { - llResetLandPassList(); - } - else - { - llSensor(llList2String(args,1),NULL_KEY,AGENT,96,PI); - } - } - - no_sensor() - { - command = ""; - } - - sensor(integer num) - { - integer i; - for (i=0; i< num; ++i) - { - if (command == "ban") - { - // Ban indefinetely - llAddToLandBanList(llDetectedKey(i),0.0); - } - if (command == "tempban") - { - // Ban for 1 hour. - llAddToLandBanList(llDetectedKey(i),1.0); - } - if (command == "unban") - { - llRemoveFromLandBanList(llDetectedKey(i)); - } - if (command == "pass") - { - // Add to land pass list for 1 hour - llAddToLandPassList(llDetectedKey(i),1.0); - } - if (command == "unpass") - { - llRemoveFromLandPassList(llDetectedKey(i)); - } - } - command = ""; - } -} +//Commands are: +///5 ban:full_avatar_name +///5 tempban:full_avatar_name +///5 unban:full_avatar_name +///5 pass:full_avatar_name +///5 unpass:full_avatar_name +///5 clearban +///5 clearpass + +string command; + +default +{ + state_entry() + { + llListen(5, "", llGetOwner(), ""); + } + + on_rez(integer param) + { + llResetScript(); + } + + listen(integer chan, string name, key id, string message) + { + if (command != "") + { + llOwnerSay("Sorry, still processing last command, try again in a second."); + } + + list args = llParseString2List(message,[":"],[]); + command = llToLower(llList2String(args,0)); + + if (command == "clearbans") + { + llResetLandBanList(); + } + if (command == "clearpass") + { + llResetLandPassList(); + } + else + { + llSensor(llList2String(args,1),NULL_KEY,AGENT,96,PI); + } + } + + no_sensor() + { + command = ""; + } + + sensor(integer num) + { + integer i; + for (i=0; i< num; ++i) + { + if (command == "ban") + { + // Ban indefinetely + llAddToLandBanList(llDetectedKey(i),0.0); + } + if (command == "tempban") + { + // Ban for 1 hour. + llAddToLandBanList(llDetectedKey(i),1.0); + } + if (command == "unban") + { + llRemoveFromLandBanList(llDetectedKey(i)); + } + if (command == "pass") + { + // Add to land pass list for 1 hour + llAddToLandPassList(llDetectedKey(i),1.0); + } + if (command == "unpass") + { + llRemoveFromLandPassList(llDetectedKey(i)); + } + } + command = ""; + } +} diff --git a/bin/assets/ScriptsAssetSet/llRemoveFromLandPassList.lsl b/bin/assets/ScriptsAssetSet/llRemoveFromLandPassList.lsl index 19ad704..f2df357 100644 --- a/bin/assets/ScriptsAssetSet/llRemoveFromLandPassList.lsl +++ b/bin/assets/ScriptsAssetSet/llRemoveFromLandPassList.lsl @@ -1,84 +1,84 @@ -//Commands are: -///5 ban:full_avatar_name -///5 tempban:full_avatar_name -///5 unban:full_avatar_name -///5 pass:full_avatar_name -///5 unpass:full_avatar_name -///5 clearban -///5 clearpass - -string command; - -default -{ - state_entry() - { - llListen(5, "", llGetOwner(), ""); - } - - on_rez(integer param) - { - llResetScript(); - } - - listen(integer chan, string name, key id, string message) - { - if (command != "") - { - llOwnerSay("Sorry, still processing last command, try again in a second."); - } - - list args = llParseString2List(message,[":"],[]); - command = llToLower(llList2String(args,0)); - - if (command == "clearbans") - { - llResetLandBanList(); - } - if (command == "clearpass") - { - llResetLandPassList(); - } - else - { - llSensor(llList2String(args,1),NULL_KEY,AGENT,96,PI); - } - } - - no_sensor() - { - command = ""; - } - - sensor(integer num) - { - integer i; - for (i=0; i< num; ++i) - { - if (command == "ban") - { - // Ban indefinetely - llAddToLandBanList(llDetectedKey(i),0.0); - } - if (command == "tempban") - { - // Ban for 1 hour. - llAddToLandBanList(llDetectedKey(i),1.0); - } - if (command == "unban") - { - llRemoveFromLandBanList(llDetectedKey(i)); - } - if (command == "pass") - { - // Add to land pass list for 1 hour - llAddToLandPassList(llDetectedKey(i),1.0); - } - if (command == "unpass") - { - llRemoveFromLandPassList(llDetectedKey(i)); - } - } - command = ""; - } -} +//Commands are: +///5 ban:full_avatar_name +///5 tempban:full_avatar_name +///5 unban:full_avatar_name +///5 pass:full_avatar_name +///5 unpass:full_avatar_name +///5 clearban +///5 clearpass + +string command; + +default +{ + state_entry() + { + llListen(5, "", llGetOwner(), ""); + } + + on_rez(integer param) + { + llResetScript(); + } + + listen(integer chan, string name, key id, string message) + { + if (command != "") + { + llOwnerSay("Sorry, still processing last command, try again in a second."); + } + + list args = llParseString2List(message,[":"],[]); + command = llToLower(llList2String(args,0)); + + if (command == "clearbans") + { + llResetLandBanList(); + } + if (command == "clearpass") + { + llResetLandPassList(); + } + else + { + llSensor(llList2String(args,1),NULL_KEY,AGENT,96,PI); + } + } + + no_sensor() + { + command = ""; + } + + sensor(integer num) + { + integer i; + for (i=0; i< num; ++i) + { + if (command == "ban") + { + // Ban indefinetely + llAddToLandBanList(llDetectedKey(i),0.0); + } + if (command == "tempban") + { + // Ban for 1 hour. + llAddToLandBanList(llDetectedKey(i),1.0); + } + if (command == "unban") + { + llRemoveFromLandBanList(llDetectedKey(i)); + } + if (command == "pass") + { + // Add to land pass list for 1 hour + llAddToLandPassList(llDetectedKey(i),1.0); + } + if (command == "unpass") + { + llRemoveFromLandPassList(llDetectedKey(i)); + } + } + command = ""; + } +} diff --git a/bin/assets/ScriptsAssetSet/llResetLandBanList.lsl b/bin/assets/ScriptsAssetSet/llResetLandBanList.lsl index 19ad704..f2df357 100644 --- a/bin/assets/ScriptsAssetSet/llResetLandBanList.lsl +++ b/bin/assets/ScriptsAssetSet/llResetLandBanList.lsl @@ -1,84 +1,84 @@ -//Commands are: -///5 ban:full_avatar_name -///5 tempban:full_avatar_name -///5 unban:full_avatar_name -///5 pass:full_avatar_name -///5 unpass:full_avatar_name -///5 clearban -///5 clearpass - -string command; - -default -{ - state_entry() - { - llListen(5, "", llGetOwner(), ""); - } - - on_rez(integer param) - { - llResetScript(); - } - - listen(integer chan, string name, key id, string message) - { - if (command != "") - { - llOwnerSay("Sorry, still processing last command, try again in a second."); - } - - list args = llParseString2List(message,[":"],[]); - command = llToLower(llList2String(args,0)); - - if (command == "clearbans") - { - llResetLandBanList(); - } - if (command == "clearpass") - { - llResetLandPassList(); - } - else - { - llSensor(llList2String(args,1),NULL_KEY,AGENT,96,PI); - } - } - - no_sensor() - { - command = ""; - } - - sensor(integer num) - { - integer i; - for (i=0; i< num; ++i) - { - if (command == "ban") - { - // Ban indefinetely - llAddToLandBanList(llDetectedKey(i),0.0); - } - if (command == "tempban") - { - // Ban for 1 hour. - llAddToLandBanList(llDetectedKey(i),1.0); - } - if (command == "unban") - { - llRemoveFromLandBanList(llDetectedKey(i)); - } - if (command == "pass") - { - // Add to land pass list for 1 hour - llAddToLandPassList(llDetectedKey(i),1.0); - } - if (command == "unpass") - { - llRemoveFromLandPassList(llDetectedKey(i)); - } - } - command = ""; - } -} +//Commands are: +///5 ban:full_avatar_name +///5 tempban:full_avatar_name +///5 unban:full_avatar_name +///5 pass:full_avatar_name +///5 unpass:full_avatar_name +///5 clearban +///5 clearpass + +string command; + +default +{ + state_entry() + { + llListen(5, "", llGetOwner(), ""); + } + + on_rez(integer param) + { + llResetScript(); + } + + listen(integer chan, string name, key id, string message) + { + if (command != "") + { + llOwnerSay("Sorry, still processing last command, try again in a second."); + } + + list args = llParseString2List(message,[":"],[]); + command = llToLower(llList2String(args,0)); + + if (command == "clearbans") + { + llResetLandBanList(); + } + if (command == "clearpass") + { + llResetLandPassList(); + } + else + { + llSensor(llList2String(args,1),NULL_KEY,AGENT,96,PI); + } + } + + no_sensor() + { + command = ""; + } + + sensor(integer num) + { + integer i; + for (i=0; i< num; ++i) + { + if (command == "ban") + { + // Ban indefinetely + llAddToLandBanList(llDetectedKey(i),0.0); + } + if (command == "tempban") + { + // Ban for 1 hour. + llAddToLandBanList(llDetectedKey(i),1.0); + } + if (command == "unban") + { + llRemoveFromLandBanList(llDetectedKey(i)); + } + if (command == "pass") + { + // Add to land pass list for 1 hour + llAddToLandPassList(llDetectedKey(i),1.0); + } + if (command == "unpass") + { + llRemoveFromLandPassList(llDetectedKey(i)); + } + } + command = ""; + } +} diff --git a/bin/assets/ScriptsAssetSet/llResetLandPassList.lsl b/bin/assets/ScriptsAssetSet/llResetLandPassList.lsl index 19ad704..f2df357 100644 --- a/bin/assets/ScriptsAssetSet/llResetLandPassList.lsl +++ b/bin/assets/ScriptsAssetSet/llResetLandPassList.lsl @@ -1,84 +1,84 @@ -//Commands are: -///5 ban:full_avatar_name -///5 tempban:full_avatar_name -///5 unban:full_avatar_name -///5 pass:full_avatar_name -///5 unpass:full_avatar_name -///5 clearban -///5 clearpass - -string command; - -default -{ - state_entry() - { - llListen(5, "", llGetOwner(), ""); - } - - on_rez(integer param) - { - llResetScript(); - } - - listen(integer chan, string name, key id, string message) - { - if (command != "") - { - llOwnerSay("Sorry, still processing last command, try again in a second."); - } - - list args = llParseString2List(message,[":"],[]); - command = llToLower(llList2String(args,0)); - - if (command == "clearbans") - { - llResetLandBanList(); - } - if (command == "clearpass") - { - llResetLandPassList(); - } - else - { - llSensor(llList2String(args,1),NULL_KEY,AGENT,96,PI); - } - } - - no_sensor() - { - command = ""; - } - - sensor(integer num) - { - integer i; - for (i=0; i< num; ++i) - { - if (command == "ban") - { - // Ban indefinetely - llAddToLandBanList(llDetectedKey(i),0.0); - } - if (command == "tempban") - { - // Ban for 1 hour. - llAddToLandBanList(llDetectedKey(i),1.0); - } - if (command == "unban") - { - llRemoveFromLandBanList(llDetectedKey(i)); - } - if (command == "pass") - { - // Add to land pass list for 1 hour - llAddToLandPassList(llDetectedKey(i),1.0); - } - if (command == "unpass") - { - llRemoveFromLandPassList(llDetectedKey(i)); - } - } - command = ""; - } -} +//Commands are: +///5 ban:full_avatar_name +///5 tempban:full_avatar_name +///5 unban:full_avatar_name +///5 pass:full_avatar_name +///5 unpass:full_avatar_name +///5 clearban +///5 clearpass + +string command; + +default +{ + state_entry() + { + llListen(5, "", llGetOwner(), ""); + } + + on_rez(integer param) + { + llResetScript(); + } + + listen(integer chan, string name, key id, string message) + { + if (command != "") + { + llOwnerSay("Sorry, still processing last command, try again in a second."); + } + + list args = llParseString2List(message,[":"],[]); + command = llToLower(llList2String(args,0)); + + if (command == "clearbans") + { + llResetLandBanList(); + } + if (command == "clearpass") + { + llResetLandPassList(); + } + else + { + llSensor(llList2String(args,1),NULL_KEY,AGENT,96,PI); + } + } + + no_sensor() + { + command = ""; + } + + sensor(integer num) + { + integer i; + for (i=0; i< num; ++i) + { + if (command == "ban") + { + // Ban indefinetely + llAddToLandBanList(llDetectedKey(i),0.0); + } + if (command == "tempban") + { + // Ban for 1 hour. + llAddToLandBanList(llDetectedKey(i),1.0); + } + if (command == "unban") + { + llRemoveFromLandBanList(llDetectedKey(i)); + } + if (command == "pass") + { + // Add to land pass list for 1 hour + llAddToLandPassList(llDetectedKey(i),1.0); + } + if (command == "unpass") + { + llRemoveFromLandPassList(llDetectedKey(i)); + } + } + command = ""; + } +} diff --git a/bin/assets/ScriptsAssetSet/llSay.lsl b/bin/assets/ScriptsAssetSet/llSay.lsl index c64a355..dea6fc0 100644 --- a/bin/assets/ScriptsAssetSet/llSay.lsl +++ b/bin/assets/ScriptsAssetSet/llSay.lsl @@ -1,7 +1,7 @@ -default -{ - state_entry() - { - llSay(0,"This is an incredibly useless program." ); - } -} +default +{ + state_entry() + { + llSay(0,"This is an incredibly useless program." ); + } +} diff --git a/bin/assets/ScriptsAssetSet/llSetParcelMusicURL.lsl b/bin/assets/ScriptsAssetSet/llSetParcelMusicURL.lsl index 9e1355e..ec8bf4d 100644 --- a/bin/assets/ScriptsAssetSet/llSetParcelMusicURL.lsl +++ b/bin/assets/ScriptsAssetSet/llSetParcelMusicURL.lsl @@ -1,7 +1,7 @@ -default -{ - state_entry() - { - llSetParcelMusicURL("http://www.archive.org/download/Torley_Wong_-_The_Final_Selection/Torley_Wong-Lovers__Dance.mp3"); - } -} +default +{ + state_entry() + { + llSetParcelMusicURL("http://www.archive.org/download/Torley_Wong_-_The_Final_Selection/Torley_Wong-Lovers__Dance.mp3"); + } +} diff --git a/bin/assets/ScriptsAssetSet/llSetRot.lsl b/bin/assets/ScriptsAssetSet/llSetRot.lsl index ce3009c..ebdad2f 100644 --- a/bin/assets/ScriptsAssetSet/llSetRot.lsl +++ b/bin/assets/ScriptsAssetSet/llSetRot.lsl @@ -1,13 +1,13 @@ -default -{ - state_entry() - { - llOwnerSay("Touch me"); - } - touch_start(integer total_number) - { - rotation Y_10 = llEuler2Rot( < 0, 0, 30 * DEG_TO_RAD > ); - rotation newRotation = llGetRot() * Y_10; - llSetRot( newRotation ); - } -} +default +{ + state_entry() + { + llOwnerSay("Touch me"); + } + touch_start(integer total_number) + { + rotation Y_10 = llEuler2Rot( < 0, 0, 30 * DEG_TO_RAD > ); + rotation newRotation = llGetRot() * Y_10; + llSetRot( newRotation ); + } +} -- cgit v1.1