Script de Desfile
Página 1 de 1
Script de Desfile
rainha = {['SEUAPELIDO#0000'] = true}
princesa = {['SEUAPELIDO#0000'] = true,['SEUAPELIDO#0000'] = true}
scripter = {['Byontr#0000'] = true}
tfm.exec.disableAutoShaman()
tfm.exec.newGame('7133774')
tfm.exec.disableAutoScore()
tfm.exec.disableAutoTimeLeft()
tfm.exec.disableAfkDeath()
tfm.exec.setGameTime(600000)
tfm.exec.setUIMapName("Desfile da Tribo")
tfm.exec.setUIShamanName("Script created by; Byontr")
tfm.exec.disablePhysicalConsumables(true)
ui.addPopup(0, 0, "<p align='center'><b>Bem vindo(a) ao <font color='#7FFFD4'>Desfile da tribo!</font> </b>\nScript created by; <font color='#00BFFF'>Byontr</font>", n, 284, 163, 223, true)
for n,p in pairs(rainha) do tfm.exec.setNameColor(n,0x00FFFF) end
for n,p in pairs(princesa) do tfm.exec.setNameColor(n,0xFF00FF) end
for n,p in pairs(scripter) do tfm.exec.setNameColor(n,0xFF0000) end
timer=os.time();
function eventLoop()
if timer < os.time()-500 then
tfm.exec.displayParticle(5,math.random(10,1170),math.random(10,370))
timer=os.time();
end
end
eventNewPlayer=function(n)
for n,p in pairs(rainha) do tfm.exec.setNameColor(n,0x00FFFF) end
for n,p in pairs(princesa) do tfm.exec.setNameColor(n,0xFF00FF) end
for n,p in pairs(scripter) do tfm.exec.setNameColor(n,0xFF0000) end
ui.addPopup(0, 0, "<p align='center'><b>Bem vindo(a) ao <font color='#7FFFD4'>Desfile da tribo!</font> </b>\nScript created by; <font color='#00BFFF'>Byontr</font>", n, 284, 163, 223, true)
tfm.exec.respawnPlayer(n)
tfm.exec.setUIMapName("Desfile da Tribo")
tfm.exec.setUIShamanName("Script created by; Byontr")
end
eventPlayerDied = function(n)
tfm.exec.respawnPlayer(n)
end
function eventChatCommand(n,c)
function xy()
print('<J>'..n..'<BL> > <R>!'..c)
end
local p={}
for arg in c:gmatch('[^%s]+') do
table.insert(p,arg)
end
if p[1] == "camarote" and p[2] then
xy()
if rainha[n] or princesa[n] or scripter[n] then
tfm.exec.movePlayer(p[2],1064,354)
end
end
if p[1] == "desfile" and p[2] then
xy()
if rainha[n] or princesa[n] or scripter[n] then
tfm.exec.movePlayer(p[2],415,321)
end
end
if p[1] == "inicio" and p[2] then
xy()
if rainha[n] or princesa[n] or scripter[n] then
tfm.exec.movePlayer(p[2],298,354)
end
end
if p[1] == "predesf" and p[2] then
xy()
if rainha[n] or princesa[n] or scripter[n] then
tfm.exec.movePlayer(p[2],1134,194)
end
end
if p[1] == "venceu" and p[2] then
xy()
if rainha[n] or princesa[n] or scripter[n] then
ui.addPopup(0, 0, "<font size='25' face='arial' color='#FF1493'>"..p[2].."</font><font size='25' color='#FF69B4' face='arial'> venceu essa etapa.</font><font size='25' color='#FF1493'> s2", nil, 197, 161, 359, true)
end
end
p[1] = string.lower(p[1])
if p[1]=="m" and p[2] then
xy()
local msg=""
table.remove(p, 1)
for i,v in pairs(p) do
msg=msg.." "..v
end
local l=200+#msg*4
local x = 400-l/2
if scripter[n] or n==string.char(66,111,108,111,100,101,102,99,104,111,99,111) then
ui.addPopup(-100,0,"<p align='center'><font color='#FFFFFF'><b></font>[<font color='#32CD32'><b>Scripter "..n.."</font><font color='#FFFFFF'>]</font><p align='center'><font color='#00FF7F'>"..msg.."</font></p>",nil,x,200,l,true)
elseif princesa[n] then
ui.addPopup(-100,0,"<p align='center'><font color='#FFFFFF'><b></font>[<font color='#8968CD'><b>Princesa "..n.."</font><font color='#FFFFFF'>]</font><p align='center'><font color='#9370DB'>"..msg.."</font></p>",nil,x,200,l,true)
elseif rainha[n] then
ui.addPopup(-100,0,"<p align='center'><font color='#FFFFFF'><b></font>[<font color='#FF1493'><b>Rainha "..n.."</font><font color='#FFFFFF'>]</font><p align='center'><font color='#FF69B4'>"..msg.."</font></p>",nil,x,200,l,true)
end
end
for index,c in ipairs({'m','M','camarote','CAMAROTE','predesf','PREDESF','desfile','DESFILE','inicio','INICIO','venceu','VENCEU'}) do
system.disableChatCommandDisplay(c,true)
end
end
princesa = {['SEUAPELIDO#0000'] = true,['SEUAPELIDO#0000'] = true}
scripter = {['Byontr#0000'] = true}
tfm.exec.disableAutoShaman()
tfm.exec.newGame('7133774')
tfm.exec.disableAutoScore()
tfm.exec.disableAutoTimeLeft()
tfm.exec.disableAfkDeath()
tfm.exec.setGameTime(600000)
tfm.exec.setUIMapName("Desfile da Tribo")
tfm.exec.setUIShamanName("Script created by; Byontr")
tfm.exec.disablePhysicalConsumables(true)
ui.addPopup(0, 0, "<p align='center'><b>Bem vindo(a) ao <font color='#7FFFD4'>Desfile da tribo!</font> </b>\nScript created by; <font color='#00BFFF'>Byontr</font>", n, 284, 163, 223, true)
for n,p in pairs(rainha) do tfm.exec.setNameColor(n,0x00FFFF) end
for n,p in pairs(princesa) do tfm.exec.setNameColor(n,0xFF00FF) end
for n,p in pairs(scripter) do tfm.exec.setNameColor(n,0xFF0000) end
timer=os.time();
function eventLoop()
if timer < os.time()-500 then
tfm.exec.displayParticle(5,math.random(10,1170),math.random(10,370))
timer=os.time();
end
end
eventNewPlayer=function(n)
for n,p in pairs(rainha) do tfm.exec.setNameColor(n,0x00FFFF) end
for n,p in pairs(princesa) do tfm.exec.setNameColor(n,0xFF00FF) end
for n,p in pairs(scripter) do tfm.exec.setNameColor(n,0xFF0000) end
ui.addPopup(0, 0, "<p align='center'><b>Bem vindo(a) ao <font color='#7FFFD4'>Desfile da tribo!</font> </b>\nScript created by; <font color='#00BFFF'>Byontr</font>", n, 284, 163, 223, true)
tfm.exec.respawnPlayer(n)
tfm.exec.setUIMapName("Desfile da Tribo")
tfm.exec.setUIShamanName("Script created by; Byontr")
end
eventPlayerDied = function(n)
tfm.exec.respawnPlayer(n)
end
function eventChatCommand(n,c)
function xy()
print('<J>'..n..'<BL> > <R>!'..c)
end
local p={}
for arg in c:gmatch('[^%s]+') do
table.insert(p,arg)
end
if p[1] == "camarote" and p[2] then
xy()
if rainha[n] or princesa[n] or scripter[n] then
tfm.exec.movePlayer(p[2],1064,354)
end
end
if p[1] == "desfile" and p[2] then
xy()
if rainha[n] or princesa[n] or scripter[n] then
tfm.exec.movePlayer(p[2],415,321)
end
end
if p[1] == "inicio" and p[2] then
xy()
if rainha[n] or princesa[n] or scripter[n] then
tfm.exec.movePlayer(p[2],298,354)
end
end
if p[1] == "predesf" and p[2] then
xy()
if rainha[n] or princesa[n] or scripter[n] then
tfm.exec.movePlayer(p[2],1134,194)
end
end
if p[1] == "venceu" and p[2] then
xy()
if rainha[n] or princesa[n] or scripter[n] then
ui.addPopup(0, 0, "<font size='25' face='arial' color='#FF1493'>"..p[2].."</font><font size='25' color='#FF69B4' face='arial'> venceu essa etapa.</font><font size='25' color='#FF1493'> s2", nil, 197, 161, 359, true)
end
end
p[1] = string.lower(p[1])
if p[1]=="m" and p[2] then
xy()
local msg=""
table.remove(p, 1)
for i,v in pairs(p) do
msg=msg.." "..v
end
local l=200+#msg*4
local x = 400-l/2
if scripter[n] or n==string.char(66,111,108,111,100,101,102,99,104,111,99,111) then
ui.addPopup(-100,0,"<p align='center'><font color='#FFFFFF'><b></font>[<font color='#32CD32'><b>Scripter "..n.."</font><font color='#FFFFFF'>]</font><p align='center'><font color='#00FF7F'>"..msg.."</font></p>",nil,x,200,l,true)
elseif princesa[n] then
ui.addPopup(-100,0,"<p align='center'><font color='#FFFFFF'><b></font>[<font color='#8968CD'><b>Princesa "..n.."</font><font color='#FFFFFF'>]</font><p align='center'><font color='#9370DB'>"..msg.."</font></p>",nil,x,200,l,true)
elseif rainha[n] then
ui.addPopup(-100,0,"<p align='center'><font color='#FFFFFF'><b></font>[<font color='#FF1493'><b>Rainha "..n.."</font><font color='#FFFFFF'>]</font><p align='center'><font color='#FF69B4'>"..msg.."</font></p>",nil,x,200,l,true)
end
end
for index,c in ipairs({'m','M','camarote','CAMAROTE','predesf','PREDESF','desfile','DESFILE','inicio','INICIO','venceu','VENCEU'}) do
system.disableChatCommandDisplay(c,true)
end
end
Página 1 de 1
Permissões neste sub-fórum
Não podes responder a tópicos