function eventNewPlayer(name)
tfm.exec.bindKeyboard(name, 32, true, true)
tfm.exec.addImage("1717a3b61b8.png","_1",1600,400)
tfm.exec.addImage("1717a3be58a.png","_2",2400,400)
tfm.exec.addImage("1717a3bcf11.png","_3",2400,0)
tfm.exec.addImage("1717a3c146a.png","_4",1601,0)
tfm.exec.addImage("1717a3c5ac0.png","_5",800,400)
tfm.exec.addImage("1717a3bfcf9.png","_6",0,400)
tfm.exec.addImage("1717a3c2bd9.png","_7",0,0)
tfm.exec.addImage("1717a3c434e.png","_9",800,0)
tfm.exec.chatMessage("<fc> Welcome to Village+",name)
    system.addBot(-1,'Oracle',299,'61;0,0,0,0,0,19_3d100f+1fa896+ffe15b,0,0,0',2187,381,name, {{1, 145, 1, 4, 2253, 200}, {2, 16, 1, 4, 2253, 150}, {2, 28, 1, 4, 2253, 150}, {2, 20, 1, 4, 2253, 150}, {2, 24, 1, 4, 2253, 150}, {2, 21, 1, 4, 2253, 150}, {3, 390, 1, 4, 2253, 50}, {3, 391, 1, 4, 2253, 200}, {3, 399, 1, 4, 2253, 150}})

    system.addBot(-2,'Papaille',298,'4;2,0,2,2,0,0,0,0,1',2394,209,name, {{4, 800, 50, 4, 2253, 50}, {4, 800, 50, 4, 2254, 50}, {4, 800, 50, 4, 2260, 50}, {4, 800, 50, 4, 2261, 50}, {4, 801, 50, 4, 2253, 50}, {4, 801, 50, 4, 2254, 50}, {4, 801, 50, 4, 2260, 50}, {4, 801, 50, 4, 2261, 50}, {4, 800, 200, 4, 2253, 200}, {4, 800, 200, 4, 2254, 200}, {4, 800, 200, 4, 2260, 200}, {4, 800, 200, 4, 2261, 200}, {4, 801, 200, 4, 2253, 200}, {4, 801, 200, 4, 2254, 200}, {4, 801, 200, 4, 2260, 200}, {4, 801, 200, 4, 2261, 200}})

    system.addBot(-3,'Elise',349,'3;10,0,1,0,1,0,0,1,0',2329,209,name, {{4, 21, 5, 4, 2253, 1}, {4, 2246, 3, 4, 2253, 2}, {4, 18, 3, 4, 2254, 4}, {4, 16, 1, 4, 2254, 1}, {4, 6, 1, 4, 2260, 3}, {4, 13, 2, 4, 2260, 4}, {4, 9, 1, 4, 2261, 5}, {4, 14, 3, 4, 2261, 2}})

    system.addBot(-4,'Buffy',347,'$Buffy',1908,499,name, {{1, 147, 1, 4, 2254, 200}, {2, 17, 1, 4, 2254, 150}, {3, 392, 1, 4, 2254, 50}, {3, 398, 1, 4, 2254, 150}})

    system.addBot(-5,'Indiana Mouse',296,'45;0,0,0,0,0,0,0,0,0',174,714,name, {{1, 17, 1, 4, 2257, 50}, {1, 6, 1, 4, 2257, 50}, {2, 3, 1, 4, 2257, 50}, {2, 1, 1, 4, 2254, 150}, {2, 2, 1, 4, 2254, 150}, {2, 3, 1, 4, 2254, 150}, {2, 4, 1, 4, 2254, 150}, {2, 5, 1, 4, 2254, 150}, {2, 6, 1, 4, 2254, 150}, {2, 7, 1, 4, 2254, 150}, {2, 8, 1, 4, 2254, 150}, {2, 9, 1, 4, 2254, 150}, {2, 10, 1, 4, 2254, 150}, {2, 11, 1, 4, 2254, 150}, {2, 12, 1, 4, 2254, 150}, {2, 13, 1, 4, 2254, 150}, {2, 14, 1, 4, 2254, 150}, {2, 15, 1, 4, 2254, 150}, {2, 16, 1, 4, 2254, 150}, {2, 17, 1, 4, 2254, 150}, {2, 18, 1, 4, 2254, 150}, {2, 19, 1, 4, 2254, 150}, {2, 20, 1, 4, 2254, 150}, {2, 21, 1, 4, 2254, 150}, {2, 22, 1, 4, 2254, 150}, {2, 23, 1, 4, 2254, 150}, {2, 24, 1, 4, 2254, 150}, {2, 25, 1, 4, 2254, 150}, {2, 26, 1, 4, 2254, 150}, {2, 27, 1, 4, 2254, 150}, {2, 28, 1, 4, 2254, 150}})

    system.addBot(-6,'Prof',327,'$Proviseur',289,715,name, {{1, 71, 1, 4, 2257, 5}, {1, 73, 1, 4, 2257, 5}, {1, 131, 1, 4, 2257, 5}, {1, 134, 1, 4, 2257, 5}, {1, 188, 1, 4, 2257, 5}, {1, 190, 1, 4, 2257, 5}, {1, 193, 1, 4, 2257, 5}, {1, 182, 1, 4, 2257, 5}, {1, 193, 1, 4, 2257, 5}, {1, 202, 1, 4, 2257, 5}})

    system.addBot(-8,'Von Drekkemouse',287,'$Halloween',1672,378,name, {{1, 153, 1, 4, 2260, 200}, {2, 22, 1, 4, 2260, 150}, {3, 401, 1, 4, 2260, 100}})

--botadd--
end


function eventNewGame()
tfm.exec.addImage("1717a3b61b8.png","_1",1600,400)
tfm.exec.addImage("1717a3be58a.png","_2",2400,400)
tfm.exec.addImage("1717a3bcf11.png","_3",2400,0)
tfm.exec.addImage("1717a3c146a.png","_4",1601,0)
tfm.exec.addImage("1717a3c5ac0.png","_5",800,400)
tfm.exec.addImage("1717a3bfcf9.png","_6",0,400)
tfm.exec.addImage("1717a3c2bd9.png","_7",0,0)
tfm.exec.addImage("1717a3c434e.png","_9",800,0)
for name,p in pairs(tfm.get.room.playerList) do
eventNewPlayer(name)
end

end
tfm.exec.newGame(801)
tfm.exec.chatMessage("<fc> Welcome :)")
for i,p in pairs(tfm.get.room.playerList) do
tfm.exec.bindKeyboard(i, 32, true, true)
end
tfm.exec.addImage("1717a3b61b8.png","_1",1600,400)
tfm.exec.addImage("1717a3be58a.png","_2",2400,400)
tfm.exec.addImage("1717a3bcf11.png","_3",2400,0)
tfm.exec.addImage("1717a3c146a.png","_4",1601,0)
tfm.exec.addImage("1717a3c5ac0.png","_5",800,400)
tfm.exec.addImage("1717a3bfcf9.png","_6",0,400)
tfm.exec.addImage("1717a3c2bd9.png","_7",0,0)
tfm.exec.addImage("1717a3c434e.png","_9",800,0)
function eventKeyboard(name, key, down, x, y)
if key == 32 then
tfm.exec.movePlayer(name,0,0,true,0,-50,false)
end
end
tfm.exec.chatMessage("<fc> Welcome to Village+",name)