Update 'DuyTracker.lua'

This commit is contained in:
ydeng 2021-05-07 21:16:26 -05:00
parent a7f06bc8bd
commit 9e7d107213

View File

@ -6,18 +6,32 @@ main.setBackgroundColor(8192)
main.clear() main.clear()
main.setTextColor(2) main.setTextColor(2)
main.setCursorPos(1,1) main.setCursorPos(1,1)
main.write("Le Duy Tracker") main.write("Le HooeyLou Tracker")
main.setVisible(true) main.setVisible(true)
while true do while true do
local pos = player.getPlayerPos("MrArsnic") local pos = player.getPlayerPos("MrArsnic")
if pos == nil then
main.setCursorPos(1,2) main.setCursorPos(1,2)
main.clearLine() main.clearLine()
main.write("X: " .. pos.x) main.write("Player not found.")
main.setCursorPos(1,3)
main.clearLine()
main.write("Last known location:")
else
main.setCursorPos(1,2)
main.clearLine()
main.write("Player found.")
main.setCursorPos(1,3) main.setCursorPos(1,3)
main.clearLine() main.clearLine()
main.write("Y: " .. pos.y)
main.setCursorPos(1,4) main.setCursorPos(1,4)
main.clearLine() main.clearLine()
main.write("X: " .. pos.x)
main.setCursorPos(1,5)
main.clearLine()
main.write("Y: " .. pos.y)
main.setCursorPos(1,6)
main.clearLine()
main.write("Z: " .. pos.z) main.write("Z: " .. pos.z)
end
sleep(1) sleep(1)
end end