Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- system.disableChatCommandDisplay("m", true)
- system.disableChatCommandDisplay("clear", true)
- tfm.exec.disableAutoNewGame(true)
- tfm.exec.disableAutoShaman(true)
- tfm.exec.newGame("@4459589")
- version = "3.0"
- tfm.exec.setUIMapName("<VP>Швиндовс 1.0 rus <p")
- -- Tables para o EventLoop
- n = 0
- hora = false
- atualizar = false
- efeitos = false
- tempo = os.date("Hoje é %A, de %B")
- messeger = {""}
- msn = false
- --
- ui.addTextArea(700, "<B><R><a href='event:on'><font size='9'>O</a></B>", nil, 400, 293, 14, 14, 0, 0, 1.1);
- --
- COLOR = "<VP>"
- bordColor = 0x2ECF73
- function guiColor()
- if COLOR == "<VI>" then
- bordColor = 0xC53DFF
- end
- if COLOR == "<VP>" then
- bordColor = 0x2ECF73
- end
- if COLOR == "<N>" then
- bordColor = 0xC2C2DA
- end
- if COLOR == "<CH>" then
- bordColor = 0x98E2EB
- end
- if COLOR == "<ROSE>" then
- bordColor = 0xED67EA
- end
- if COLOR == "<J>" then
- bordColor = 0xFFFF00
- end
- if COLOR == "<R>" then
- bordColor = 0xCB546B
- end
- if COLOR == "<V>" then
- bordColor = 0x009D9D
- end
- end
- function areaTrabalho()
- ui.addTextArea(1, "<P align='center'>"..COLOR.."<font size='20'><b>Швиндовс</B></P><font size='13'>Что ты хочеть нажать?</font>", nil, 179, 75, 455, 208, 1, 1, 0.3);
- ui.addTextArea(2, "<a href='event:tfm'>ТФМ</a>", nil, 190, 150, 28, 20, 1, bordColor, 1.1);
- ui.addTextArea(3, "<a href='event:atualizar'>ОБН</a>", nil, 240, 150, 28, 20, 1, bordColor, 1.1);
- ui.addTextArea(4, "<a href='event:hora'>ВРМ</a>", nil, 290, 150, 28, 20, 1, bordColor, 1.1);
- ui.addTextArea(5, "<a href='event:cor'>ЦВТ</a>", nil, 340, 150, 30, 20, 1, bordColor, 1.1);
- ui.addTextArea(6, "<a href='event:status'>??? (Ошибка)</a>", nil, 390, 150, 30, 20, 1, bordColor, 1.1);
- ui.addTextArea(7, "<a href='event:mp3'>MP3</a>", nil, 440, 150, 30, 20, 1, bordColor, 1.1);
- ui.addTextArea(8, "<a href='event:efeitodetela'>SCR</a>", nil, 490, 150, 30, 20, 1, bordColor, 1.1);
- ui.addTextArea(9, "<a href='event:msn'>ОТД</a>", nil, 540, 150, 30, 20, 1, bordColor, 1.1);
- ui.addTextArea(10, "<a href='event:help'>ПОМ</a>", nil, 590, 150, 30, 20, 1, bordColor, 1.1);
- end
- function removeText()
- for i = 60, 1, -1 do
- ui.removeTextArea(i)
- end
- end
- function eventTextAreaCallback(textAreaId, playerName, callback)
- if (callback=="on") then
- ui.addTextArea(1, "<P align='center'>"..COLOR.."<b><font size='20'>Швиндовс</P></b><BR><font size='14'>O Включение Швиндовс завершенно успешно<BR>Внимение! Данным компьютером могут пользоваться все игроки находящиеся на локации!<BR><BR><a href='event:iniciar'>Старт</a>", nil, 179, 75, 455, 208, 1, 1, 0.3);
- end
- if(callback=="off") then
- atualizar = false
- ui.addTextArea(102, "<P align='center'>"..COLOR.."<font size='20'><b>Швиндовс</B></P><font size='13'>Вы хотите выйти?</font><BR><BR><BR><BR><font size='17'><a href='event:sim'>Да</a> <a href='event:iniciar'>Нет</a>", nil, 179, 75, 455, 208, 1, 1, 1.1);
- ui.addTextArea(700, "<B><R><a href='event:on'><font size='9'>O</a></B>", nil, 400, 293, 14, 14, 0, 0, 1.1);
- end
- if(callback=="sim") then
- ui.addTextArea(700, "<B><VP><a href='event:off'><font size='9'>O</a></B>", nil, 400, 293, 14, 14, 0, 0, 1.1);
- for i = 600, 1, -1 do
- ui.removeTextArea(i)
- end
- end
- if (callback=="help") then
- removeText()
- ui.addTextArea(102, "<P align='center'>"..COLOR.."<font size='20'><b>Швиндовс</B></P><font size='15'>(Ошибка)</font><BR><BR><font size='10'><B>ТФМ</B> - Transformice<BR><B>ATU</B> - Обнови свою операционную систему <BR><B>ВРЕ</B> - Дата и день<BR><B>ЦВЕ</B> - Выбрать цвет для Швиндовс<BR><B>STS</B> - (Ошибка!)<BR><B>MP3</B> - Поиск звука/видео<BR><B>ОТД</B> - Режим ожидания (Выполнение системных процессов...)<BR><B>СОБ</B> - Отправлять сообщения Используйте !m [text] для отправки сообщения, или используйте прокрутку чтобы увидеть сообщения (старые).<BR><a href='event:iniciar'>Назад</a>", nil, 179, 75, 455, 208, 1, 1, 0.3);
- end
- if (callback=="iniciar") then
- areaTrabalho()
- ui.removeTextArea(101)
- ui.removeTextArea(102)
- ui.removeTextArea(103)
- efeitos = false
- hora = false
- msn = false
- end
- if (callback=="tfm") then
- ui.addTextArea(101, "<P align='center'><font size='20'><b>Швиндовс - Ошибка</B></P><font size='13'>Ошибка связана с процессом Transformice.exe(C:/Program Files/ Transformice)<BR> Для работы процесса нужно:<BR>1. Освободить 15мб ОЗУ <BR>2. Освободите память для продолжения операции <BR>3. Перезагрузите компьютер <BR>Ошибка 1: Нет памяти.</font>", nil, 179, 75, 455, 208, 130, 130, 1);
- removeText()
- end
- if (callback=="msn") then
- removeText()
- ui.addTextArea(102, "<P align='center'>"..COLOR.."<font size='20'><b>Швиндовс</B></P><font size='13'>Сообщения</font><BR><BR><p aling='left'><font size='10'>"..messeger[1].."<BR><a href='event:iniciar'>Назад</a>", nil, 179, 75, 455, 208, 1, 1, 0.3);
- msn = true
- end
- if (callback=="atualizar") then
- atualizar = true
- removeText()
- end
- if(callback=="hora")then
- hora = true
- removeText()
- end
- if(callback=="cor")then
- removeText()
- ui.addTextArea(102, "<P align='center'>"..COLOR.."<font size='20'><b>Швиндовс</B></P><font size='13'>Выберите для Швиндовс цвет</font><BR><BR><font size='10'><BR><VP><a href='event:corverde'> ПО УМОЛЧАНИЮ</a><BR><VI><a href='event:corRoxo'>?</a><BR><N><a href='event:corbranca'>?</a><BR><CH><a href='event:corazul'>?</a><BR><ROSE><a href='event:corrosa'>?</a><BR><J><a href='event:coramarelo'>?</a><BR><R><a href='event:corvermelho'>?</a><BR><V><a href='event:corazul2'>?</a>", nil, 179, 75, 455, 208, 1, 1, 0.3);
- guiColor()
- end
- if(callback=="corverde")then
- COLOR = "<VP>"
- guiColor()
- areaTrabalho()
- ui.removeTextArea(101)
- ui.removeTextArea(102)
- end
- if(callback=="corRoxo")then
- COLOR = "<VI>"
- guiColor()
- areaTrabalho()
- ui.removeTextArea(101)
- ui.removeTextArea(102)
- end
- if(callback=="corbranca")then
- COLOR = "<N>"
- guiColor()
- areaTrabalho()
- ui.removeTextArea(101)
- ui.removeTextArea(102)
- end
- if(callback=="corazul")then
- COLOR = "<CH>"
- guiColor()
- areaTrabalho()
- ui.removeTextArea(101)
- ui.removeTextArea(102)
- end
- if(callback=="corrosa")then
- COLOR = "<ROSE>"
- guiColor()
- areaTrabalho()
- ui.removeTextArea(101)
- ui.removeTextArea(102)
- end
- if(callback=="coramarelo")then
- COLOR = "<J>"
- guiColor()
- areaTrabalho()
- ui.removeTextArea(101)
- ui.removeTextArea(102)
- end
- if(callback=="corvermelho")then
- COLOR = "<R>"
- guiColor()
- areaTrabalho()
- ui.removeTextArea(101)
- ui.removeTextArea(102)
- end
- if(callback=="corazul2")then
- COLOR = "<V>"
- guiColor()
- areaTrabalho()
- ui.removeTextArea(101)
- ui.removeTextArea(102)
- end
- if(callback=="status")then
- removeText()
- ui.addTextArea(102, "<P align='center'>"..COLOR.."<font size='20'><b>Швиндовс</B></P><font size='13'>Player Stats</font><BR><BR><font size='10'><B>Name:</B> "..playerName.."<BR><B>Tribe:</B> "..tfm.get.room.playerList[playerName].tribeName.."<BR><B>Cfm stats</B> : <A href='en.cheese.formice.com/mouse/"..playerName.."'>HERE</a><BR><BR><a href='event:iniciar'>Back</a>", nil, 179, 75, 455, 208, 1, 1, 0.3);
- end
- if(callback=="mp3")then
- removeText()
- ui.addPopup(0, 2, "Введи ссылку видео/музыки из видеохостинга YouTube", playerName, 303, 156, 200,20)
- ui.addTextArea(102, "<P align='center'>"..COLOR.."<font size='20'><b>Швиндовс</B></P><font size='15'>Найдите звук </font> <BR><BR><BR><BR><BR><BR><a href='event:iniciar'>Назад</a>", nil, 179, 75, 455, 208, 1, 1, 0.3);
- end
- if(callback=="efeitodetela")then
- ui.addTextArea(102, "<P align='center'>"..COLOR.."<font size='20'><b>Швиндовс</B></P><font size='15'>Режим Отдыха (Выполнение системных процессов)</font> <BR><BR><BR><BR><a href='event:iniciar'>Назад</a>", nil, 179, 75, 455, 208, 1, 1, 0.3);
- efeitos = true
- removeText()
- end
- end
- function eventPopupAnswer(popupId, playerName, answer)
- if popupId == 0 then
- ui.addTextArea(102, "<P align='center'>"..COLOR.."<font size='20'><b>Швиндовс</B></P><font size='15'>Найдите звук</font> <BR><BR><a href='beemp3s.org/index.php?q="..answer.."'>(Начало процесса):/ Поиск</a><BR><BR><a href='event:iniciar'>Назад</a>", nil, 179, 75, 455, 208, 1, 1, 0.3);
- end
- end
- function eventLoop()
- if atualizar == true then
- n = n+1
- ui.addTextArea(102, "<P align='center'>"..COLOR.."<font size='20'><b>Швиндовс</B></P><font size='13'>Обновление системных процессов</font><BR><BR><font size='17'>"..n.."%", nil, 179, 75, 455, 208, 1, 1, 0.3);
- end
- if n == 100 then
- ui.addTextArea(102, "<P align='center'>"..COLOR.."<font size='20'><b>Швиндовс</B></P><font size='13'>Обновление было произведенно успешно</font><BR><BR><font size='15'><a href='event:iniciar'>Назад</a>", nil, 179, 75, 455, 208, 1, 1, 0.3);
- atualizar = false
- n = 0
- end
- if hora == true then
- tempo = os.date("Hoje é %A, de %B")
- ui.addTextArea(102, "<P align='center'>"..COLOR.."<font size='20'><b>Швиндовс</B></P><font size='13'>Время</font><BR><BR><font size='17'>"..tempo.."<BR><BR><font size='15'><a href='event:iniciar'>Назад</a>", nil, 179, 75, 455, 208, 1, 1, 0.3);
- end
- if efeitos == true then
- for i=20,1,-1 do
- tfm.exec.displayParticle(math.random(0, 30), math.random(200,600), math.random(100,290),0,0,0,0,nil)
- end
- end
- end
- function eventChatCommand(playerName, message)
- if (message:sub(0,1) == [[m]]) then
- table.insert(messeger,1,messeger[1].."<b>["..playerName.."]</b> "..message:sub(3).."<BR>")
- end
- if msn == true then
- ui.addTextArea(102, "<P align='center'>"..COLOR.."<font size='20'><b>Швиндовс</B></P><font size='13'>Discord</font><BR><BR><p aling='left'><font size='10'>"..messeger[1].."<BR><a href='event:iniciar'>Назад</a>", nil, 179, 75, 455, 208, 1, 1, 0.3);
- end
- if (message=="clear") then
- for i = 5000,1,-1 do
- table.remove(messeger,1)
- table.insert(messeger,1,"")
- end
- end
- end
- guiColor()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement