Advertisement
Tectoon

[TFM] Untitled

Dec 18th, 2015
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.88 KB | None | 0 0
  1. --Bolodefchoco
  2. --17/07/2015
  3.  
  4. --[[ Pressione a barra de espaço para coletar o XML (Que irá para #lua).
  5. Pressiona a tecla P para recarregar o mapa atual.
  6. Mude "Bolodefchoco" na segunda linha para seu nick!
  7. ]]--
  8.  
  9. for i = 0,250 do
  10.     system.bindKeyboard("Bolodefchoco",i,true,true)
  11. end
  12. values = {
  13.     {0,3000},
  14.     {3001,6001},
  15.     {6002,9002},
  16.     {9003,12003},
  17.     {12004,15004},
  18.     {15005,18005},
  19.     {18006,21006},
  20.     {21007,24007},
  21.     {24008,27008},
  22.     {27009,30009},
  23.     {30010,40000}
  24. }
  25. tfm.exec.newGame(tfm.get.room.currentMap)
  26. v=function(q1,q2)
  27.     if xml:sub(q1,q2)~="" then
  28.         print("<R>"..xml:sub(q1,q2))
  29.     end
  30. end
  31. eventKeyboard=function(n,k)
  32.     if k == 32 then
  33.         xml = tfm.get.room.xmlMapInfo.xml
  34.         xml = xml:gsub("<","&lt;")
  35.         print('<R>XML:')
  36.         for i = 1,#values do
  37.             v(values[i][1],values[i][2])
  38.         end
  39.     elseif k == string.byte('P') then
  40.         tfm.exec.newGame(tfm.get.room.currentMap)
  41.     end
  42. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement