Tectoon

[TFM] Visualizador de Emblemas

May 4th, 2015
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.77 KB | None | 0 0
  1. tfm.exec.disableAutoNewGame(true)
  2. function eventPlayerDied(name) tfm.exec.respawnPlayer(name) end
  3.  
  4. map = '<C><P %s /><Z><S><S T="0" X="400" Y="380" L="800" H="40" /></S><O /><D /></Z></C>'
  5.  
  6. ico = 'D="'
  7. x=0
  8. y=20
  9.  
  10. for k=0, 50 do
  11.     ico = ico..string.format("x_transformice/x_badges/x_%d.png,%d,%d,", k, x, y)
  12.     x=(x+40)%800
  13.     y=20+40*math.floor((k+1)/20)
  14. end
  15.  
  16. x=0
  17. y=140
  18.  
  19. for k=1, 20 do
  20.     ico = ico..string.format("x_transformice/x_inventaire/%d.jpg,%d,%d,", k, x, y)
  21.     x=(x+40)%800
  22. end
  23.  
  24. x=0
  25. y=220
  26. for k=1, 9 do ico = ico..string.format("x_chamane/i_00%d.png,%d,%d,", k, x, y)
  27.     x=(x+40)
  28. end
  29.  
  30.  
  31. for k=10, 99 do ico = ico..string.format("x_chamane/i_0%d.png,%d,%d,", k, x, y)
  32.     y=220+40*math.floor((k)/20)
  33.     x=(x+40)%800
  34. end
  35.  
  36. tfm.exec.newGame(map:format(ico..'"'))
Add Comment
Please, Sign In to add comment