Guest User

Untitled

a guest
Nov 23rd, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. <triggers>
  2. <trigger
  3. enabled="y"
  4. group="enhancement_space"
  5. match="Remaining jump distance: *"
  6. name="jump_eta"
  7. send_to="12"
  8. sequence="100"
  9. >
  10. <send>remaining_jump = tonumber("%1")
  11. ticks = math.ceil(remaining_jump/500)
  12. minutes = math.floor(ticks/3)
  13. seconds = 20*(ticks % 3)
  14. if seconds == 0 then seconds = "00" end
  15. ColourTell ("#DBCC3C", "black", "ETA to destination: ", "white", "black", minutes .. ":" .. seconds)</send>
  16. </trigger>
  17. </triggers>
Add Comment
Please, Sign In to add comment