Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --# Made By HDR - @MartinRefseth #--
- --# Version 0.4 Remote #--
- --# Functions
- function play()
- peripheral.find("drive", disk.stopAudio)
- peripheral.find( "drive", function( name )
- if disk.hasAudio( name ) and disk.getAudioTitle( name ) == title then
- print("Now Playing"," ",( title) )
- disk.playAudio( name )
- end
- end )
- end
- function Thir()
- title = "C418 - 13"
- play()
- end
- function Cat()
- title = "C418 - cat"
- play()
- end
- function Blocks()
- title = "C418 - blocks"
- play()
- end
- function Chirp()
- title = "C418 - chirp"
- play()
- end
- function Far()
- title = "C418 - far"
- play()
- end
- function Mall()
- title = "C418 - mall"
- play()
- end
- function Mellohi()
- title = "C418 - mellohi"
- play()
- end
- function Stal()
- title = "C418 - stal"
- play()
- end
- function Strad()
- title = "C418 - strad"
- play()
- end
- function Ward()
- title = "C418 - ward"
- play()
- end
- function Elev()
- title = "C418 - 11"
- play()
- end
- function Wait()
- title = "C418 - wait"
- play()
- end
- function Question()
- title = "corruption"
- play()
- end
- function GaiaOne()
- title = "botania:gaia1"
- play()
- end
- function GaiaTwo()
- title = "botania:gaia2"
- play()
- end
- function Roop()
- title = "portalgun:records.radioloop"
- play()
- end
- function Slive()
- title = "portalgun:records.stillalive"
- play()
- end
- function WYG()
- title = "portalgun:records.wantyougone"
- play()
- end
- function WDR()
- title = "wanderer"
- play()
- end
- --#Stops All Music
- function Stop()
- print("Stopping Disk")
- peripheral.find("drive", disk.stopAudio)
- end
- function Reboot()
- print("Rebooting")
- peripheral.find("drive", disk.stopAudio)
- mon.clear()
- os.reboot()
- end
- -- A list of all possible songs
- local Songs = {
- Thir, Cat, Blocks, Chirp, Far, Mall, Mellohi, Stal, Strad, Ward,
- Elev, Wait, Question, GaiaOne, GaiaTwo, Roop, Slive, WYG, Wander
- }
- function Random()
- peripheral.find("drive", disk.stopAudio)
- local maxSongs = #Songs -- the "#" gets the length of the list
- local randomNumber = math.random( maxSongs )
- Songs[randomNumber]() -- call the choosen song directly out of the list
- end
- term.setCursorPos(1,1)
- print("Music System Server Online")
- term.setCursorPos(1,2)
- print("Enter"," ","#"..os.getComputerID()," ","Into The Remote.")
- rednet.open("top")
- local evt, id, msg = os.pullEvent("rednet_message")
- G = getfenv()
- if G[msg] then
- G[msg]()
- end
- os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement