Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tfm.exec.disableAutoNewGame(true)
- function eventPlayerDied(name) tfm.exec.respawnPlayer(name) end
- map = '<C><P %s /><Z><S><S T="0" X="400" Y="380" L="800" H="40" /></S><O /><D /></Z></C>'
- ico = 'D="'
- x=0
- y=20
- for k=0, 50 do
- ico = ico..string.format("x_transformice/x_badges/x_%d.png,%d,%d,", k, x, y)
- x=(x+40)%800
- y=20+40*math.floor((k+1)/20)
- end
- x=0
- y=140
- for k=1, 20 do
- ico = ico..string.format("x_transformice/x_inventaire/%d.jpg,%d,%d,", k, x, y)
- x=(x+40)%800
- end
- x=0
- y=220
- for k=1, 9 do ico = ico..string.format("x_chamane/i_00%d.png,%d,%d,", k, x, y)
- x=(x+40)
- end
- for k=10, 99 do ico = ico..string.format("x_chamane/i_0%d.png,%d,%d,", k, x, y)
- y=220+40*math.floor((k)/20)
- x=(x+40)%800
- end
- tfm.exec.newGame(map:format(ico..'"'))
Add Comment
Please, Sign In to add comment