Advertisement
Alakazard12

f0nt

Mar 23rd, 2015
325
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 KB | None | 0 0
  1. local list = "abcdefghigklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
  2. local new = "4bcd3fgh1gklmn0pqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
  3.  
  4. local oldw = term.write
  5. function term.write(txt)
  6.     for i = 1, #txt do
  7.         local tow = string.sub(txt, i, i)
  8.         for r = 1, #list do
  9.             if string.sub(list, r, r) == tow then
  10.                 tow = string.sub(new, r, r)
  11.             end
  12.         end
  13.         oldw(tow)
  14.     end
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement