Advertisement
SirBaconBitz

Sexyass Stalkin Program

Jan 26th, 2014
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.76 KB | None | 0 0
  1. function one()
  2. sleep(2)
  3. end
  4. function two()
  5. os.pullEvent()
  6. bacon = false
  7. end
  8.  
  9.  
  10. bacon = true
  11. name = read()
  12. sensor = peripheral.wrap("left")
  13. mon = peripheral.wrap("top")
  14. while bacon == true do
  15. per = 0
  16. stored = 0
  17. max = 0
  18. parallel.waitForAny(one, two)
  19. data = sensor.getPlayerData(name)
  20. mon.clear()
  21. shell.run("herp")
  22. mon.setCursorPos(1,1)
  23. mon.write("SmugCam")
  24. mon.setCursorPos(1,3)
  25. mon.write("Version 1.337")
  26. mon.setCursorPos(1,2)
  27. mon.write("Locked on: "..name)
  28.     function head()
  29.     mon.setCursorPos(39,5)
  30.     mon.write("Helmet: "..data["armor"]["helmet"]["name"])
  31.         if data["armor"]["helmet"]["energyStored"] ~= nil then
  32.             stored = data.armor.helmet.energyStored
  33.             max = data.armor.helmet.maxEnergyStored
  34.             per = stored / max
  35.             percent = math.ceil(per * 100)
  36.             mon.setCursorPos(39,6)
  37.             mon.write(tostring(percent).."%")
  38.         end
  39.         if data.armor.helmet.energStored == nil then
  40.             if data["armor"]["helmet"]["electric"] ~= nil then 
  41.                 if data["armor"]["helmet"]["electric"]["charge"] ~= nil then
  42.                 stored = data.armor.helmet.electric.charge
  43.                 max = data.armor.helmet.electric.maxCharge
  44.                 per = stored / max
  45.                 percent = math.ceil(per * 100)
  46.                 mon.setCursorPos(39,6)
  47.                 mon.write(tostring(percent).."%")
  48.                 end
  49.             end
  50.         end
  51.     end
  52.     function chest()
  53.     mon.setCursorPos(49,25)
  54.     mon.write("Chestplate: "..data["armor"]["chestplate"]["name"])
  55.         if data["armor"]["chestplate"]["energyStored"] ~= nil then
  56.             stored = data.armor.chestplate.energyStored
  57.             max = data.armor.chestplate.maxEnergyStored
  58.             per = stored / max
  59.             percent = math.ceil(per * 100)
  60.             mon.setCursorPos(49,26)
  61.             mon.write(tostring(percent).."%")
  62.         end
  63.         if data.armor.chestplate.energyStored == nil then  
  64.             if data["armor"]["chestplate"]["electric"] ~= nil then
  65.                 if data["armor"]["chestplate"]["electric"]["charge"] ~= nil then
  66.                 stored = data.armor.chestplate.electric.charge
  67.                 max = data.armor.chestplate.electric.maxCharge
  68.                 per = stored / max
  69.                 percent = math.ceil(per * 100)
  70.                 mon.setCursorPos(49,26)
  71.                 mon.write(tostring(percent).."%")
  72.                 end
  73.             end
  74.         end
  75.     end
  76.     function leggings()
  77.     mon.setCursorPos(39,40)
  78.     mon.write("Leggings: "..data["armor"]["leggings"]["name"])
  79.         if data["armor"]["leggings"]["energyStored"] ~= nil then
  80.             stored = data.armor.leggings.energyStored
  81.             max = data.armor.leggings.maxEnergyStored
  82.             per = stored / max
  83.             percent = math.ceil(per * 100)
  84.             mon.setCursorPos(39,41)
  85.             mon.write(tostring(percent).."%")
  86.         end
  87.         if data.armor.leggings.energyStored == nil then
  88.             if data["armor"]["leggings"]["electric"] ~= nil then
  89.                 if data["armor"]["leggings"]["electric"]["charge"] ~= nil then
  90.                 stored = data.armor.leggings.electric.charge
  91.                 max = data.armor.leggings.electric.maxCharge
  92.                 per = stored / max
  93.                 percent = math.ceil(per * 100)
  94.                 mon.setCursorPos(49,41)
  95.                 mon.write(tostring(percent).."%")
  96.                 end
  97.             end
  98.         end
  99.     end
  100.     function boots()
  101.     mon.setCursorPos(39,50)
  102.     mon.write("Boots: "..data["armor"]["boots"]["name"])
  103.         if data["armor"]["boots"]["energyStored"] ~= nil then
  104.             stored = data.armor.boots.energyStored
  105.             max = data.armor.boots.maxEnergyStored
  106.             per = stored / max
  107.             percent = math.ceil(per * 100)
  108.             mon.setCursorPos(39,51)
  109.             mon.write(tostring(percent).."%")
  110.         end
  111.         if data.armor.boots.energyStored == nil then
  112.             if data["armor"]["boots"]["electric"] ~= nil then
  113.                 if data["armor"]["boots"]["electric"]["charge"] ~= nil then
  114.                 stored = data.armor.boots.electric.charge
  115.                 max = data.armor.boots.electric.maxCharge
  116.                 per = stored / max
  117.                 percent = math.ceil(per * 100)
  118.                 mon.setCursorPos(49,51)
  119.                 mon.write(tostring(percent).."%")
  120.                 end
  121.             end
  122.         end
  123.     end
  124.     function health()
  125.     mon.setCursorPos(1,4)
  126.     mon.write("Health: "..tostring(math.ceil(data.health)).." / "..tostring(math.ceil(data.maxHealth)))
  127.     end
  128.     function distance()
  129.     x = data["position"]["x"] + 916
  130.     y = data["position"]["y"] + 71
  131.     z = data["position"]["z"] + 1071
  132.     mon.setCursorPos(1,5)
  133.     mon.write("X: "..math.ceil(x))
  134.     mon.setCursorPos(1,6)
  135.     mon.write("Y: "..math.ceil(y))
  136.     mon.setCursorPos(1,7)
  137.     mon.write("Z: "..math.ceil(z))
  138.     end
  139.     function heldItem()
  140.         mon.setCursorPos(1,60)
  141.         mon.write("Holding a(n): "..data.heldItem.name)
  142.         mon.setCursorPos(1,61)
  143.         mon.write("Damage: "..data.heldItem.dmg)
  144.             if data.heldItem.energyStored ~= nil then
  145.                 stored = data.heldItem.energyStored
  146.                 max = data.heldItem.energyStored
  147.                 percent = math.ceil(100 * (stored / max))
  148.                 mon.setCursorPos(1,64)
  149.                 mon.write("Energy Level: "..tostring(percent).."%")
  150.             end
  151.         mon.setCursorPos(1,62)
  152.         mon.write("Item ID: "..data.heldItem.id)
  153.         mon.setCursorPos(1,63)
  154.         mon.write("Quantity: "..data.heldItem.qty)
  155.     end
  156. head()
  157. chest()
  158. leggings()
  159. boots()
  160. health()
  161. distance()
  162. heldItem()
  163. end
  164. shell.run("prog")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement