Advertisement
EditorRUS

WifiEMP

Sep 6th, 2011
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.57 KB | None | 0 0
  1. tpt.set_console(0)
  2.  
  3. function CWE()
  4.  local author = "EditorRUS"
  5.  local channel = 0
  6.  local kelvintemp = -273.5
  7.  local xposw = 1
  8.  local yposw = 1
  9.  local xposp = 2
  10.  local yposp = 2
  11.  
  12.  for i = 0,i<8 do
  13.   for j = 0, j<12 do
  14.    tpt.create(xposw, yposw, "WIFI")
  15.    tpt.set_property("temp", (channel * 100 + kelvintemp), xposw, yposw)
  16.    xposw = xposw + 2
  17.   end
  18.  y = y + 2
  19.  end
  20.  
  21.  for i = 0, i<7 do
  22.   for j = 0, j<11 do
  23.    tpt.create(xposp, yposp, "PSCN")
  24.    xposp = xposp + 2
  25.   end
  26.  yposp = yposp + 2
  27.  end
  28.  tpt.unregister_step(CWE)
  29. end
  30.  
  31. tpt.register_step(CWE)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement