Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tfm.exec.setUIMapName("改造版")
- tfm.exec.disableAutoNewGame(true)
- tfm.exec.newGame(1,2,3)
- tfm.exec.disableAutoShaman(true)
- tfm.exec.disableAfkDeath(true)
- DOWN1 = 40
- DOWN2 = string.byte("S")
- SPACE1 = 32
- SHOBON1 = string.byte("B")
- MAKUDOUNCHI = string.byte("M")
- MAKUDOUNCHI2 = string.byte("P")
- tick = 0
- goldentick = 0
- happen = 0
- function eventLoop(time,remaining,queue)
- tick = tick + 1
- goldentick = goldentick + 1
- if goldentick >= 10 then
- goldentick = 0
- tick = 0
- tfm.exec.addShamanObject(1002,math.random(0,800),0,0,0,0,false)
- end
- if tick >= 2 then
- tick = 0
- tfm.exec.addShamanObject(10,math.random(0,800),0,0,0,0,false)
- end
- end
- for name, player in pairs(tfm.get.room.playerList) do
- system.bindKeyboard(name, MAKUDOUNCHI, true)
- end
- function eventKeyboard(name, keyCode, down, x, y)
- if keyCode == DOWN1 or keyCode == DOWN2 then
- tfm.exec.explosion(x, y + 30, 20, 60, true)
- tfm.exec.giveCheese "Teruki0310"
- end
- if keyCode == SPACE1 then
- tfm.exec.explosion(x, y + 30, 20, 60, true)
- tfm.exec.giveCheese "Kazukoramu2"
- end
- if keyCode == SHOBON1 then
- tfm.exec.killPlayer "Shobonvip"
- end
- if keyCode == MAKUDOUNCHI then
- happen = math.random(0,999)
- if happen >= 999 then
- tfm.exec.addShamanObject(1005,math.random(0,800),0,0,0,0,false)
- end
- if happen >= 799 then
- tfm.exec.addShamanObject(1002,math.random(0,800),0,0,0,0,false)
- end
- if happen <= 798 then
- tfm.exec.addShamanObject(10,math.random(0,800),0,0,0,0,false)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement