Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- term.clear()
- term.setCursorPos(2,2)
- term.setTextColor(colors.blue)
- term.write("Benvenuto allo shop")
- term.setCursorPos(2,4)
- term.setTextColor(colors.orange)
- term.write("[ assalto ]")
- term.setCursorPos(2,6)
- term.write("[ pompa ]")
- term.setCursorPos(2,8)
- term.write("[ supporto ]")
- term.setCursorPos(2,10)
- term.write("[ cecchini ]")
- term.setCursorPos(2,12)
- term.write("[ pistole ]")
- term.setCursorPos(2,14)
- term.write("[ altro ]")
- term.setCursorPos(2,16)
- term.write("[ mirini ]")
- local event, button, x, y = os.pullEvent( "mouse_click" )
- if x >= 2 and x <= 13 and y == 4 then
- while true do
- term.clear()
- term.setTextColor(colors.blue)
- term.setCursorPos(2,2)
- term.write("Armi di assalto")
- term.setTextColor(colors.orange)
- term.setCursorPos(2,4)
- term.write("[ HK G3 --- 5l ]")
- term.setCursorPos(2,6)
- term.write("[ HK416A5 --- 5l ]")
- term.setCursorPos(2,8)
- term.write("[ TAR-21 --- 5l ]")
- term.setCursorPos(2,10)
- term.write("[ AUG --- 5l ]")
- term.setCursorPos(2,12)
- term.write("[ R.ACR --- 5l ]")
- term.setCursorPos(2,14)
- term.write("[ K.Vector --- 4l ]")
- term.setCursorPos(2,16)
- term.write("[ AN-94 --- 5l ]")
- term.setCursorPos(26,4)
- term.write("[ M16A4 --- 5l ]")
- term.setCursorPos(26,6)
- term.write("[ Famas-G2 --- 5l ]")
- term.setCursorPos(26,8)
- term.write("[ AK-74 --- 5l ]")
- term.setCursorPos(26,10)
- term.write("[ HK-MP5 --- 4l ]")
- term.setCursorPos(26,12)
- term.write("[ FN-P90 --- 5l ]")
- term.setCursorPos(26,14)
- term.write("[ HK-M27IAR --- 5l ]")
- term.setCursorPos(26,16)
- term.write("[ AKMN --- 5l ]")
- term.setTextColor(colors.red)
- term.setCursorPos(22,4)
- term.write("[1]")
- term.setCursorPos(22,6)
- term.write("[1]")
- term.setCursorPos(22,8)
- term.write("[1]")
- term.setCursorPos(22,10)
- term.write("[1]")
- term.setCursorPos(22,12)
- term.write("[1]")
- term.setCursorPos(22,14)
- term.write("[1]")
- term.setCursorPos(22,16)
- term.write("[1]")
- term.setCursorPos(46,4)
- term.write("[1]")
- term.setCursorPos(46,6)
- term.write("[1]")
- term.setCursorPos(46,8)
- term.write("[1]")
- term.setCursorPos(46,10)
- term.write("[1]")
- term.setCursorPos(46,12)
- term.write("[1]")
- term.setCursorPos(46,14)
- term.write("[1]")
- term.setCursorPos(46,16)
- term.write("[1]")
- term.setTextColor(colors.orange)
- term.setCursorPos(42,18)
- term.write("[ back ]")
- local event,button,x,y = os.pullEvent("mouse_click")
- if x >= 42 and x <= 50 and y == 18 then
- break
- end
- repeat
- local event,button,x,y = os.pullEvent("mouse_click")
- if x >= 2 and x <= 21 and y == 4 then
- commands.exec("give @p[lm=5] mw:g3")
- commands.exec("xp -5l @p[lm=5]")
- elseif x >= 2 and x <= 21 and y == 6 then
- commands.exec("give @p[lm=5] mw:hk416a5")
- commands.exec("xp -5l @p[lm=5]")
- elseif x >= 2 and x <= 21 and y == 8 then
- commands.exec("give @p[lm=5] mw:tar21")
- commands.exec("xp -5l @p[lm=5]")
- elseif x >= 2 and x <= 21 and y == 10 then
- commands.exec("give @p[lm=5] mw:aug")
- commands.exec("xp -5l @p[lm=5]")
- elseif x >= 2 and x <= 21 and y == 12 then
- commands.exec("give @p[lm=5] mw:acr")
- commands.exec("xp -5l @p[lm=5]")
- elseif x >= 2 and x <= 21 and y == 14 then
- commands.exec("give @p[lm=4] mw:krissvector")
- commands.exec("xp -4l @p[lm=4]")
- elseif x >= 2 and x <= 21 and y == 16 then
- commands.exec("give @p[lm=5] mw:an94")
- commands.exec("xp -5l @p[lm=5]")
- elseif x >= 22 and x <= 23 and y == 4 then
- commands.exec("give @p[lm=1] mw:g3mag 1")
- commands.exec("xp -1l @p[lm=1]")
- elseif x >= 22 and x <= 23 and y == 6 then
- commands.exec("give @p[lm=1] mw:natomag2 1")
- commands.exec("xp -1l @p[lm=1]")
- elseif x >= 22 and x <= 23 and y == 8 then
- commands.exec("give @p[lm=1] mw:natomag1 1")
- commands.exec("xp -1l @p[lm=1]")
- elseif x >= 22 and x <= 23 and y == 10 then
- commands.exec("give @p[lm=1] mw:natomag1 1")
- commands.exec("xp -1l @p[lm=1]")
- elseif x >= 22 and x <= 23 and y == 12 then
- commands.exec("give @p[lm=1] mw:natomag2 1")
- commands.exec("xp -1l @p[lm=1]")
- elseif x >= 22 and x <= 23 and y == 14 then
- commands.exec("give @p[lm=1] mw:vectormag 1")
- commands.exec("xp -1l @p[lm=1]")
- elseif x >= 22 and x <= 23 and y == 16 then
- commands.exec("give @p[lm=1] mw:ak74mmag")
- commands.exec("xp -1l @p[lm=1]")
- elseif x >= 26 and x <= 45 and y == 4 then
- commands.exec("give @p[lm=5] mw:m16a4")
- commands.exec("xp -5l @p[lm=5]")
- elseif x >= 26 and x <= 45 and y == 6 then
- commands.exec("give @p[lm=5] mw:famasg2")
- commands.exec("xp -5l @p[lm=5]")
- elseif x >= 26 and x <= 45 and y == 8 then
- commands.exec("give @p[lm=5] mw:ak-74")
- commands.exec("xp -5l @p[lm=5]")
- elseif x >= 26 and x <= 45 and y == 10 then
- commands.exec("give @p[lm=4] mw:hkmp5sd")
- commands.exec("xp -4l @p[lm=4]")
- elseif x >= 26 and x <= 45 and y == 12 then
- commands.exec("give @p[lm=5] mw:fnp90")
- commands.exec("xp -5l @p[lm=5]")
- elseif x >= 26 and x <= 45 and y == 14 then
- commands.exec("give @p[lm=5] mw:hkm27iar")
- commands.exec("xp -5l @p[lm=5]")
- elseif x >= 26 and x <= 45 and y == 16 then
- commands.exec("give @p[lm=5] mw:hkmn")
- commands.exec("xp -5l @p[lm=5]")
- elseif x >= 46 and x <= 47 and y == 4 then
- commands.exec("give @p[lm=1] mw:natomag2 1")
- commands.exec("xp -1l @p[lm=1]")
- elseif x >= 46 and x <= 47 and y == 6 then
- commands.exec("give @p[lm=1] mw:natomag1 1")
- commands.exec("xp -1l @p[lm=1]")
- elseif x >= 46 and x <= 47 and y == 8 then
- commands.exec("give @p[lm=1] mw:aks74umag 1")
- commands.exec("xp -1l @p[lm=1]")
- elseif x >= 46 and x <= 47 and y == 10 then
- commands.exec("give @p[lm=1] mw:mp5kmag 1")
- commands.exec("xp -1l @p[lm=1]")
- elseif x >= 46 and x <= 47 and y == 12 then
- commands.exec("give @p[lm=1] mw:fnp90mag 1")
- commands.exec("xp -1l @p[lm=1]")
- elseif x >= 46 and x <= 47 and y == 14 then
- commands.exec("give @p[lm=1] mw:natomag2 1")
- commands.exec("xp -1l @p[lm=1]")
- elseif x >= 46 and x <= 47 and y == 16 then
- commands.exec("give @p[lm=1] mw:pmag762x39 1")
- commands.exec("xp -1l @p[lm=1]")
- end
- until x >= 42 and x <= 50 and y == 18
- end
- elseif x >= 2 and x <= 13 and y == 6 then
- while true do
- term.clear()
- term.setTextColor(colors.blue)
- term.setCursorPos(2,2)
- term.write("Fucili a pompa")
- term.setTextColor(colors.orange)
- term.setCursorPos(2,4)
- term.write("[ QBS-09 --- 7l ]")
- term.setCursorPos(2,6)
- term.write("[ KSG-12 --- 7l ]")
- term.setCursorPos(2,8)
- term.write("[ M1014 --- 7l ]")
- term.setCursorPos(2,10)
- term.setTextColor(colors.red)
- term.setCursorPos(22,4)
- term.write("[5]")
- term.setTextColor(colors.orange)
- term.setCursorPos(42,18)
- term.write("[ back ]")
- local event,button,x,y = os.pullEvent("mouse_click")
- if x >= 42 and x <= 50 and y == 18 then
- break
- end
- repeat
- local event,button,x,y = os.pullEvent("mouse_click")
- if x >= 2 and x <= 21 and y == 4 then
- commands.exec("give @p[lm=7] mw:qbs09")
- commands.exec("xp -7l @p[lm=7]")
- elseif x >= 2 and x <= 21 and y == 6 then
- commands.exec("give @p[lm=5] mw:ksg12")
- commands.exec("xp -7l @p[lm=7]")
- elseif x >= 2 and x <= 21 and y == 8 then
- commands.exec("give @p[lm=7] mw:m1014")
- commands.exec("xp -7l @p[lm=7]")
- elseif x >= 22 and x <= 23 and y == 4 then
- commands.exec("give @p[lm=5] mw:shotgunshell 7")
- commands.exec("xp -5l @p[lm=5]")
- end
- until x >= 42 and x <= 50 and y == 18
- end
- elseif x >= 2 and x <= 13 and y == 8 then
- while true do
- term.clear()
- term.setTextColor(colors.blue)
- term.setCursorPos(2,2)
- term.write("Fucili di supporto")
- term.setTextColor(colors.orange)
- term.setCursorPos(2,4)
- term.write("[ M240 SAW--- 8l ]")
- term.setCursorPos(2,6)
- term.write("[ M249 SAW--- 8l ]")
- term.setCursorPos(2,8)
- term.write("[ FNminimi--- 8l ]")
- term.setCursorPos(2,10)
- term.setTextColor(colors.red)
- term.setCursorPos(22,4)
- term.write("[3]")
- term.setCursorPos(22,6)
- term.write("[3]")
- term.setCursorPos(22,8)
- term.write("[3]")
- term.setTextColor(colors.orange)
- term.setCursorPos(42,18)
- term.write("[ back ]")
- local event,button,x,y = os.pullEvent("mouse_click")
- if x >= 42 and x <= 50 and y == 18 then
- break
- end
- repeat
- local event,button,x,y = os.pullEvent("mouse_click")
- if x >= 2 and x <= 21 and y == 4 then
- commands.exec("give @p[lm=8] mw:m240")
- commands.exec("xp -8l @p[lm=8]")
- elseif x >= 2 and x <= 21 and y == 6 then
- commands.exec("give @p[lm=8] mw:m249")
- commands.exec("xp -8l @p[lm=8]")
- elseif x >= 2 and x <= 21 and y == 8 then
- commands.exec("give @p[lm=8] mw:minimi")
- commands.exec("xp -8l @p[lm=8]")
- elseif x >= 22 and x <= 23 and y == 4 then
- commands.exec("give @p[lm=3] mw:m240mag 1")
- commands.exec("xp -3l @p[lm=3]")
- elseif x >= 22 and x <= 23 and y == 6 then
- commands.exec("give @p[lm=3] mw:m249mag 1")
- commands.exec("xp -3l @p[lm=3]")
- elseif x >= 22 and x <= 23 and y == 8 then
- commands.exec("give @p[lm=3] mw:m249mag 1")
- commands.exec("xp -3l @p[lm=3]")
- end
- until x >= 42 and x <= 50 and y == 18
- end
- elseif x >= 2 and x <= 13 and y == 10 then
- while true do
- term.clear()
- term.setTextColor(colors.blue)
- term.setCursorPos(2,2)
- term.write("Fucili da cecchino")
- term.setTextColor(colors.orange)
- term.setCursorPos(2,4)
- term.write("[ VSS V. --- 10l ]")
- term.setCursorPos(2,6)
- term.write("[ M110 --- 10l ]")
- term.setCursorPos(2,8)
- term.write("[ SV98 --- 10l ]")
- term.setCursorPos(2,10)
- term.write("[ HECATEI--- 15l ]")
- term.setCursorPos(2,12)
- term.write("[ BARRET --- 13l ]")
- term.setCursorPos(2,10)
- term.setTextColor(colors.red)
- term.setCursorPos(22,4)
- term.write("[2]")
- term.setCursorPos(22,6)
- term.write("[2]")
- term.setCursorPos(22,8)
- term.write("[2]")
- term.setCursorPos(22,10)
- term.write("[2]")
- term.setCursorPos(22,12)
- term.write("[2]")
- term.setTextColor(colors.orange)
- term.setCursorPos(42,18)
- term.write("[ back ]")
- local event,button,x,y = os.pullEvent("mouse_click")
- if x >= 42 and x <= 50 and y == 18 then
- break
- end
- repeat
- local event,button,x,y = os.pullEvent("mouse_click")
- if x >= 2 and x <= 21 and y == 4 then
- commands.exec("give @p[lm=10] mw:vssvintorez")
- commands.exec("xp -10l @p[lm=10]")
- elseif x >= 2 and x <= 21 and y == 6 then
- commands.exec("give @p[lm=10] mw:m110")
- commands.exec("xp -10l @p[lm=10]")
- elseif x >= 2 and x <= 21 and y == 8 then
- commands.exec("give @p[lm=10] mw:sv98")
- commands.exec("xp -10l @p[lm=10]")
- elseif x >= 2 and x <= 21 and y == 10 then
- commands.exec("give @p[lm=15] mw:hecateii")
- commands.exec("xp -15l @p[lm=15]")
- elseif x >= 2 and x <= 21 and y == 12 then
- commands.exec("give @p[lm=13] mw:m107")
- commands.exec("xp -13l @p[lm=13]")
- elseif x >= 22 and x <= 23 and y == 4 then
- commands.exec("give @p[lm=2] mw:vssvintorezmag 1")
- commands.exec("xp -2l @p[lm=2]")
- elseif x >= 22 and x <= 23 and y == 6 then
- commands.exec("give @p[lm=2] mw:m110mag 1")
- commands.exec("xp -2l @p[lm=2]")
- elseif x >= 22 and x <= 23 and y == 8 then
- commands.exec("give @p[lm=2] mw:sv98mag 1")
- commands.exec("xp -2l @p[lm=2]")
- elseif x >= 22 and x <= 23 and y == 10 then
- commands.exec("give @p[lm=2] mw:hecateiimag 1")
- commands.exec("xp -2l @p[lm=2]")
- elseif x >= 22 and x <= 23 and y == 12 then
- commands.exec("give @p[lm=2] mw:m107bmag 1")
- commands.exec("xp -2l @p[lm=2]")
- end
- until x >= 42 and x <= 50 and y == 18
- end
- elseif x >= 2 and x <= 13 and y == 12 then
- while true do
- term.clear()
- term.setTextColor(colors.blue)
- term.setCursorPos(2,2)
- term.write("Pistole")
- term.setTextColor(colors.orange)
- term.setCursorPos(2,4)
- term.write("[ M9-SD --- 5l ]")
- term.setCursorPos(2,6)
- term.write("[ GLOCK18 --- 3l ]")
- term.setCursorPos(2,8)
- term.write("[ D.EAGLE --- 3l ]")
- term.setCursorPos(2,10)
- term.setTextColor(colors.red)
- term.setCursorPos(22,4)
- term.write("[1]")
- term.setCursorPos(22,6)
- term.write("[1]")
- term.setCursorPos(22,8)
- term.write("[1]")
- term.setTextColor(colors.orange)
- term.setCursorPos(42,18)
- term.write("[ back ]")
- local event,button,x,y = os.pullEvent("mouse_click")
- if x >= 42 and x <= 50 and y == 18 then
- break
- end
- repeat
- local event,button,x,y = os.pullEvent("mouse_click")
- if x >= 2 and x <= 21 and y == 4 then
- commands.exec("give @p[lm=5] mw:m9sd")
- commands.exec("xp -5l @p[lm=5]")
- elseif x >= 2 and x <= 21 and y == 6 then
- commands.exec("give @p[lm=3] mw:glock18")
- commands.exec("xp -3l @p[lm=3]")
- elseif x >= 2 and x <= 21 and y == 8 then
- commands.exec("give @p[lm=3] mw:deagle50")
- commands.exec("xp -3l @p[lm=3]")
- elseif x >= 22 and x <= 23 and y == 4 then
- commands.exec("give @p[lm=1] mw:m9berettamag 1")
- commands.exec("xp -1l @p[lm=1]")
- elseif x >= 22 and x <= 23 and y == 6 then
- commands.exec("give @p[lm=1] mw:g18mag 1")
- commands.exec("xp -1l @p[lm=1]")
- elseif x >= 22 and x <= 23 and y == 8 then
- commands.exec("give @p[lm=1] mw:deagle50mag 1")
- commands.exec("xp -1l @p[lm=1]")
- end
- until x >= 42 and x <= 50 and y == 18
- end
- elseif x >= 2 and x <= 13 and y == 14 then
- while true do
- term.clear()
- term.setTextColor(colors.blue)
- term.setCursorPos(2,2)
- term.write("Altro")
- term.setTextColor(colors.orange)
- term.setCursorPos(2,4)
- term.write("[ RPG --- 20l ]")
- term.setCursorPos(2,6)
- term.write("[ CINTURA --- 7l ]")
- term.setCursorPos(2,8)
- term.write("[ SACCA --- 7l ]")
- term.setCursorPos(2,10)
- term.write("[ BINOCOLO--- 5l ]")
- term.setTextColor(colors.red)
- term.setCursorPos(22,4)
- term.write("[5]")
- term.setTextColor(colors.orange)
- term.setCursorPos(42,18)
- term.write("[ back ]")
- local event,button,x,y = os.pullEvent("mouse_click")
- if x >= 42 and x <= 50 and y == 18 then
- break
- end
- repeat
- local event,button,x,y = os.pullEvent("mouse_click")
- if x >= 2 and x <= 21 and y == 4 then
- commands.exec("give @p[lm=20] mw:smaw")
- commands.exec("xp -20l @p[lm=20]")
- elseif x >= 2 and x <= 21 and y == 6 then
- commands.exec("give @p[lm=7] toolbelt:belt")
- commands.exec("xp -7l @p[lm=7]")
- elseif x >= 2 and x <= 21 and y == 8 then
- commands.exec("give @p[lm=7] toolbelt:pouch")
- commands.exec("xp -7l @p[lm=7]")
- elseif x >= 2 and x <= 21 and y == 10 then
- commands.exec("give @p[lm=5] binocular:binocular")
- commands.exec("xp -5l @p[lm=5]")
- elseif x >= 22 and x <= 23 and y == 4 then
- commands.exec("give @p[lm=5] mw:smawrocket 1")
- commands.exec("xp -5l @p[lm=5]")
- end
- until x >= 42 and x <= 50 and y == 18
- end
- elseif x >= 2 and x <= 13 and y == 16 then
- while true do
- term.clear()
- term.setTextColor(colors.blue)
- term.setCursorPos(2,2)
- term.write("Altro")
- term.setTextColor(colors.orange)
- term.setCursorPos(2,4)
- term.write("[ REFLEX --- 3l ]")
- term.setCursorPos(2,6)
- term.write("[ ACOG --- 3l ]")
- term.setCursorPos(2,8)
- term.write("[ HOLO --- 3l ]")
- term.setCursorPos(2,10)
- term.write("[ OTTICA --- 3l ]")
- term.setCursorPos(2,12)
- term.write("[ OTTICA2 --- 3l ]")
- term.setCursorPos(2,14)
- term.write("[ 1-6x24 --- 3l ]")
- term.setCursorPos(2,16)
- term.write("[ 3-9x40 --- 3l ]")
- term.setCursorPos(24,4)
- term.write("[ LASER 1 --- 3l ]")
- term.setCursorPos(24,6)
- term.write("[ LASER 2 --- 3l ]")
- term.setCursorPos(24,8)
- term.write("[ GRIP 1 --- 3l ]")
- term.setCursorPos(24,10)
- term.write("[ GRIP 2 --- 3l ]")
- term.setCursorPos(24,12)
- term.write("[ BIPODE --- 3l ]")
- term.setCursorPos(42,18)
- term.write("[ back ]")
- local event,button,x,y = os.pullEvent("mouse_click")
- if x >= 42 and x <= 50 and y == 18 then
- break
- end
- repeat
- local event,button,x,y = os.pullEvent("mouse_click")
- if x >= 2 and x <= 21 and y == 4 then
- commands.exec("give @p[lm=3] mw:reflex")
- commands.exec("xp -3l @p[lm=3]")
- elseif x >= 2 and x <= 21 and y == 6 then
- commands.exec("give @p[lm=3] mw:acog")
- commands.exec("xp -3l @p[lm=3]")
- elseif x >= 2 and x <= 21 and y == 8 then
- commands.exec("give @p[lm=3] mw:holographic")
- commands.exec("xp -3l @p[lm=3]")
- elseif x >= 2 and x <= 21 and y == 10 then
- commands.exec("give @p[lm=3] mw:pso1")
- commands.exec("xp -3l @p[lm=3]")
- elseif x >= 2 and x <= 21 and y == 12 then
- commands.exec("give @p[lm=3] mw:leupold")
- commands.exec("xp -3l @p[lm=3]")
- elseif x >= 2 and x <= 21 and y == 14 then
- commands.exec("give @p[lm=3] mw:lpscope")
- commands.exec("xp -3l @p[lm=3]")
- elseif x >= 2 and x <= 21 and y == 16 then
- commands.exec("give @p[lm=3] mw:hpscope")
- commands.exec("xp -3l @p[lm=3]")
- elseif x >= 26 and x <= 45 and y == 4 then
- commands.exec("give @p[lm=3] mw:laser2")
- commands.exec("xp -3l @p[lm=3]")
- elseif x >= 26 and x <= 45 and y == 6 then
- commands.exec("give @p[lm=3] mw:laser")
- commands.exec("xp -3l @p[lm=3]")
- elseif x >= 26 and x <= 45 and y == 8 then
- commands.exec("give @p[lm=3] mw:grip2")
- commands.exec("xp -3l @p[lm=3]")
- elseif x >= 26 and x <= 45 and y == 10 then
- commands.exec("give @p[lm=3] mw:vgrip")
- commands.exec("xp -3l @p[lm=3]")
- elseif x >= 26 and x <= 45 and y == 12 then
- commands.exec("give @p[lm=3] mw:bipod")
- commands.exec("xp -3l @p[lm=3]")
- end
- until x >= 42 and x <= 50 and y == 18
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement