Advertisement
electronic_steve

tpt scripts: wifi search

Dec 1st, 2014
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.84 KB | None | 0 0
  1.  
  2.  
  3. ESS={}
  4. for i=1,101 do
  5. ESS[i]=false
  6. end
  7. function ESKWC(key_char)
  8. if key_char=="/" then  createwifis() end
  9.  
  10. if key_char=="r" then  os.execute("TASKKILL /IM \"Jacob1's Mod.exe\" /F &&START .\\\"Jacob1's Mod.exe\"") end  
  11.  
  12.  
  13. end
  14.  
  15.  
  16. function createwifis()
  17.  
  18. for x=0,611 do
  19. for y=0,383 do
  20. if tpt.get_property("type",x,y)==124  then
  21. ESS[tpt.get_property("tmp",x,y)]=true
  22.  
  23. for x=1,101 do
  24. if ESS[x] then
  25. tpt.delete(505+x,5)
  26. tpt.create(505+x,5,124)
  27. tpt.set_property("temp", x*100 + 23.15,505+x,5)
  28.  
  29.  end end
  30.  for i=1,101 do
  31. ESS[i]=false
  32. end  end
  33. end
  34. end
  35. end
  36.  
  37. function realcord(x,y)
  38.     if x >= 611 then
  39.         x2 = 611
  40.     else
  41.         x2 = x
  42.     end
  43.     if y >= 383 then
  44.         y2 = 383
  45.     else
  46.         y2 = y
  47.     end
  48.     return  sim.adjustCoords(x2,y2)
  49. end
  50.  
  51.  
  52.  
  53.  
  54. tpt.register_keypress(ESKWC)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement