Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Written by Swimsam1 for use with
- SCorp Clan Bases across any and all
- Minecraft servers!
- Saber Corporation Clan Base Menu v1.0.1
- V1.0.1
- - Minor bug fixes, typo corrections
- - Changed from left click to right click on menu buttons
- (For admins in creative)
- - Added monitor functionality
- Big thanks to GravityCube for helping make this project
- run!
- --]]
- local x, y = 3, 5
- local x2, y2 = 3, 7
- local x3, y3 = 3, 9
- local x4, y4 = 18, 2
- local option1 = ' Home '
- local option2 = ' Rules '
- local option3 = ' Leaders '
- local headline = ' Saber Corporation '
- local monitor = peripheral.wrap('right')
- term.redirect(peripheral.wrap('top'))
- shell.run('pastebin','get','m3QDDrZi','monitor')
- local function drawMenu()
- shell.run('pastebin','get','MTLwxGvw','backwall')
- image = paintutils.loadImage('backwall')
- paintutils.drawImage(image, 1, 1)
- -- Button 1 image and writing
- term.setCursorPos(x,y)
- term.setBackgroundColor(colors.blue)
- term.setTextColor(1)
- write(option1)
- -- Button 2 image and writing
- term.setCursorPos(x2,y2)
- write(option2)
- -- Button 3 image and writing
- term.setCursorPos(x3,y3)
- write(option3)
- -- Headline image and writing
- term.setCursorPos(x4,y4)
- write(headline)
- term.setCursorPos(15,5)
- term.setBackgroundColor(colors.black)
- term.setTextColor(1)
- print('Welcome to SCorp!')
- term.setCursorPos(15,6)
- print('Contact a leader with any')
- term.setCursorPos(15,7)
- print('questions you may have!')
- end
- drawMenu()
- while true do
- local event, button, cx, cy = os.pullEvent()
- if event == 'monitor_touch' then
- -- Rules Page
- if cx >= x2 and cx < option2:len() and cy == y2 then
- -- Headline rewrite
- local headline = ' Rules '
- local x4, y4 = 23, 2
- term.clear()
- term.setCursorPos(1,1)
- image = paintutils.loadImage('backwall')
- paintutils.drawImage(image, 1, 1)
- term.setCursorPos(x4, y4)
- term.setBackgroundColor(colors.blue)
- write(headline)
- term.setCursorPos(x,y)
- write(option1)
- term.setCursorPos(x2,y2)
- write(option2)
- term.setCursorPos(x3,y3)
- write(option3)
- term.setCursorPos(15,5)
- term.setBackgroundColor(colors.black)
- term.setTextColor(1)
- write([[- No stealing or griefing in claims]])
- term.setCursorPos(15,6)
- write([[- Respect all clan leaders]])
- term.setCursorPos(15,7)
- write([[- Respect all server admins]])
- term.setCursorPos(15,8)
- write([[- Respect all clan members]])
- term.setCursorPos(15,9)
- write([[- No Dying!]])
- term.setCursorPos(15,10)
- write([[- No duping/other glitching]])
- term.setCursorPos(15,11)
- write([[- Follow all server rules]])
- -- Leader Page
- elseif cx >= x3 and cx < option3:len() and cy == y3 then
- -- Headline rewrite
- local headline = ' Leaders '
- local x4, y4 = 22, 2
- term.clear()
- term.setCursorPos(1,1)
- image = paintutils.loadImage('backwall')
- paintutils.drawImage(image, 1, 1)
- term.setCursorPos(x4,y4)
- term.setBackgroundColor(colors.blue)
- write(headline)
- term.setCursorPos(x,y)
- write(option1)
- term.setCursorPos(x2,y2)
- write(option2)
- term.setCursorPos(x3,y3)
- write(option3)
- term.setCursorPos(15,5)
- term.setBackgroundColor(colors.black)
- term.setTextColor(1)
- write([[- Swimsam1 (Founder)]])
- term.setCursorPos(15,6)
- write([[- BigMan2008 (CoFounder)]])
- term.setCursorPos(15,7)
- write([[- Nova (Assasin)]])
- term.setCursorPos(15,8)
- write([[- MMD (CoFounder)]])
- term.setCursorPos(15,9)
- write([[- MacyMacerator (General)]])
- -- Home Page
- elseif cx >= x and cx < option1:len() and cy == y then
- -- Headline rewrite
- local headline = ' Rabbit Hole Inc '
- local x4, y4 = 18, 2
- term.clear()
- term.setCursorPos(x4,y4)
- write(headline)
- drawMenu()
- end
- end
- end
Add Comment
Please, Sign In to add comment