Push All Scripts
This commit is contained in:
3
BoomBox/BoomBox.sol
Normal file
3
BoomBox/BoomBox.sol
Normal file
@@ -0,0 +1,3 @@
|
||||
<Solution name="BoomBox">
|
||||
<Project name="BoomBox" path="BoomBox\BoomBox.prj" active="true"/>
|
||||
</Solution>
|
||||
6
BoomBox/BoomBox/BoomBox.prj
Normal file
6
BoomBox/BoomBox/BoomBox.prj
Normal file
@@ -0,0 +1,6 @@
|
||||
<Project name="BoomBox" guid="D6EC66DA-6C00-1014-B904-200204C60A89">
|
||||
<Object name="Object" guid="D6EC67B0-6C00-1014-B904-200204C60A89">
|
||||
<Script name="BoomBox_1.lsl" guid="D6EC8576-6C00-1014-B904-200204C60A89">
|
||||
</Script>
|
||||
</Object>
|
||||
</Project>
|
||||
100
BoomBox/BoomBox/Object/BoomBox_1.lsl
Normal file
100
BoomBox/BoomBox/Object/BoomBox_1.lsl
Normal file
@@ -0,0 +1,100 @@
|
||||
// :CATEGORY:Sound
|
||||
// :NAME:BoomBox
|
||||
// :AUTHOR:Mitz
|
||||
// :CREATED:2010-01-10 05:20:56.000
|
||||
// :EDITED:2013-09-18 15:38:49
|
||||
// :ID:111
|
||||
// :NUM:152
|
||||
// :REV:1.0
|
||||
// :WORLD:Second Life
|
||||
// :DESCRIPTION:
|
||||
// boombox.lsl
|
||||
// :CODE:
|
||||
//BoomBox by Mitz
|
||||
|
||||
integer counter;
|
||||
|
||||
integer soundCount;
|
||||
|
||||
list songs;
|
||||
|
||||
list NEXT;
|
||||
|
||||
|
||||
|
||||
GetSongNames()
|
||||
|
||||
{
|
||||
|
||||
integer i;
|
||||
|
||||
for(i=0;i < llGetInventoryNumber(INVENTORY_SOUND);i++)
|
||||
|
||||
{
|
||||
|
||||
songs += llGetInventoryName(INVENTORY_SOUND, i);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
default
|
||||
|
||||
|
||||
|
||||
{
|
||||
|
||||
|
||||
|
||||
changed(integer what)
|
||||
|
||||
{
|
||||
|
||||
if (what & CHANGED_INVENTORY)
|
||||
|
||||
llResetScript();
|
||||
|
||||
}
|
||||
|
||||
on_rez(integer rez)
|
||||
|
||||
{
|
||||
|
||||
llResetScript();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
state_entry()
|
||||
|
||||
{
|
||||
|
||||
counter =0;
|
||||
|
||||
llStopSound();
|
||||
|
||||
GetSongNames();
|
||||
|
||||
//PreLoadSongs();
|
||||
|
||||
soundCount = llGetInventoryNumber(INVENTORY_SOUND);
|
||||
|
||||
llListen(-1, "", llGetOwner(), "");
|
||||
|
||||
NEXT = llList2List(songs, 0, 8);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
touch_start(integer fingers)
|
||||
|
||||
{
|
||||
|
||||
if(llDetectedKey(0) == llGetOwner() )
|
||||
|
||||
Reference in New Issue
Block a user