Nihatsune
Shaman
1. Setează numele unei mape
2.Ninsoare
3.Zbor din tasta space
4.Alege un jucător la întâmplare ca vampir
5. Fă toți jucătorii vampiri
6. Fake ban
Script vânt și ploaie :
Acest script îți face o explozie de inimioare
Cu acest script îți setează mapele care vrei să urmeze
Aici ai scriptul la Deathmatch ;D
Bătaie cu bulgări
Scriptul acesta îți creează echipe : Roșu și Albastru
Code:
tfm.exec.setUIMapName("Numele Mapei")
tfm.exec.setUIShamanName("Numele Șamanului")
Code:
tfm.exec.snow()
local loopCount = 0
function eventLoop()
if loopCount == 0 then
tfm.exec.snow()
tfm.exec.snow()
end
loopCount = (loopCount + 1) % 100
end
Code:
function eventNewPlayer(name)
tfm.exec.bindKeyboard(name,32,true,true)
end
for name,player in pairs(tfm.get.room.playerList) do
eventNewPlayer(name)
end
function eventKeyboard(name,key,down,x,y)
if key==32 then
tfm.exec.movePlayer(name,0,0,true,0,-50,false)
end
end
Code:
players = {}
for name,player in pairs(tfm.get.room.playerList) do
table.insert(players,name)
end
tfm.exec.setVampirePlayer(players[math.random(#players)])
Code:
for name,player in pairs(tfm.get.room.playerList) do
tfm.exec.setVampirePlayer(name)
end
Code:
-- Bot messagens v1.1
-- Script creeat de Adrian
-- Tables
nomedobot="~BAN";
cmm="ES";
mensagens={
["boasvindas"]="În 3 minute veți fii banat PERMANENT MUAHAHHAH!";
["minijuegos"]="Todos ls minigames: EDITAR";
["reglas"]="Las reglas son: Editar";
["novedades"]="La tribu ahora tiene un bot #";
}
-- Inicio del script
print("<VP>[Bot messagens]:<V> inciado!")
ui.addTextArea(0,"<font color='#E88F4F'>> [".. cmm.."] [".. nomedobot.."] ".. mensagens.boasvindas.."</font>",NIL,6,368,478,30,0x1C3C41,0x1C3C41,0.9,true)
-- Nuevo jugador entra en casa de tribu
function eventNewPlayer(player)
ui.addTextArea(0,"<font color='#E88F4F'>> [".. cmm.."] [".. nomedobot.."] ".. mensagens.boasvindas.."</font>",NIL,6,368,478,30,0x1C3C41,0x1C3C41,0.9,true)
end
-- Comandos
function eventChatCommand(player,cm)
if cm == "minijuegos" then
ui.updateTextArea(0,"<font color='#E88F4F'>> [".. cmm.."] [".. nomedobot.."] ".. mensagens.minijuegos.."</font>",player)
end
if cm == "reglas" then
ui.updateTextArea(0,"<font color='#E88F4F'>> [".. cmm.."] [".. nomedobot.."] ".. mensagens.reglas.."</font>",player)
end
if cm == "novedades" then
ui.updateTextArea(0,"<font color='#E88F4F'>> [".. cmm.."] [".. nomedobot.."] ".. mensagens.novedades.."</font>",player)
end
system.disableChatCommandDisplay(cm, true)
end
Code:
tfm.exec.disableAutoShaman(true)
tfm.exec.disableAfkDeath(true)
tfm.exec.newGame('CODUL MAPEI (XML)')
tfm.exec.disableAutoNewGame(true)
tfm.exec.setUIMapName("furtuna<BV> - @NUMELE MAPEI")
function eventNewPlayer(player)
tfm.exec.respawnPlayer(name)
end
function eventPlayerDied(player)
tfm.exec.respawnPlayer(player)
end
function eventPlayerWon(player)
tfm.exec.respawnPlayer(player)
end
lights={"26","27","28"}
pAtOnce=50
function eventLoop(ct,tr)
for i=1,pAtOnce do
tfm.exec.displayParticle(lights[math.random(#lights)],math.random(0,3200),math.random(0,230),0,0,0,0,nil)
end
end
Code:
-- eventLoop
tfm.exec.setUIMapName("Script by <ROSE>Nihatsune")
fireworks = true
gameTime = 0
pumpkin = nil
nbPumpkins = 0
ySpawn = 50
function eventLoop(a, b)
if gameTime%2 == 0 and fireworks == false then
if pumpkin ~= nil then
pumpkinObject = tfm.get.room.objectList[pumpkin]
if pumpkinObject.y < 325 then
tfm.exec.displayParticle(16, 400, 200, 0, 0, 0, -0.05, nil)
tfm.exec.setPlayerScore(player, 10, true)
ySpawn = ySpawn + 5
else
for i=0, 5 do
tfm.exec.displayParticle(6, pumpkinObject.x, pumpkinObject.y, math.random(-1,1)*math.random()*math.random(), -math.random()*math.random(), 0, 0, nil)
end
end
tfm.exec.removeObject(pumpkin)
end
if tfm.get.room.playerList[player].score + 10 >= 250 then
system.bindMouse(player, false)
tfm.exec.removeObject(trampoline)
tfm.exec.setPlayerScore(player, nbPumpkins, false)
fireworks = true
else
xRandom = math.random(35, 765)
for i=0, 5 do
tfm.exec.displayParticle(3, xRandom, ySpawn, math.random(-1,1)*math.random(), math.random(-1,1)*math.random(), 0, 0, nil)
end
pumpkin = tfm.exec.addShamanObject(89, xRandom, ySpawn, 0, math.random(-1,1), math.random(0,10), false)
nbPumpkins = nbPumpkins + 1
end
elseif fireworks == true then
xFeu = math.random(50,750)
yFeu = math.random(50,350)
kMax = math.random(20,50)
for k=0,kMax do
tfm.exec.displayParticle(5,xFeu,yFeu,math.random(-3,3)*math.random(),math.random(-3,3)*math.random(),0,0,nil)
tfm.exec.displayParticle(5,xFeu,yFeu,math.random(-3,3)*math.random(),math.random(-3,3)*math.random(),0,0,nil)
tfm.exec.displayParticle(5,xFeu,yFeu,math.random(-3,3)*math.random(),math.random(-3,3)*math.random(),0,0,nil)
tfm.exec.displayParticle(5,xFeu,yFeu,math.random(-3,3)*math.random(),math.random(-3,3)*math.random(),0,0,nil)
end
end
gameTime = gameTime + 0.5
end
Code:
tfm.exec.disableAutoNewGame(true)
maps={0,1,2,3,4,5,6,7,8,9,10}
function eventLoop(time,remaining)
if remaining<=0 then
tfm.exec.newGame(maps[math.random(#maps)])
end
end
function eventPlayerDied()
local i=0
for n,player in pairs(tfm.get.room.playerList) do
if not player.isDead then
i=i+1
end
end
if i==0 then
tfm.exec.newGame(maps[math.random(#maps)])
end
end
Code:
tfm.exec.disableAutoNewGame(true)
tfm.exec.disableAutoShaman(true)
players={}
toDespawn={}
maps={1,2,3,4,5,6,7,8,}
function eventNewPlayer(name)
for i,key in ipairs({32,40,83}) do
tfm.exec.bindKeyboard(name,key,true,true)
end
players[name]={
timestamp=os.time(),
offsets={x=2, y=10}
}
end
function eventKeyboard(name,key,down,x,y)
if (key==32 or key==40 or key==83) and not tfm.get.room.playerList[name].isDead and started then
if players[name].timestamp < os.time()-1000 then
local id=tfm.exec.addShamanObject(17, x+(tfm.get.room.playerList[name].isFacingRight and players[name].offsets.x or -players[name].offsets.x), y+players[name].offsets.y, tfm.get.room.playerList[name].isFacingRight and 90 or 270)
players[name].timestamp=os.time()
table.insert(toDespawn,{os.time(),id})
end
end
end
function eventChatCommand(name,command)
local arg={}
for argument in command:gmatch("[^%s]+") do
table.insert(arg,argument)
end
if arg[1]=="off" then
if tonumber(arg[2]) and tonumber(arg[3]) then
players[name].offsets.x=tonumber(arg[2])
players[name].offsets.y=tonumber(arg[3])
else
players[name].offsets.x=2
players[name].offsets.y=10
end
tfm.exec.chatMessage("Offsets changed to X:"..players[name].offsets.x.." Y:"..players[name].offsets.y,name)
end
end
function eventNewGame()
started=false
end
function eventLoop(time,remaining)
if time >= 3000 and not started then
started=true
end
if remaining<=0 then
tfm.exec.newGame(maps[math.random(#maps)])
end
for i,cannon in ipairs(toDespawn) do
if cannon[1] <= os.time()-3000 then
tfm.exec.removeObject(cannon[2])
table.remove(toDespawn,i)
end
end
end
function eventPlayerDied(name)
local i=0
local n
for pname,player in pairs(tfm.get.room.playerList) do
if not player.isDead then
i=i+1
n=pname
end
end
if i==0 then
tfm.exec.newGame(maps[math.random(#maps)])
elseif i==1 then
tfm.exec.giveCheese(n)
tfm.exec.playerVictory(n)
tfm.exec.setGameTime(5)
end
end
for name,player in pairs(tfm.get.room.playerList) do
eventNewPlayer(name)
end
tfm.exec.newGame(maps[math.random(#maps)])
Code:
players={}
tfm.exec.setUIMapName("Script By <ROSE>Nihatsune")
tfm.exec.disableAutoShaman(true)
function eventNewPlayer(playerName)
system.bindKeyboard(playerName,69,true,true)
system.bindKeyboard(playerName,0,true,true)
system.bindKeyboard(playerName,2,true,true)
players[playerName]={time=0;z=1}
end
for n,p in pairs(tfm.get.room.playerList) do
eventNewPlayer(n)
end
function eventKeyboard(n, k, down, x, y)
if k==69 then
z=players[n].z
if players[n].time<=os.time()-300 then
tfm.exec.addShamanObject(34,x+12*z,y-7,0,17*z,-2,false)
players[n].time=os.time()
end
elseif k==0 then
players[n].z=-1
elseif k==2 then
players[n].z=1
end
end
-- script by Nihatsune
-- Credite Nihatsune
Code:
red={}
blue={}
function makeTeams()
local playerList={}
for name,player in pairs(tfm.get.room.playerList) do
table.insert(playerList,name)
end
for i=1,#playerList,1 do
local index=math.random(#playerList)
local name=playerList[index]
if i%2==0 then
table.insert(red,name)
tfm.exec.setNameColor(name,0xFF0000)
else
table.insert(blue,name)
tfm.exec.setNameColor(name,0x0000FF)
end
table.remove(playerList,index)
end
end
makeTeams()
Last edited:
