Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Bolodefchoco
- --17/07/2015
- --[[ Pressione a barra de espaço para coletar o XML (Que irá para #lua).
- Pressiona a tecla P para recarregar o mapa atual.
- Mude "Bolodefchoco" na segunda linha para seu nick!
- ]]--
- for i = 0,250 do
- system.bindKeyboard("Bolodefchoco",i,true,true)
- end
- values = {
- {0,3000},
- {3001,6001},
- {6002,9002},
- {9003,12003},
- {12004,15004},
- {15005,18005},
- {18006,21006},
- {21007,24007},
- {24008,27008},
- {27009,30009},
- {30010,40000}
- }
- tfm.exec.newGame(tfm.get.room.currentMap)
- v=function(q1,q2)
- if xml:sub(q1,q2)~="" then
- print("<R>"..xml:sub(q1,q2))
- end
- end
- eventKeyboard=function(n,k)
- if k == 32 then
- xml = tfm.get.room.xmlMapInfo.xml
- xml = xml:gsub("<","<")
- print('<R>XML:')
- for i = 1,#values do
- v(values[i][1],values[i][2])
- end
- elseif k == string.byte('P') then
- tfm.exec.newGame(tfm.get.room.currentMap)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement