-- Afogamento Simulator 2014 -- feito por Ninguem agua={} jogador={} pode = false function pegaAguas() local xml = tfm.get.room.xmlMapInfo.xml local i = 1 while i < xml:len() do if xml:sub(i,i+2) == " (v.X - math.floor(v.L/2))) and (x < (v.X + math.floor(v.L/2))) and (y > (v.Y - math.floor(v.H/2))) and (y < (v.Y + math.floor(v.H/2))) then return true end end return false end function eventLoop() if pode then for i, v in pairs(tfm.get.room.playerList) do if isMolhado(i) and not v.isDead then jogador[i] = jogador[i] - 1 ui.addTextArea(0, "

"..math.floor(jogador[i]/2), i, v.x-35, v.y-25, 70, 70, 0, 0, 0, false) for j=1, 10 do tfm.exec.displayParticle(14, v.x, v.y, math.random(-20,20)/10, math.random(-20,20)/10, 0, 0, i) end else jogador[i] = 20 ui.removeTextArea(0, i) end if jogador[i] <= 0 then tfm.exec.killPlayer(i) end end end end tfm.exec.newGame("@5442689")