Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --DupeBuster by XMedders (Fisher)
- --fishermedders.com - written for
- --the craftersland.net servers
- term.write( "What is the Player's Username? " )
- name = read( )
- print( "What side is the ME System Controller on, or what is the network peripheral name? " )
- term.write( "Appliccable: top, bottom, left, right, back, front" )
- side = read()
- --Start the loop
- --may the 75th annual dupebust commence >:]
- me = peripheral.wrap( side )
- time = http.get( "http://www.timeapi.org/utc/now" ).readAll( )
- items = fs.open( "items", "w" )
- items.writeLine( "Busting Duper "..name.." at utc timestamp "..time.."!")
- items.writeLine( " " )
- me = peripheral.wrap( side )
- for k,v in ipairs( me.getAvailableItems( ) ) do
- items.writeLine( textutils.serialize( v ) )
- items.writeLine( " " )
- end
- items.writeLine( "fin." )
- items.close( )
- print( " " )
- print( "DUPER BUSTED, AND JUST IN TIME TO SAVE CHRISTMAS" )
- print( "saved to file 'items'." )
- print( " " )
- input = ""
- repeat
- term.write( "Upload this to pastebin? [y/n]" )
- input = read()
- input = string.lower(input)
- until input == "yes" or input == "y" or input == "no" or input == "n"
- if input == "yes" or input == "y" then
- shell.run( "pastebin put items" )
- else
- print( "Thanks for using CL's #1 dupebusting suite." )
- end
Add Comment
Please, Sign In to add comment