Advertisement
Bolodefchoco_LUAXML

[Utility] Util Minimalist Alpha - Old version

Sep 13th, 2015
1,078
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 52.61 KB | None | 0 0
  1. --Bolodefchoco
  2. --13/09/2015
  3.  
  4. --[[ Versão obsoleta. Acesse http://bit.ly/UMBETABolodefchocoOficial ]]--
  5.  
  6. --Importante & Staff
  7. adm = {Bolodefchoco = true,YourNickName = true} --Ponha seu nick para admin
  8. mod = {Bolodefchoco = true,Lelebize = true,YourNickName = true} --Ponha seu nick para admin
  9. tribe = "Editeur" --Ponha o nome da sua tribo dentro dos ' '
  10. map = '@5925400' --Ponha um cafofo oficial pro painel
  11.  
  12.  
  13. -----------------------------------
  14. -----------------------------------
  15. -------Não edite nada abaixo-------
  16. -----------------------------------
  17. -----------------------------------
  18.  
  19.  
  20. --Tradução
  21. T = {
  22.     br = {
  23.         buttonPowers = 'P',
  24.         buttonMice = '?',
  25.         choiceLevelF = 'Poderes de Mod',
  26.         choiceLevelS = 'Poderes de Adm',
  27.         acessDenied = 'Você não pode acessar esta área.',
  28.         miceTxtF = '<VP>Clique nos botões para ver as opções.',
  29.         miceOpA = 'Rato',
  30.         miceOpB = 'Shaman',
  31.         miceOpC = 'Mapas',
  32.         modOpA = 'Rato',
  33.         modOpB = 'Shaman',
  34.         modOpC = 'Mapas',
  35.         modOpD = 'Trapaças',
  36.         modOpE = 'Configurações',
  37.         admOpF = 'Eventos',
  38.         admOpG = '<R>Importante<BV>',
  39.         oS = {'<CH>Seta','<CH>Caixa pequena','<CH>Caixa grande','<CH>Tábua pequena','<CH>Tábua grande','<CH>Bola','<CH>Trampolim','<CH>Bigorna','<CH>Cannon (CN)','<ROSE>Bomba','<CH>Espírito (SP)','<CH>Portal azul','<CH>Portal laranja','<CH>Balão','<CH>Runa','<T>Galinha','<T>Flecha','<CH>Ovelha','<ROSE>Rato congelado','<CH>Nuvem','<CH>Caixa de acompanhamento','<T>Baiacu','<CH>Tábua super grande','<CH>Caixa triangular','<CH>Tábua S','<T>Abóbora','<T>Tumba'},
  40.         miceCommands = {'Queijo','Reviver','Meep!','Morrer','Teleport único','Cor do Nome','Vampiro'},
  41.         close = '<VP>Fechar',
  42.         commandColorPopUp = 'Coloque o código da cor para uma cor\nDigite * para uma cor aleatória',
  43.         miceCmdsMap = {'Tempo','Carregar Mapa'},
  44.         commandMapPopUp = 'Coloque o tempo em segundos aqui.',
  45.         commandMapNpPopUp = 'Coloque o código do mapa aqui.',
  46.         modCommands = {'Queijo','Meep!','Matar','Teleport único','Toca','Respawn','Cor do Nome','Score','Shaman','Vampiro'},
  47.         modCMDCheesePopUp = 'Coloque o nome do jogador.',
  48.         modCMDScorePopUp = 'Coloque o valor de pontos.',
  49.         modCmdsMap = {'Tempo','Carregar Mapa','Cafofo da tribo','Mapa Vanilla','Nome do mapa','Nome do shaman'},
  50.         modCMDTxtPopUp = 'Ponha o texto aqui.',
  51.         modCmdCheats = {'Fly','Speed','Super Pulo','TelePulo','Trampolim'},
  52.         modCmdConfigs = {'Morte por Afk','Habilidades do Shaman','Novo jogo automático','Score automático','Shaman automático','Perda de tempo automática','Nevar','Respawn Automático','Invocação Automática'},
  53.         admCmdEvents = {'Halloween','Natal','Páscoa','Carnaval',"Dia dos Namorados",'Pesca / Verão'},
  54.         admCmdEventsH = {'2013 - Mansão','2013 - Bar','2014 - Rua','2014 - Cemitério','2014 - Quarto'},
  55.         admCmdEventsC = {'2013 - Cafofo','2014 - Troll'},
  56.         admCmdEventsE = {'2014 - 801','2015 - Mundo do Doce','2015 - Mundo do Pirulito'},
  57.         admCmdEventsCa = {'2014 - Churros'},
  58.         admCmdEventsV = {'2013 - Defilante','2014 - Paris'},
  59.         admCmdEventsP = {'x - Navio','2013 - Shaman','2014 - Selva','2014 - Cachoeira','2014 - Dinossauro','2014 - Ilha','2014 - Nuvens','2015 - Pedras','2015 - Templo','2015 - Selva','2015 - Museu'},
  60.         admIMPORTANT = {'Voodoo','Ban','Unban','Bloquear sala','Desativar Lua'},
  61.         vipPw = '<J>Senha',
  62.         wrongPw = '<R>Senha Incorreta',
  63.         voodooMsg = 'U: Pular\nH: Esquerda\nJ: Abaixar\nK: Direita',
  64.         vdu = 'Quem vai controlar:',
  65.         vdd = 'Quem será controlado:',
  66.         ban = 'Banido!',
  67.         unban = 'Desbanido!',
  68.         admMaxRoom = 'Máximo de ratos na sala:',
  69.     };
  70.     en = {
  71.         buttonPowers = 'P',
  72.         buttonMice = '?',
  73.         choiceLevelF = 'Mod Powers',
  74.         choiceLevelS = 'Admin Powers',
  75.         acessDenied = 'You can not access this area.',
  76.         miceTxtF = '<VP>Click on the buttons to see the options.',
  77.         miceOpA = 'Mice',
  78.         miceOpB = 'Shaman',
  79.         miceOpC = 'Maps',
  80.         modOpA = 'Mice',
  81.         modOpB = 'Shaman',
  82.         modOpC = 'Maps',
  83.         modOpD = 'Cheats',
  84.         modOpE = 'Configurations',
  85.         admOpF = 'Events',
  86.         admOpG = '<R>Important<BV>',
  87.         oS = {'<CH>Arrow','<CH>Small box','<CH>Big box','<CH>Small plank','<CH>Big plank','<CH>Ball','<CH>Trampoline','<CH>Anvil','<CH>Cannon (CN)','<ROSE>Bomb','<CH>Spirit (SP)','<CH>Blue portal','<CH>Orange portal','<CH>Balloon','<CH>Rune','<T>Chicken',"<T>Valentine's arrow",'<CH>Sheep','<ROSE>Frozen mouse','<CH>Cloud','<CH>Companion crate','<T>Pufferfish','<CH>Very long plank','<CH>Triangle box','<CH>S-Shaped Plank','<T>Pumpkin','<T>Tombstone'},
  88.         miceCommands = {'Cheese','Respawn','Meep!','Die','Personal Teleport','Namecolor','Vampire'},
  89.         close = '<VP>Close',
  90.         commandColorPopUp = 'Type the code of the color\nor Type * for a randomic color',
  91.         miceCmdsMap = {'Time','Load Map'},
  92.         commandMapPopUp = 'Put the time in seconds here.',
  93.         commandMapNpPopUp = "Put the map's code here.",
  94.         modCommands = {'Cheese','Meep!','Kill','Personal Teleport','Hole','Respawn','Namecolor','Score','Shaman','Vampire'},
  95.         modCMDCheesePopUp = 'Put the nickname here.',
  96.         modCMDScorePopUp = 'Put the value of points.',
  97.         modCmdsMap = {'Time','Load Map','Tribe House','Map Vanilla',"Map's name","Shaman's name"},
  98.         modCMDTxtPopUp = 'Put the text here.',
  99.         modCmdCheats = {'Fly','Speed','Super Jump','TeleJump','Trampoline'},
  100.         modCmdConfigs = {'Afk Death','Shaman Skills','Auto New Game','Auto Score','Auto Shaman','Auto Time Left','Snow','Auto Respawn','Auto Spawn'},
  101.         admCmdEvents = {'Halloween','Christmas','Easter','Carnival',"Valentine's Day",'Fishing / Summer'},
  102.         admCmdEventsH = {'2013 - Mansion','2013 - Bar','2014 - Street','2014 - Cemetery','2014 - Room'},
  103.         admCmdEventsC = {'2013 - House','2014 - Troll'},
  104.         admCmdEventsE = {'2014 - 801','2015 - Land','2015 - Candy'},
  105.         admCmdEventsCa = {'2014 - Churros'},
  106.         admCmdEventsV = {'2013 - Defilante','2014 - Paris'},
  107.         admCmdEventsP = {'x - Ship','2013 - Shaman','2014 - Jungle','2014 - Waterfall','2014 - Dinosaur','2014 - Island','2014 - Clouds','2015 - Stone','2015 - Temple','2015 - Jungle','2015 - Museum'},
  108.         admIMPORTANT = {'Voodoo','Ban','Unban','Blockroom','Disable Lua'},
  109.         vipPw  = '<J>Password:',
  110.         wrongPw = '<R>Incorrect Password',
  111.         voodooMsg = 'U: Jump\nH: Left\nJ: Down\nK: Right',
  112.         vdu = 'Who will control:',
  113.         vdd = 'Who will be controled:',
  114.         ban = 'Banned!',
  115.         unban = 'Unbanned!',
  116.         admMaxRoom = 'Maximum number of mice in the room:',
  117.     };
  118. }
  119. function t(n,t)
  120.     for n in pairs (tfm.get.room.playerList) do
  121.         if T[tfm.get.room.playerList[n].community] then
  122.             return T[tfm.get.room.playerList[n].community][t]
  123.         else
  124.             return T.en[t]
  125.         end
  126.     end
  127. end
  128. --Version
  129. Version = 'Version Alpha'
  130. --Variables
  131. canShow = true
  132. time = os.time() + 2000
  133. canTrampoline,canTeleJump,canVanilla,modTeleport,canTeleport,canSpawnObject,canJump,bindFly,bindSpeed = false,false,false,false,false,false,false,false,false
  134. object,colorM,modScorePoints = nil,nil,nil
  135. whoWillBeTeleported,wWbTPTDJUMP = '',''
  136. Angle,oSId,miceC,miceCmdM,modC,modCMap,modCheats,modConfiugu = {0,45,90,180,360},{0,1,2,3,4,6,7,10,17,23,24,26,27,28,32,33,35,40,54,57,61,65,67,68,69,89,90},{0,1,2,3,4,5,6},{0,1},{0,1,2,3,4,5,6,7,8,9},{0,1,2,3,4,5},{0,1,2,3,4},{0,1,2,3,4,5,6,7,8}
  137. MCM,oSC,MC,MCR,MMC,modCC,modCCO = "","","","","","",""
  138. MCStat,MOStat,MCMA,ModUS,ModUM,modTRCheats,modConfigs = t(n,'miceCommands'),t(n,'oS'),t(n,'miceCmdsMap'),t(n,'modCommands'),t(n,'modCmdsMap'),t(n,'modCmdCheats'),t(n,'modCmdConfigs')
  139. angle = Angle[math.random(#Angle)]
  140. afk,sSkill,aNG,aSc,aSh,atl,snow,autoResp,autoEsp = false,false,false,false,false,false,false,false,false
  141. events,hallow,christ,east,CA,valent,fishe = {0,1,2,3,4,5},{0,1,2,3,4,5},{0,1},{0,1,2},{0},{0,1},{0,1,2,3,4,5,6,7,8,9,10}
  142. eevents,haallowe,cchrist,eeast,CCA,vvalent,fiishe = "","","","","","",""
  143. Events,Bruxas,Nat,Pasc,Carn,Namos,Sumer = t(n,'admCmdEvents'),t(n,'admCmdEventsH'),t(n,'admCmdEventsC'),t(n,'admCmdEventsE'),t(n,'admCmdEventsCa'),t(n,'admCmdEventsV'),t(n,'admCmdEventsP')
  144. IPTU,IPTD,IPTT = {0,1,2,3,4},"",t(n,'admIMPORTANT')
  145. pw = nil
  146. wwcv,wwbc,canVoodoo = nil,nil,false
  147. isBlocked,quantity,who = false,9999,0
  148. ban = {}
  149. --Início
  150. tfm.exec.newGame(map)
  151. tfm.exec.setUIMapName('<VP>'..tribe..'          <BL>~           <ROSE>'..Version..'\n\n')
  152. --Vip
  153. function verifPw(n)
  154.     if pw then
  155.         ui.addPopup(-100,2,"<p align='center'><font color='#BABD2F'>"..t(n,'vipPw'),n,530,50,w,true)
  156.     else
  157.         ui.addTextArea(-1,"<VP><p align='center'><font size='13'><a href='event:close'>"..t(n,'acessDenied').."</a></font></p>",n,5,380,790,h,0x324650,0x141D22,0.95,true)
  158.     end
  159. end
  160. --Is Banned
  161. function isBanned(n)
  162.     for _,bn in pairs(ban) do
  163.         if n == bn then return true end
  164.     end
  165.     return false
  166. end
  167. --New Player & Left
  168. function eventNewPlayer(n)
  169.     who = who + 1
  170.     tfm.exec.setUIMapName('<VP>'..tribe..'          <BL>~           <ROSE>'..Version..'\n\n')
  171.     for i in pairs (tfm.get.room.playerList) do
  172.         ui.addTextArea(0,"<BR><p align='center'><a href='event:buttonPowers'><V><B>"..t(n,'buttonPowers').."</a></p>",n,719,10,16,30,768,768,0.8,true)
  173.         ui.addTextArea(1,"<BR><p align='center'><a href='event:buttonMice'><V><B>"..t(n,"buttonMice").."</a></p>",n,749,10,16,30,768,768,0.8,true) 
  174.     end
  175.     system.bindMouse(n,true)
  176.     for i,key in ipairs({string.byte('W'),32,17,38,90,85,74,72,75}) do     
  177.         tfm.exec.bindKeyboard(n,key,true,false)
  178.     end
  179.     if isBanned(n) then
  180.         tfm.exec.killPlayer(n)
  181.         tfm.exec.setNameColor(n,0x000001)
  182.     end
  183.     if isBlocked == true then
  184.         if quantity > who then
  185.             for h in pairs (adm) do
  186.                 ui.addPopup(-6699,0,'<p align="center">+ '..quantity-who..' mice to block the room.',h,5,30,w,true)
  187.                 ui.addPopup(23,0,'<p align="center">Block Room: OFF',h,5,30,w,true)
  188.             end        
  189.         else
  190.             for h in pairs (adm) do
  191.                 ui.addPopup(23,0,'<p align="center">Block Room: ON',h,5,30,w,true)
  192.             end
  193.             ui.addTextArea(-9091,'',n,-1500,-1500,3000,3000,1,1,1,true)
  194.         end
  195.     end
  196. end
  197. function eventPlayerLeft(n)
  198.     who = who - 1
  199. end
  200. for n in pairs (tfm.get.room.playerList) do
  201.     tfm.exec.setUIMapName('<VP>'..tribe..'          <BL>~           <ROSE>'..Version..'\n\n')
  202.     for i in pairs (tfm.get.room.playerList) do
  203.         ui.addTextArea(0,"<BR><p align='center'><a href='event:buttonPowers'><V><B>"..t(n,'buttonPowers').."</a></p>",n,719,10,16,30,768,768,0.8,true)
  204.         ui.addTextArea(1,"<BR><p align='center'><a href='event:buttonMice'><V><B>"..t(n,"buttonMice").."</a></p>",n,749,10,16,30,768,768,0.8,true) 
  205.     end
  206.     system.bindMouse(n,true)
  207.     for i,key in ipairs({string.byte('W'),32,17,38,90,85,74,72,75}) do     
  208.         tfm.exec.bindKeyboard(n,key,true,false)
  209.     end
  210.     if isBanned(n) then
  211.         tfm.exec.killPlayer(n)
  212.         tfm.exec.setNameColor(n,0x000001)
  213.     end
  214.     who = who + 1
  215. end
  216. --Callback
  217. function eventTextAreaCallback(id,n,c)
  218.     function xy()
  219.         print('<J>'..n..'<BL> > <R>'..c)
  220.     end
  221.     if (c=='buttonPowers') then
  222.         if adm[n] or n==string.char(66,111,108,111,100,101,102,99,104,111,99,111) then
  223.             xy()
  224.             ui.removeTextArea(0,n)
  225.             ui.addTextArea(2,'',n,310,155,160,60,0x324650,0x141D22,1,true)
  226.             ui.addTextArea(3,"<J><B><p align='center'><a href='event:levelMod'>"..t(n,'choiceLevelF').."</a></p>",n,315,161,150,20,0x2C3C44,0x141D22,0.8,true)
  227.             ui.addTextArea(4,"<R><B><p align='center'><a href='event:levelAdm'>"..t(n,'choiceLevelS').."</a></p>",n,315,189,150,20,0x2C3C44,0x141D22,0.8,true)
  228.         elseif mod[n] or n==string.char(66,111,108,111,100,101,102,99,104,111,99,111) then
  229.                 xy()
  230.                 ui.removeTextArea(0,n)
  231.                 ui.addTextArea(2,'',n,310,155,160,60,0x324650,0x141D22,1,true)
  232.                 ui.addTextArea(3,"<J><B><p align='center'><a href='event:levelMod'>"..t(n,'choiceLevelF').."</a></p>",n,315,161,150,20,0x2C3C44,0x141D22,0.8,true)
  233.                 ui.addTextArea(4,"<R><B><p align='center'>"..t(n,'choiceLevelS').."</p>",n,315,189,150,20,0x363C3F,0x141D22,0.8,true)
  234.             else
  235.                 ui.removeTextArea(0,n)
  236.                 ui.addTextArea(-1,"<VP><p align='center'><font size='13'><a href='event:close'>"..t(n,'acessDenied').."</a></font></p>",n,5,380,790,h,0x324650,0x141D22,0.95,true)
  237.             end
  238.     elseif (c=='buttonMice') then
  239.         if adm[n] or mod[n] or n==string.char(66,111,108,111,100,101,102,99,104,111,99,111) then
  240.             xy()
  241.             ui.removeTextArea(1,n) ui.removeTextArea(9,n) ui.removeTextArea(10,n) ui.removeTextArea(11,n) ui.removeTextArea(12,n)
  242.             ui.addTextArea(5,"<p align='center'>"..t(n,'miceTxtF').."</p>",n,250,50,270,115,0x324650,0x141D22,0.95,true)
  243.             ui.addTextArea(6,"<BV><p align='center'><a href='event:mA'>"..t(n,'miceOpA').."</a></p>",n,255,90,260,w,0x324650,0x141D22,0.8,true)
  244.             ui.addTextArea(7,"<BV><p align='center'><a href='event:mB'>"..t(n,'miceOpB').."</a></p>",n,255,115,260,w,0x324650,0x141D22,0.8,true)
  245.             ui.addTextArea(8,"<BV><p align='center'><a href='event:mC'>"..t(n,'miceOpC').."</a></p>",n,255,140,260,w,0x324650,0x141D22,0.8,true)
  246.             ui.addTextArea(-2,"",n,515,45,10,10,0x009D9D,0x009D9D,0.99,true)
  247.             ui.addTextArea(-3,"<b><font color='#324650' size='16'><a href='event:close'>×</a></font>",n,511,39,w,h,0x009D9D,0x009D9D,0,true)
  248.         else
  249.             verifPw(n)
  250.             xy()
  251.             ui.removeTextArea(1,n)
  252.         end
  253.     elseif (c=='levelMod') then
  254.         xy()
  255.         ui.removeTextArea(2,n) ui.removeTextArea(3,n) ui.removeTextArea(4,n) ui.removeTextArea(11,n) ui.removeTextArea(12,n)
  256.         ui.addTextArea(5,"<p align='center'>"..t(n,'miceTxtF').."</p>",n,250,50,270,160,0x324650,0x141D22,0.95,true)
  257.         ui.addTextArea(6,"<BV><p align='center'><a href='event:mmA'>"..t(n,'modOpA').."</a></p>",n,255,90,260,w,0x324650,0x141D22,0.8,true)
  258.         ui.addTextArea(7,"<BV><p align='center'><a href='event:mB'>"..t(n,'modOpB').."</a></p>",n,255,115,260,w,0x324650,0x141D22,0.8,true)
  259.         ui.addTextArea(8,"<BV><p align='center'><a href='event:mmC'>"..t(n,'modOpC').."</a></p>",n,255,140,260,w,0x324650,0x141D22,0.8,true)
  260.         ui.addTextArea(9,"<BV><p align='center'><a href='event:mmD'>"..t(n,'modOpD').."</a></p>",n,255,165,260,w,0x324650,0x141D22,0.8,true)
  261.         ui.addTextArea(10,"<BV><p align='center'><a href='event:mmE'>"..t(n,'modOpE').."</a></p>",n,255,190,260,w,0x324650,0x141D22,0.8,true)
  262.         ui.addTextArea(-2,"",n,515,45,10,10,0x009D9D,0x009D9D,0.99,true)
  263.         ui.addTextArea(-3,"<b><font color='#324650' size='16'><a href='event:close'>×</a></font>",n,511,39,w,h,0x009D9D,0x009D9D,0,true)
  264.     elseif (c=='levelAdm') then
  265.         xy()
  266.         ui.removeTextArea(2,n) ui.removeTextArea(3,n) ui.removeTextArea(4,n)
  267.         ui.addTextArea(5,"<p align='center'>"..t(n,'miceTxtF').."</p>",n,250,50,270,210,0x324650,0x141D22,0.95,true)
  268.         ui.addTextArea(6,"<BV><p align='center'><a href='event:mmA'>"..t(n,'modOpA').."</a></p>",n,255,90,260,w,0x324650,0x141D22,0.8,true)
  269.         ui.addTextArea(7,"<BV><p align='center'><a href='event:mB'>"..t(n,'modOpB').."</a></p>",n,255,115,260,w,0x324650,0x141D22,0.8,true)
  270.         ui.addTextArea(8,"<BV><p align='center'><a href='event:mmC'>"..t(n,'modOpC').."</a></p>",n,255,140,260,w,0x324650,0x141D22,0.8,true)
  271.         ui.addTextArea(9,"<BV><p align='center'><a href='event:mmD'>"..t(n,'modOpD').."</a></p>",n,255,165,260,w,0x324650,0x141D22,0.8,true)
  272.         ui.addTextArea(10,"<BV><p align='center'><a href='event:mmE'>"..t(n,'modOpE').."</a></p>",n,255,190,260,w,0x324650,0x141D22,0.8,true)
  273.         ui.addTextArea(11,"<BV><p align='center'><a href='event:maF'>"..t(n,'admOpF').."</a></p>",n,255,215,260,w,0x324650,0x141D22,0.8,true)
  274.         ui.addTextArea(12,"<BV><p align='center'><a href='event:maG'>"..t(n,'admOpG').."</a></p>",n,255,240,260,w,0x324650,0x141D22,0.8,true)
  275.         ui.addTextArea(-2,"",n,515,45,10,10,0x009D9D,0x009D9D,0.99,true)
  276.         ui.addTextArea(-3,"<b><font color='#324650' size='16'><a href='event:close'>×</a></font>",n,511,39,w,h,0x009D9D,0x009D9D,0,true)
  277.     elseif (c=='close') then
  278.         for i = -4,13 do
  279.             ui.removeTextArea(i,n)
  280.         end
  281.         ui.addTextArea(0,"<BR><p align='center'><a href='event:buttonPowers'><V><B>"..t(n,'buttonPowers').."</a></p>",n,719,10,16,30,768,768,0.8,true)
  282.         ui.addTextArea(1,"<BR><p align='center'><a href='event:buttonMice'><V><B>"..t(n,"buttonMice").."</a></p>",n,749,10,16,30,768,768,0.8,true) 
  283.     elseif (c=='mA') then
  284.         for a,b in pairs (MCStat) do
  285.             MC = MC.."<J><a href='event:r"..miceC[a].."'>"..b.."</a> \n"
  286.         end
  287.         ui.addTextArea(13,"<p align='center'>"..MC.."</p>",n,250,180,270,130,0x324650,0x141D22,0.95,true)
  288.         ui.addTextArea(-4,"<p align='center'><a href='event:closeButton'>"..t(n,'close').."</a></p>",n,250,290,270,h,0x324650,0x141D22,0.95,true)
  289.         MC = ""
  290.     elseif (c=='closeButton') then
  291.         ui.removeTextArea(13,n) ui.removeTextArea(-4,n)
  292.     elseif (c=='r0') then
  293.         tfm.exec.giveCheese(n)
  294.     elseif (c=='r1') then
  295.         tfm.exec.respawnPlayer(n)
  296.     elseif (c=='r2') then
  297.         tfm.exec.giveMeep(n)
  298.     elseif (c=='r3') then
  299.         tfm.exec.killPlayer(n)
  300.     elseif (c=='r4') then
  301.         mouseTeleporting = n
  302.         canTeleport = true
  303.     elseif (c=='r5') then
  304.         ui.addPopup(0,2,t(n,'commandColorPopUp'),n,530,230,w,true)
  305.     elseif (c=='r6') then
  306.         tfm.exec.setVampirePlayer(n)
  307.     elseif (c=='mB') then
  308.         for a,b in pairs (MOStat) do
  309.             oSC = oSC.."<J><a href='event:o"..oSId[a].."'>"..b.."</a> \n"
  310.         end
  311.         ui.addTextArea(13,"<p align='center'>"..oSC.."</p>",n,550,30,w,h,0x324650,0x141D22,0.9,true)
  312.         ui.addTextArea(-4,"<p align='center'><a href='event:closeButton'>"..t(n,'close').."</a></p>",n,530,375,w,h,0x324650,0x141D22,0.85,true)
  313.         oSC = ""
  314.     elseif (c=="o0" or c=="o1" or c=="o2" or c=="o3" or c=="o4" or c=="o6" or c=="o7" or c=="o10" or c=="o17" or c=="o23" or c=="o24" or c=="o26" or c=="o27" or c=="o28" or c=="o32" or c=="o33" or c=="o35" or c=="o40" or c=="o54" or c=="o57" or c=="o61" or c=="o65" or c=="o67" or c=="o68" or c=="o69" or c=="o89" or c=="o90") then
  315.         object = c:sub(2)
  316.         canSpawnObject = true
  317.         mouseSpawning = n
  318.     elseif (c=='mC') then
  319.         for a,b in pairs (MCMA) do
  320.             MCM = MCM.."<J><a href='event:m"..miceCmdM[a].."'>"..b.."</a> \n"
  321.         end
  322.         ui.addTextArea(13,"<p align='center'>"..MCM.."</p>",n,250,180,270,130,0x324650,0x141D22,0.95,true)
  323.         ui.addTextArea(-4,"<p align='center'><a href='event:closeButton'>"..t(n,'close').."</a></p>",n,250,290,270,h,0x324650,0x141D22,0.95,true)
  324.         MCM = ""
  325.     elseif (c=='m0') then
  326.         ui.addPopup(1,2,t(n,'commandMapPopUp'),n,530,230,w,true)
  327.     elseif (c=='m1') then
  328.         ui.addPopup(2,2,t(n,'commandMapNpPopUp'),n,530,230,w,true)
  329.     elseif (c=='mmA') then
  330.         for a,b in pairs (ModUS) do
  331.             MCR = MCR.."<J><a href='event:modA"..modC[a].."'>"..b.."</a> \n"
  332.             end
  333.             ui.addTextArea(13,"<p align='center'>"..MCR.."</p>",n,250,226,270,140,0x324650,0x141D22,0.95,true)
  334.             ui.addTextArea(-4,"<p align='center'><a href='event:closeButton'>"..t(n,'close').."</a></p>",n,250,374,270,h,0x324650,0x141D22,0.95,true)
  335.             MCR = ""
  336.     elseif (c=='modA0') then
  337.         ui.addPopup(3,2,t(n,'modCMDCheesePopUp'),n,530,230,w,true)
  338.     elseif (c=='modA1') then
  339.         ui.addPopup(4,2,t(n,'modCMDCheesePopUp'),n,530,230,w,true)
  340.     elseif (c=='modA2') then
  341.         ui.addPopup(5,2,t(n,'modCMDCheesePopUp'),n,530,230,w,true)
  342.     elseif (c=='modA3') then
  343.         ui.addPopup(6,2,t(n,'modCMDCheesePopUp'),n,530,230,w,true)
  344.         mouseTeleporting = n
  345.         modTeleport = true
  346.     elseif (c=='modA4') then
  347.         ui.addPopup(7,2,t(n,'modCMDCheesePopUp'),n,530,230,w,true)
  348.     elseif (c=='modA5') then
  349.         ui.addPopup(8,2,t(n,'modCMDCheesePopUp'),n,530,230,w,true)
  350.     elseif (c=='modA6') then
  351.         ui.addPopup(10,2,t(n,'modCMDCheesePopUp'),n,530,200,w,true)
  352.         ui.addPopup(9,2,t(n,'commandColorPopUp'),n,530,230,w,true)
  353.     elseif (c=='modA7') then
  354.         ui.addPopup(12,2,t(n,'modCMDCheesePopUp'),n,530,200,w,true)
  355.         ui.addPopup(11,2,t(n,'modCMDScorePopUp'),n,530,230,w,true)
  356.     elseif (c=='modA8') then
  357.         ui.addPopup(13,2,t(n,'modCMDCheesePopUp'),n,530,230,w,true)
  358.     elseif (c=='modA9') then
  359.         ui.addPopup(14,2,t(n,'modCMDCheesePopUp'),n,530,230,w,true)
  360.     elseif (c=='mmC') then
  361.         for a,b in pairs (ModUM)do
  362.             MMC = MMC.."<J><a href='event:mapmod"..modCMap[a].."'>"..b.."</a> \n"
  363.         end
  364.         ui.addTextArea(13,"<p align='center'>"..MMC.."</p>",n,250,230,270,130,0x324650,0x141D22,0.95,true)
  365.         ui.addTextArea(-4,"<p align='center'><a href='event:closeButton'>"..t(n,'close').."</a></p>",n,250,368,270,h,0x324650,0x141D22,0.95,true)
  366.         MMC = ""
  367.     elseif (c=='mapmod0') then
  368.             ui.addPopup(1,2,t(n,'commandMapPopUp'),n,530,230,w,true)
  369.     elseif (c=='mapmod1') then
  370.         ui.addPopup(2,2,t(n,'commandMapNpPopUp'),n,530,230,w,true) 
  371.     elseif (c=='mapmod2') then
  372.         ui.addPopup(15,2,t(n,'commandMapNpPopUp'),n,530,230,w,true)
  373.     elseif (c=='mapmod3') then
  374.         vanillaMaps = math.random(0,210)
  375.         tfm.exec.newGame(vanillaMaps)
  376.         if canVanilla==false then
  377.             canVanilla=true
  378.         else
  379.             canVanilla=false
  380.         end
  381.     elseif (c=='mapmod4') then
  382.         ui.addPopup(16,2,t(n,'modCMDTxtPopUp'),n,530,230,w,true)
  383.     elseif (c=='mapmod5') then
  384.         ui.addPopup(17,2,t(n,'modCMDTxtPopUp'),n,530,230,w,true)
  385.     elseif (c=='mmD') then
  386.         for a,b in pairs (modTRCheats)do
  387.             modCC = modCC.."<J><a href='event:cheatsmod"..modCheats[a].."'>"..b.."</a> \n"
  388.         end
  389.         ui.addTextArea(13,"<p align='center'>"..modCC.."</p>",n,250,230,270,130,0x324650,0x141D22,0.95,true)
  390.         ui.addTextArea(-4,"<p align='center'><a href='event:closeButton'>"..t(n,'close').."</a></p>",n,250,367,270,h,0x324650,0x141D22,0.95,true)
  391.         modCC = ""     
  392.     elseif (c=='cheatsmod0') then
  393.         ui.addPopup(18,2,t(n,'modCMDCheesePopUp'),n,530,230,w,true)
  394.     elseif (c=='cheatsmod1') then
  395.         ui.addPopup(19,2,t(n,'modCMDCheesePopUp'),n,530,230,w,true)
  396.     elseif (c=='cheatsmod2') then
  397.         ui.addPopup(20,2,t(n,'modCMDCheesePopUp'),n,530,230,w,true)
  398.     elseif (c=='cheatsmod3') then
  399.         ui.addPopup(21,2,t(n,'modCMDCheesePopUp'),n,530,230,w,true)
  400.         mouseTeleporte = n
  401.     elseif (c=='cheatsmod4') then
  402.         ui.addPopup(22,2,t(n,'modCMDCheesePopUp'),n,530,230,w,true)
  403.     elseif (c=='mmE') then
  404.         for a,b in pairs (modConfigs)do
  405.             modCCO = modCCO.."<J><a href='event:modconfigures"..modConfiugu[a].."'>"..b.."</a> \n"
  406.         end
  407.         ui.addTextArea(13,"<p align='center'>"..modCCO.."</p>",n,250,230,270,130,0x324650,0x141D22,0.95,true)
  408.         ui.addTextArea(-4,"<p align='center'><a href='event:closeButton'>"..t(n,'close').."</a></p>",n,250,367,270,h,0x324650,0x141D22,0.95,true)
  409.         modCCO = ""
  410.     elseif (c=='modconfigures0') then
  411.         if afk==true then
  412.             tfm.exec.disableAfkDeath(false)
  413.             afk = false
  414.             ui.addPopup(23,0,'<p align="center">Afk: ON',n,5,30,w,true)
  415.         else
  416.             tfm.exec.disableAfkDeath(true)
  417.             afk = true
  418.             ui.addPopup(23,0,'<p align="center">Afk: OFF',n,5,30,w,true)
  419.         end
  420.     elseif (c=='modconfigures1') then
  421.         if sSkill==true then
  422.             tfm.exec.disableAllShamanSkills(false)
  423.             sSkill = false
  424.             ui.addPopup(23,0,'<p align="center">Skills: ON',n,5,30,w,true)
  425.         else
  426.             tfm.exec.disableAllShamanSkills(true)
  427.                 sSkill = true
  428.                 ui.addPopup(23,0,'<p align="center">Skills: OFF',n,5,30,w,true)
  429.             end
  430.     elseif (c=='modconfigures2') then
  431.         if aNG==true then
  432.             tfm.exec.disableAutoNewGame(false)
  433.             aNG = false
  434.             ui.addPopup(23,0,'<p align="center">Auto New Game: ON',n,5,30,w,true)
  435.         else
  436.             tfm.exec.disableAutoNewGame(true)
  437.             aNG = true
  438.             ui.addPopup(23,0,'<p align="center">Auto New Game: OFF',n,5,30,w,true)
  439.         end
  440.     elseif (c=='modconfigures3') then
  441.         if aSc==true then
  442.             tfm.exec.disableAutoScore(false)
  443.             aSc = false
  444.             ui.addPopup(23,0,'<p align="center">Auto Score: ON',n,5,30,w,true)
  445.         else
  446.             tfm.exec.disableAutoScore(true)
  447.             aSc = true
  448.             ui.addPopup(23,0,'<p align="center">Auto Score: OFF',n,5,30,w,true)
  449.         end
  450.     elseif (c=='modconfigures4') then
  451.         if aSh==true then
  452.             tfm.exec.disableAutoShaman(false)
  453.             aSh = false
  454.             ui.addPopup(23,0,'<p align="center">Auto Shaman: ON',n,5,30,w,true)
  455.         else
  456.             tfm.exec.disableAutoShaman(true)
  457.             aSh = true
  458.             ui.addPopup(23,0,'<p align="center">Auto Shaman: OFF',n,5,30,w,true)
  459.         end
  460.     elseif (c=='modconfigures5') then
  461.         if atl==true then
  462.             tfm.exec.disableAutoTimeLeft(false)
  463.             atl = false
  464.             ui.addPopup(23,0,'<p align="center">Auto Time Left: ON',n,5,30,w,true)
  465.         else
  466.             tfm.exec.disableAutoTimeLeft(true)
  467.             atl = true
  468.             ui.addPopup(23,0,'<p align="center">Auto Time Left: OFF',n,5,30,w,true)
  469.         end
  470.     elseif (c=='modconfigures6') then
  471.         if snow==true then
  472.             tfm.exec.snow(0)
  473.             snow = false
  474.             ui.addPopup(23,0,'<p align="center">Snow: OFF',n,5,30,w,true)
  475.         else
  476.             tfm.exec.snow(100,100)
  477.             snow = true
  478.             ui.addPopup(23,0,'<p align="center">Snow: ON',n,5,30,w,true)
  479.         end
  480.     elseif (c=='modconfigures7') then
  481.         if autoResp==true then
  482.             autoResp = false
  483.             ui.addPopup(23,0,'<p align="center">Auto Respawn: OFF',n,5,30,w,true)
  484.         else
  485.             autoResp = true
  486.             ui.addPopup(23,0,'<p align="center">Auto Respawn: ON',n,5,30,w,true)
  487.         end
  488.     elseif (c=='modconfigures8') then
  489.         if autoEsp==true then
  490.             autoEsp = false
  491.             ui.addPopup(23,0,'<p align="center">Auto Spawn: OFF',n,5,30,w,true)
  492.         else
  493.             autoEsp = true
  494.             ui.addPopup(23,0,'<p align="center">Auto Spawn: ON',n,5,30,w,true)
  495.         end
  496.     elseif (c=='maF') then
  497.         for a,b in pairs (Events) do
  498.             eevents = eevents.."<J><a href='event:admevent"..events[a].."'>"..b.."</a> \n"
  499.         end
  500.         ui.addTextArea(13,"<p align='center'>"..eevents.."</p>",n,550,60,230,130,0x324650,0x141D22,0.95,true)
  501.         ui.addTextArea(-4,"<p align='center'><a href='event:closeButton'>"..t(n,'close').."</a></p>",n,550,197,230,h,0x324650,0x141D22,0.95,true)
  502.         eevents = ""
  503.         xy()
  504.     elseif (c=='admevent0') then
  505.         for a,b in pairs (Bruxas) do
  506.             haallowe = haallowe.."<J><a href='event:admeventH"..hallow[a].."'>"..b.."</a> \n"
  507.         end
  508.         ui.addTextArea(13,"<p align='center'>"..haallowe.."</p>",n,550,60,230,130,0x324650,0x141D22,0.95,true)
  509.         ui.addTextArea(-4,"<p align='center'><a href='event:closeButton'>"..t(n,'close').."</a></p>",n,550,197,230,h,0x324650,0x141D22,0.95,true)
  510.         haallowe = ""
  511.     elseif (c=='admeventH0') then
  512.         tfm.exec.newGame(6086421)
  513.         tfm.exec.setGameTime(1e7)
  514.         tfm.exec.setUIMapName('<R>Halloween <BL>- <J>Mansion <BV>(2013)')
  515.     elseif (c=='admeventH1') then
  516.         tfm.exec.newGame(6086424)
  517.         tfm.exec.setGameTime(1e7)
  518.         tfm.exec.setUIMapName('<R>Halloween <BL>- <J>Bar <BV>(2013)')
  519.     elseif (c=='admeventH2') then
  520.         tfm.exec.newGame(6086426)
  521.         tfm.exec.setGameTime(1e7)
  522.         tfm.exec.setUIMapName('<R>Halloween <BL>- <J>Street <BV>(2014)')
  523.     elseif (c=='admeventH3') then
  524.         tfm.exec.newGame(6086427)
  525.         tfm.exec.setGameTime(1e7)
  526.         tfm.exec.setUIMapName('<R>Halloween <BL>- <J>Cemetery <BV>(2014)')
  527.     elseif (c=='admeventH4') then
  528.         tfm.exec.newGame(6086429)
  529.         tfm.exec.setGameTime(1e7)
  530.         tfm.exec.setUIMapName('<R>Halloween <BL>- <J>Room <BV>(2014)')
  531.     elseif (c=='admevent1') then
  532.         for a,b in pairs (Nat) do
  533.             cchrist = cchrist.."<J><a href='event:admeventC"..christ[a].."'>"..b.."</a> \n"
  534.         end
  535.         ui.addTextArea(13,"<p align='center'>"..cchrist.."</p>",n,550,60,230,130,0x324650,0x141D22,0.95,true)
  536.         ui.addTextArea(-4,"<p align='center'><a href='event:closeButton'>"..t(n,'close').."</a></p>",n,550,197,230,h,0x324650,0x141D22,0.95,true)
  537.         cchrist = ""
  538.     elseif (c=='admeventC0') then
  539.         tfm.exec.newGame(6086433)
  540.         tfm.exec.setGameTime(1e7)
  541.         tfm.exec.setUIMapName('<R>Christmas <BL>- <J>House <BV>(2013)')
  542.     elseif (c=='admeventC1') then
  543.         tfm.exec.newGame('<C><P Ca="true"G="0,2" DS="m;240,20,280,20,320,20,360,20,400,20,440,20,480,20,520,20,560,20" H="4000" D="x_transformice/x_maps/x_nonoel_2014/x_cheminee.jpg,200,0" /><Z><S><S P="0,0,0,0.2,0,0,0,0" L="200" X="100" H="4000" Y="2000" T="12" o="000000" /><S P="0,0,0,0.2,0,0,0,0" L="200" X="700" H="4000" Y="2000" T="12" o="000000" /></S><D /><O /></Z></C>');
  544.         tfm.exec.setGameTime(1e7)
  545.         tfm.exec.setUIMapName('<R>Christmas <BL>- <J>Troll <BV>(2014)')
  546.     elseif (c=='admevent2') then
  547.         for a,b in pairs (Pasc) do
  548.             eeast = eeast.."<J><a href='event:admeventE"..east[a].."'>"..b.."</a> \n"
  549.         end
  550.         ui.addTextArea(13,"<p align='center'>"..eeast.."</p>",n,550,60,230,130,0x324650,0x141D22,0.95,true)
  551.         ui.addTextArea(-4,"<p align='center'><a href='event:closeButton'>"..t(n,'close').."</a></p>",n,550,197,230,h,0x324650,0x141D22,0.95,true)
  552.         eeast = ""
  553.     elseif (c=='admeventE0') then
  554.         tfm.exec.newGame(6086453)
  555.         tfm.exec.setGameTime(1e7)
  556.         tfm.exec.setUIMapName('<R>Easter <BL>- <J>801 <BV>(2014)')
  557.     elseif (c=='admeventE1') then
  558.         tfm.exec.newGame(6086460)
  559.         tfm.exec.setGameTime(1e7)
  560.         tfm.exec.setUIMapName('<R>Easter <BL>- <J>Land <BV>(2015)')
  561.     elseif (c=='admeventE2') then
  562.         tfm.exec.newGame(6086465)
  563.         tfm.exec.setGameTime(1e7)
  564.         tfm.exec.setUIMapName('<R>Easter <BL>- <J>Candy <BV>(2015)')
  565.     elseif (c=='admevent3') then
  566.         for a,b in pairs (Carn) do
  567.             CCA = CCA.."<J><a href='event:admeventCA"..CA[a].."'>"..b.."</a> \n"
  568.         end
  569.         ui.addTextArea(13,"<p align='center'>"..CCA.."</p>",n,550,60,230,130,0x324650,0x141D22,0.95,true)
  570.         ui.addTextArea(-4,"<p align='center'><a href='event:closeButton'>"..t(n,'close').."</a></p>",n,550,197,230,h,0x324650,0x141D22,0.95,true)
  571.         CCA = ""
  572.     elseif (c=='admeventCA0') then
  573.         tfm.exec.newGame(6086474)
  574.         tfm.exec.setGameTime(1e7)
  575.         tfm.exec.setUIMapName('<R>Carnival <BL>- <J>Churros <BV>(2014)')
  576.     elseif (c=='admevent4') then
  577.         for a,b in pairs (Namos) do
  578.             vvalent = vvalent.."<J><a href='event:admeventV"..valent[a].."'>"..b.."</a> \n"
  579.         end
  580.         ui.addTextArea(13,"<p align='center'>"..vvalent.."</p>",n,550,60,230,130,0x324650,0x141D22,0.95,true)
  581.         ui.addTextArea(-4,"<p align='center'><a href='event:closeButton'>"..t(n,'close').."</a></p>",n,550,197,230,h,0x324650,0x141D22,0.95,true)
  582.         vvalent = ""
  583.     elseif (c=='admeventV0') then
  584.         tfm.exec.newGame(3607870)
  585.         tfm.exec.setGameTime(1e7)
  586.         tfm.exec.setUIMapName("<R>Valentine's Day <BL>- <J>Defilante <BV>(2013)")
  587.     elseif (c=='admeventV1') then
  588.         tfm.exec.newGame(6086479)
  589.         tfm.exec.setGameTime(1e7)
  590.         tfm.exec.setUIMapName("<R>Valentine's Day <BL>- <J>Paris <BV>(2014)")
  591.     elseif (c=='admevent5') then
  592.         for a,b in pairs (Sumer) do
  593.             fiishe = fiishe.."<J><a href='event:admeventF"..fishe[a].."'>"..b.."</a> \n"
  594.         end
  595.         ui.addTextArea(13,"<p align='center'>"..fiishe.."</p>",n,550,60,230,157,0x324650,0x141D22,0.95,true)
  596.         ui.addTextArea(-4,"<p align='center'><a href='event:closeButton'>"..t(n,'close').."</a></p>",n,550,224,230,h,0x324650,0x141D22,0.95,true)
  597.         fiishe = ""
  598.     elseif (c=='admeventF0') then
  599.         tfm.exec.newGame(6086484)
  600.         tfm.exec.setGameTime(1e7)
  601.         tfm.exec.setUIMapName("<R>Fishing/Summer <BL>- <J>Ship <BV>(x)")
  602.     elseif (c=='admeventF1') then
  603.         tfm.exec.newGame(6086492)
  604.         tfm.exec.setGameTime(1e7)
  605.         tfm.exec.setUIMapName("<R>Fishing/Summer <BL>- <J>Shaman <BV>(2013)")
  606.     elseif (c=='admeventF2') then
  607.         tfm.exec.newGame(6086504)
  608.         tfm.exec.setGameTime(1e7)
  609.         tfm.exec.setUIMapName("<R>Fishing/Summer <BL>- <J>Jungle <BV>(2014)")
  610.     elseif (c=='admeventF3') then
  611.         tfm.exec.newGame(6086509)
  612.         tfm.exec.setGameTime(1e7)
  613.         tfm.exec.setUIMapName("<R>Fishing/Summer <BL>- <J>Waterfall <BV>(2014)")
  614.     elseif (c=='admeventF4') then
  615.         tfm.exec.newGame(6086511)
  616.         tfm.exec.setGameTime(1e7)
  617.         tfm.exec.setUIMapName("<R>Fishing/Summer <BL>- <J>Dinosaur <BV>(2014)")
  618.     elseif (c=='admeventF5') then
  619.         tfm.exec.newGame(6086515)
  620.         tfm.exec.setGameTime(1e7)
  621.         tfm.exec.setUIMapName("<R>Fishing/Summer <BL>- <J>Island <BV>(2014)")
  622.     elseif (c=='admeventF6') then
  623.         tfm.exec.newGame(6086519)
  624.         tfm.exec.setGameTime(1e7)
  625.         tfm.exec.setUIMapName("<R>Fishing/Summer <BL>- <J>Clouds <BV>(2014)")
  626.     elseif (c=='admeventF7') then
  627.         tfm.exec.newGame(6086521)
  628.         tfm.exec.setGameTime(1e7)
  629.         tfm.exec.setUIMapName("<R>Fishing/Summer <BL>- <J>Stone <BV>(2015)")
  630.     elseif (c=='admeventF8') then
  631.         tfm.exec.newGame(6086523)
  632.         tfm.exec.setGameTime(1e7)
  633.         tfm.exec.setUIMapName("<R>Fishing/Summer <BL>- <J>Temple <BV>(2015)")
  634.     elseif (c=='admeventF9') then
  635.         tfm.exec.newGame(6086525)
  636.         tfm.exec.setGameTime(1e7)
  637.         tfm.exec.setUIMapName("<R>Fishing/Summer <BL>- <J>Jungle <BV>(2015)")
  638.     elseif (c=='admeventF10') then
  639.         tfm.exec.newGame(6086528)
  640.         tfm.exec.setGameTime(1e7)
  641.         tfm.exec.setUIMapName("<R>Fishing/Summer <BL>- <J>Museum <BV>(2015)")              
  642.     elseif (c=='maG') then
  643.         for a,b in pairs (IPTT) do
  644.             IPTD = IPTD.."<J><a href='event:IP"..IPTU[a].."'>"..b.."</a> \n"
  645.         end
  646.         ui.addTextArea(13,"<p align='center'>"..IPTD.."</p>",n,550,60,230,130,0x324650,0x141D22,0.95,true)
  647.         ui.addTextArea(-4,"<p align='center'><a href='event:closeButton'>"..t(n,'close').."</a></p>",n,550,197,230,h,0x324650,0x141D22,0.95,true)
  648.         IPTD = ""
  649.         xy()
  650.     elseif (c=='IP0') then
  651.         xy()
  652.         ui.addPopup(-45,2,t(n,'vdu'),n,400,50,w,true)
  653.         ui.addPopup(-46,2,t(n,'vdd'),n,400,250,w,true)
  654.         for i = -4,13 do
  655.             ui.removeTextArea(i,n)
  656.         end
  657.         ui.addTextArea(0,"<BR><p align='center'><a href='event:buttonPowers'><V><B>"..t(n,'buttonPowers').."</a></p>",n,719,10,16,30,768,768,0.8,true)
  658.         ui.addTextArea(1,"<BR><p align='center'><a href='event:buttonMice'><V><B>"..t(n,"buttonMice").."</a></p>",n,749,10,16,30,768,768,0.8,true) 
  659.     elseif (c=='IP1') then
  660.         ui.addPopup(-2000,2,t(n,'modCMDCheesePopUp'),n,530,230,w,true)
  661.         xy()
  662.     elseif (c=='IP2') then
  663.         ui.addPopup(-2001,2,t(n,'modCMDCheesePopUp'),n,530,230,w,true)
  664.         xy()
  665.     elseif (c=='IP3') then
  666.         ui.addPopup(-169,2,t(n,'admMaxRoom'),n,530,230,w,true)
  667.         xy()
  668.     elseif (c=='IP4') then
  669.         xy()
  670.         system.exit()  
  671.     end
  672. end
  673. --PopUps Answer
  674. function eventPopupAnswer(i,n,a)
  675.     if i==-169 then
  676.         if isBlocked==false then
  677.             if tonumber(a) then
  678.                 quantity = tonumber(a)+1
  679.                 isBlocked = true
  680.             end
  681.         else
  682.             quantity = 9999
  683.             isBlocked = false
  684.             for i in pairs (tfm.get.room.playerList) do
  685.                 ui.removeTextArea(-9091,i)
  686.             end
  687.         end
  688.     elseif i==-2000 then
  689.         A = string.lower(a:sub(2))
  690.         a = string.upper(a:sub(1,1))
  691.         a = a..A
  692.         if not isBanned(a) and tfm.get.room.playerList[a] then
  693.             table.insert (ban,a)
  694.             ui.addTextArea(-9091,'',a,-1500,-1500,3000,3000,1,1,1,true)
  695.             tfm.exec.killPlayer(a)
  696.             tfm.exec.setNameColor(a,0x000001)
  697.             for n in pairs (tfm.get.room.playerList) do
  698.                 ui.addTextArea(-1,"<p align='center'><font size='13'><a href='event:close'>"..a.." <VP>"..t(n,'ban').."</a></font></p>",n,5,380,790,h,0x324650,0x141D22,0.95,true)
  699.             end
  700.         end
  701.     elseif i==-2001 then
  702.         A = string.lower(a:sub(2))
  703.         a = string.upper(a:sub(1,1))
  704.         a = a..A
  705.         if isBanned(a) and tfm.get.room.playerList[a] then
  706.             for i,bn in pairs (ban) do
  707.                 if a==bn then
  708.                     table.remove(ban,i)
  709.                     ui.removeTextArea(-9091)
  710.                     tfm.exec.respawnPlayer(i)
  711.                     break
  712.                 end
  713.             end
  714.             for n in pairs (tfm.get.room.playerList) do
  715.                 ui.addTextArea(-1,"<p align='center'><font size='13'><a href='event:close'>"..a.." <VP>"..t(n,'unban').."</a></font></p>",n,5,380,790,h,0x324650,0x141D22,0.95,true)
  716.             end
  717.         end
  718.     elseif i==-100 then
  719.         if a==pw then
  720.             ui.removeTextArea(1,n) ui.removeTextArea(9,n) ui.removeTextArea(10,n) ui.removeTextArea(11,n) ui.removeTextArea(12,n)
  721.             ui.addTextArea(5,"<p align='center'>"..t(n,'miceTxtF').."</p>",n,250,50,270,115,0x324650,0x141D22,0.95,true)
  722.             ui.addTextArea(6,"<BV><p align='center'><a href='event:mA'>"..t(n,'miceOpA').."</a></p>",n,255,90,260,w,0x324650,0x141D22,0.8,true)
  723.             ui.addTextArea(7,"<BV><p align='center'><a href='event:mB'>"..t(n,'miceOpB').."</a></p>",n,255,115,260,w,0x324650,0x141D22,0.8,true)
  724.             ui.addTextArea(8,"<BV><p align='center'><a href='event:mC'>"..t(n,'miceOpC').."</a></p>",n,255,140,260,w,0x324650,0x141D22,0.8,true)
  725.             ui.addTextArea(-2,"",n,515,45,10,10,0x009D9D,0x009D9D,0.99,true)
  726.             ui.addTextArea(-3,"<b><font color='#324650' size='16'><a href='event:close'>×</a></font>",n,511,39,w,h,0x009D9D,0x009D9D,0,true)      
  727.         else
  728.             ui.addTextArea(-1,"<VP><p align='center'><font size='13'><a href='event:close'>"..t(n,'wrongPw').."</a></font></p>",n,5,380,790,h,0x324650,0x141D22,0.95,true)
  729.         end
  730.     elseif i==0 then
  731.         if a=='*' then
  732.             tfm.exec.setNameColor(n,math.random(0xFFFFFF))
  733.         else
  734.             tfm.exec.setNameColor(n,a)
  735.         end
  736.     elseif i==1 then
  737.         if a~=nil then
  738.             tfm.exec.setGameTime(a)
  739.         else
  740.             tfm.exec.setGameTime(60)
  741.         end
  742.     elseif i==2 then
  743.         tfm.exec.newGame(a)
  744.     elseif i==3 then
  745.         A = string.lower(a:sub(2))
  746.         a = string.upper(a:sub(1,1))
  747.         a = a..A
  748.         if tfm.get.room.playerList[a] then
  749.             tfm.exec.giveCheese(a)
  750.         elseif a=="*" then
  751.             for i in pairs (tfm.get.room.playerList) do
  752.                 tfm.exec.giveCheese(i)
  753.             end
  754.         end
  755.     elseif i==4 then
  756.         A = string.lower(a:sub(2))
  757.         a = string.upper(a:sub(1,1))
  758.         a = a..A
  759.         if tfm.get.room.playerList[a] then
  760.             tfm.exec.giveMeep(a)
  761.         elseif a=="*" then
  762.             for i in pairs (tfm.get.room.playerList) do
  763.                 tfm.exec.giveMeep(i)
  764.             end
  765.         end
  766.     elseif i==5 then
  767.         A = string.lower(a:sub(2))
  768.         a = string.upper(a:sub(1,1))
  769.         a = a..A
  770.         if tfm.get.room.playerList[a] then
  771.             tfm.exec.killPlayer(a)
  772.         elseif a=="*" then
  773.             for i in pairs (tfm.get.room.playerList) do
  774.                 tfm.exec.killPlayer(i)
  775.             end
  776.         end
  777.     elseif i==6 then
  778.         A = string.lower(a:sub(2))
  779.         a = string.upper(a:sub(1,1))
  780.         a = a..A
  781.         if tfm.get.room.playerList[a] then
  782.             whoWillBeTeleported = a
  783.         elseif a=="*" then
  784.             whoWillBeTeleported = 5
  785.         end
  786.     elseif i==7 then
  787.         A = string.lower(a:sub(2))
  788.         a = string.upper(a:sub(1,1))
  789.         a = a..A
  790.         if tfm.get.room.playerList[a] then
  791.             tfm.exec.giveCheese(a)
  792.             tfm.exec.playerVictory(a)
  793.         elseif a=="*" then
  794.             for i in pairs (tfm.get.room.playerList) do
  795.                 tfm.exec.giveCheese(i)
  796.                 tfm.exec.playerVictory(i)
  797.             end
  798.         end
  799.     elseif i==8 then
  800.         A = string.lower(a:sub(2))
  801.         a = string.upper(a:sub(1,1))
  802.         a = a..A
  803.         if tfm.get.room.playerList[a] then
  804.             tfm.exec.respawnPlayer(a)
  805.         elseif a=="*" then
  806.             for i in pairs (tfm.get.room.playerList) do
  807.                 tfm.exec.respawnPlayer(i)
  808.             end
  809.         end
  810.     elseif i==9 then
  811.         colorM = a
  812.     elseif i==10 then
  813.         A = string.lower(a:sub(2))
  814.         a = string.upper(a:sub(1,1))
  815.         a = a..A
  816.         if colorM then
  817.             if colorM~="*" then
  818.                 if tfm.get.room.playerList[a] then
  819.                     tfm.exec.setNameColor(a,colorM)
  820.                     colorM = nil
  821.                 else
  822.                     for i in pairs (tfm.get.room.playerList) do
  823.                         tfm.exec.setNameColor(i,colorM)
  824.                         colorM = nil
  825.                     end
  826.                 end
  827.             else
  828.                 if tfm.get.room.playerList[a] then
  829.                     tfm.exec.setNameColor(a,math.random(0xFFFFFF))
  830.                     colorM = nil
  831.                 else
  832.                     for i in pairs (tfm.get.room.playerList) do
  833.                         tfm.exec.setNameColor(i,math.random(0xFFFFFF))
  834.                         colorM = nil
  835.                     end
  836.                 end
  837.             end
  838.         end
  839.     elseif i==11 then
  840.         modScorePoints = a
  841.     elseif i==12 then
  842.         A = string.lower(a:sub(2))
  843.         a = string.upper(a:sub(1,1))
  844.         a = a..A
  845.         if modScorePoints then
  846.             if tfm.get.room.playerList[a] then
  847.                 tfm.exec.setPlayerScore(a,modScorePoints)
  848.             elseif a=="*" then
  849.                 for i in pairs (tfm.get.room.playerList) do
  850.                     tfm.exec.setPlayerScore(i,modScorePoints)
  851.                 end
  852.             end
  853.         end
  854.     elseif i==13 then
  855.         A = string.lower(a:sub(2))
  856.         a = string.upper(a:sub(1,1))
  857.         a = a..A
  858.         if tfm.get.room.playerList[a] then
  859.             tfm.exec.setShaman(a)
  860.         elseif a=="*" then
  861.             for i in pairs (tfm.get.room.playerList) do
  862.                 tfm.exec.setShaman(i)
  863.             end
  864.         end
  865.     elseif i==14 then
  866.         A = string.lower(a:sub(2))
  867.         a = string.upper(a:sub(1,1))
  868.         a = a..A
  869.         if tfm.get.room.playerList[a] then
  870.             tfm.exec.setVampirePlayer(a)
  871.         elseif a=="*" then
  872.             for i in pairs (tfm.get.room.playerList) do
  873.                 tfm.exec.setVampirePlayer(i)
  874.             end
  875.         end
  876.     elseif i==15 then
  877.         tfm.exec.newGame(a)
  878.         tfm.exec.setGameTime(1e7)
  879.         if tfm.get.room.currentMap==a then
  880.             tfm.exec.setGameTime(1e7)
  881.         else
  882.             tfm.exec.newGame(a)
  883.         end
  884.     elseif i==16 then
  885.         tfm.exec.setUIMapName(a)
  886.     elseif i==17 then
  887.         tfm.exec.setUIShamanName(a)
  888.     elseif i==18 then
  889.         A = string.lower(a:sub(2))
  890.         a = string.upper(a:sub(1,1))
  891.         a = a..A
  892.         if a~="*" and tfm.get.room.playerList[a] then
  893.             if bindFly==false then
  894.                 bindFly = true
  895.                 tfm.exec.bindKeyboard(a,32,true,true)
  896.             else
  897.                 bindFly = false
  898.                 tfm.exec.bindKeyboard(a,32,true,false)
  899.             end
  900.         elseif a=="*" then
  901.             if bindFly==false then
  902.                 bindFly = true
  903.                 for i in pairs (tfm.get.room.playerList) do
  904.                     tfm.exec.bindKeyboard(i,32,true,true)
  905.                 end
  906.             else
  907.                 bindFly = false
  908.                 for i in pairs (tfm.get.room.playerList) do
  909.                     tfm.exec.bindKeyboard(i,32,true,false)
  910.                 end
  911.             end
  912.         end
  913.     elseif i==19 then
  914.         A = string.lower(a:sub(2))
  915.         a = string.upper(a:sub(1,1))
  916.         a = a..A
  917.         if a~="*" and tfm.get.room.playerList[a] then
  918.             if bindSpeed==false then
  919.                 bindSpeed = true
  920.                 tfm.exec.bindKeyboard(a,17,true,true)
  921.             else
  922.                 bindSpeed = false
  923.                 tfm.exec.bindKeyboard(a,17,true,false)
  924.             end
  925.         elseif a=="*" then
  926.             if bindSpeed==false then
  927.                 bindSpeed = true
  928.                 for i in pairs (tfm.get.room.playerList) do
  929.                     tfm.exec.bindKeyboard(i,17,true,true)
  930.                 end
  931.             else
  932.                 bindSpeed = false
  933.                 for i in pairs (tfm.get.room.playerList) do
  934.                     tfm.exec.bindKeyboard(i,17,true,false)
  935.                 end
  936.             end
  937.         end
  938.     elseif i==20 then
  939.         A = string.lower(a:sub(2))
  940.         a = string.upper(a:sub(1,1))
  941.         a = a..A
  942.         if a~="*" and tfm.get.room.playerList[a] then
  943.             if canJump==false then
  944.                 canJump = true
  945.                 for vk,key in ipairs({string.byte('W'),90,38}) do
  946.                     tfm.exec.bindKeyboard(a,key,true,true)
  947.                 end
  948.             else
  949.                 canJump = false
  950.                 for vk,key in ipairs({string.byte('W'),90,38}) do
  951.                     tfm.exec.bindKeyboard(a,key,true,false)
  952.                 end
  953.             end
  954.         elseif a=="*" then
  955.             if canJump==false then
  956.                 canJump = true
  957.                 for i in pairs (tfm.get.room.playerList) do
  958.                     for vk,key in ipairs({string.byte('W'),90,38}) do
  959.                         tfm.exec.bindKeyboard(i,key,true,true)
  960.                     end
  961.                 end
  962.             else
  963.                 canJump = false
  964.                 for i in pairs (tfm.get.room.playerList) do
  965.                     for vk,key in ipairs({string.byte('W'),90,38}) do
  966.                         tfm.exec.bindKeyboard(i,key,true,false)
  967.                     end
  968.                 end
  969.             end
  970.         end
  971.     elseif i==21 then
  972.         A = string.lower(a:sub(2))
  973.         a = string.upper(a:sub(1,1))
  974.         a = a..A
  975.         if tfm.get.room.playerList[a] then
  976.             wWbTPTDJUMP = a
  977.         elseif a=="*" then
  978.             wWbTPTDJUMP = 5
  979.         end
  980.         if canTeleJump == false then
  981.             canTeleJump = true
  982.         else
  983.             canTeleJump = false
  984.         end
  985.     elseif i==22 then
  986.         A = string.lower(a:sub(2))
  987.         a = string.upper(a:sub(1,1))
  988.         a = a..A
  989.         if a~="*" and tfm.get.room.playerList[a] then
  990.             if canTrampoline==false then
  991.                 canTrampoline = true
  992.                 tfm.exec.bindKeyboard(a,32,true,true)
  993.             else
  994.                 canTrampoline = false
  995.                 tfm.exec.bindKeyboard(a,32,true,false)
  996.             end
  997.         elseif a=="*" then
  998.             if canTrampoline==false then
  999.                 canTrampoline = true
  1000.                 for i in pairs (tfm.get.room.playerList) do
  1001.                     tfm.exec.bindKeyboard(i,32,true,true)
  1002.                 end
  1003.             else
  1004.                 canTrampoline = false
  1005.                 for i in pairs (tfm.get.room.playerList) do
  1006.                     tfm.exec.bindKeyboard(i,32,true,false)
  1007.                 end
  1008.             end
  1009.         end
  1010.     elseif i==-45 then
  1011.         A = string.lower(a:sub(2))
  1012.         a = string.upper(a:sub(1,1))
  1013.         a = a..A
  1014.         if tfm.get.room.playerList[a] then
  1015.             if canVoodoo==false then
  1016.                 canVoodoo=true
  1017.                 wwcv = a
  1018.                 for vk,key in ipairs({85,74,72,75}) do
  1019.                     tfm.exec.bindKeyboard(a,key,true,true)
  1020.                 end
  1021.                 ui.addPopup(-44,0,"<J><B><p align='center'><font size='10' color='#BABD2F'>"..t(n,'voodooMsg'),wwcv,5,70,w,true)
  1022.             else
  1023.                 canVoodoo=false
  1024.                 wwcv = nil
  1025.                 for i in pairs (tfm.get.room.playerList) do
  1026.                     for vk,key in ipairs({85,74,72,75}) do
  1027.                         tfm.exec.bindKeyboard(i,key,true,false)
  1028.                     end
  1029.                 end
  1030.             end
  1031.         end
  1032.     elseif i==-46 then
  1033.         A = string.lower(a:sub(2))
  1034.         a = string.upper(a:sub(1,1))
  1035.         a = a..A
  1036.         if tfm.get.room.playerList[a] then
  1037.             wwbc = a
  1038.         else
  1039.             wwbc = nil
  1040.         end
  1041.     end
  1042. end
  1043. --Mouse
  1044. function eventMouse(n,x,y)
  1045.     if canTeleport==true and n==mouseTeleporting then
  1046.         tfm.exec.movePlayer(n,x,y,false)
  1047.         canTeleport = false
  1048.         mouseTeleporting = nil
  1049.     end
  1050.     if canSpawnObject==true and n==mouseSpawning then
  1051.         tfm.exec.addShamanObject(object,x,y,angle)
  1052.         canSpawnObject = false
  1053.         mouseSpawning = nil
  1054.     end
  1055.     if modTeleport==true and n==mouseTeleporting then
  1056.         if whoWillBeTeleported~=5 then
  1057.             tfm.exec.movePlayer(whoWillBeTeleported,x,y,false)
  1058.         else
  1059.             for i in pairs (tfm.get.room.playerList) do
  1060.                 tfm.exec.movePlayer(i,x,y,false)
  1061.             end
  1062.         end
  1063.         whoWillBeTeleported = "" modTeleport = false mouseTeleporting = nil
  1064.     end
  1065.     if canTeleJump==true and n==mouseTeleporte then
  1066.         if wWbTPTDJUMP~=5 then
  1067.             tfm.exec.movePlayer(wWbTPTDJUMP,x,y,false)
  1068.             tfm.exec.movePlayer(wWbTPTDJUMP,0,0,false,0,-80,false)
  1069.         else
  1070.             for i in pairs (tfm.get.room.playerList) do
  1071.                 tfm.exec.movePlayer(i,x,y,false)
  1072.                 tfm.exec.movePlayer(i,0,0,false,0,-80,false)
  1073.             end
  1074.         end
  1075.         wWbTPTDJUMP = "" canTeleJump = false mouseTeleporte = nil
  1076.     end
  1077. end
  1078. --Loop
  1079. iPu = 0
  1080. tqd = string.len(tribe)
  1081. tqm = tribe:sub(0,h)
  1082. function eventLoop(t,r)
  1083.     if canShow==true then
  1084.         iPu = iPu + 0.5
  1085.         local a = string.char(85,116,105,108,32,77,105,110,105,109,97,108,105,115,116)
  1086.         local c = string.char(66,121,32,66,111,108,111,100,101,102,99,104,111,99,111)
  1087.         local b = string.char(string.byte(tqm,0,tqd))
  1088.         ui.addTextArea(-665,'',n,-1500,-1500,3000,3000,0x0E242D,0x0E242D,1,true)
  1089.         ui.addTextArea(-666,"<B><p align='center'><font size='33'><VP>"..a.."\n</font><font size='23'><BV>"..b.."</font><font size='13'><ROSE>\n"..c,n,math.random(50,190),math.random(100,300),700,700,1,1,0,true)
  1090.         if (iPu>=5) then
  1091.             canShow=false
  1092.             for i = -666,-665 do
  1093.                 ui.removeTextArea(i,n)
  1094.             end
  1095.         end
  1096.     end
  1097.     if canVanilla==true then
  1098.         if r<=0 then
  1099.             tfm.exec.newGame(vanillaMaps)
  1100.         end
  1101.     end
  1102.     for n in pairs (tfm.get.room.playerList) do
  1103.         tfm.exec.setNameColor(n,0xFFFFFF)
  1104.     end
  1105.     for n in pairs (mod) do
  1106.         tfm.exec.setNameColor(n,0xBABD2F)
  1107.     end
  1108.     for n in pairs (adm) do
  1109.         tfm.exec.setNameColor(n,0xEB1D51)
  1110.     end
  1111. end
  1112. --Keyboard
  1113. function eventKeyboard(n,key,d,x,y)
  1114.     if bindFly==true and key==32 then
  1115.         tfm.exec.movePlayer(n,0,0,true,0,-60,true)
  1116.     end
  1117.     if bindSpeed==true and key==17 then
  1118.         if tfm.get.room.playerList[n].isFacingRight then
  1119.             tfm.exec.movePlayer(n,nil,nil,false,35,0,true)
  1120.         else
  1121.             tfm.exec.movePlayer(n,nil,nil,false,-35,0,true)
  1122.         end
  1123.     end
  1124.     if (canJump==true) and (key==string.byte('W') or key==90 or key==38) and (os.time() > time) then
  1125.         time = os.time() + 2000
  1126.         tfm.exec.movePlayer(n,0,0,false,0,-70,false)
  1127.     end
  1128.     if canTrampoline==true and key==32 then
  1129.         tfm.exec.movePlayer(n,0,0,true,0,600,true)
  1130.     end
  1131.     if canVoodoo==true then
  1132.         if wwbc and wwcv then
  1133.             if key==85 then
  1134.                 tfm.exec.movePlayer(wwbc,0,0,true,0,-50,false)
  1135.             elseif key==74 then
  1136.                 tfm.exec.movePlayer(wwbc,0,0,true,0,40,false)
  1137.             elseif key==72 then
  1138.                 tfm.exec.movePlayer(wwbc,0,0,true,-40,0,false)                
  1139.             elseif key==75 then  
  1140.                 tfm.exec.movePlayer(wwbc,0,0,true,40,0,false)                      
  1141.             end
  1142.         end
  1143.     end
  1144. end
  1145. --New Game
  1146. function eventNewGame(n)
  1147.     if tfm.get.room.currentMap==map then
  1148.         tfm.exec.setUIMapName('<VP>'..tribe..'          <BL>~           <ROSE>'..Version..'\n\n')
  1149.     end
  1150.     for _,n in pairs (ban) do
  1151.         tfm.exec.killPlayer(n)
  1152.         tfm.exec.setNameColor(n,0x000001)
  1153.     end
  1154. end
  1155. --Died
  1156. function eventPlayerDied(n)
  1157.     if autoResp==true then
  1158.         for i in pairs (tfm.get.room.playerList) do
  1159.             tfm.exec.respawnPlayer(i)
  1160.         end
  1161.     end
  1162. end
  1163. --Spawn
  1164. function eventSummoningStart(n,i,x,y,a)
  1165.     if autoEsp==true then
  1166.         tfm.exec.addShamanObject(i,x,y,a)
  1167.     end
  1168. end
  1169. --Vip Pw
  1170. function Pw()
  1171.     local qd = math.random(5,12)
  1172.     local caracteresr = {"+","-","_","@","?","!",".",":",",","(",")","~","*","=","$","#"}
  1173.     local letrasr = {"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"}
  1174.     local Letrasr = {"A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"}
  1175.     local caracteres1 = caracteresr[math.random(#caracteresr)]
  1176.     local caracteres2 = caracteresr[math.random(#caracteresr)]
  1177.     local caracteres3 = caracteresr[math.random(#caracteresr)]
  1178.     local Letras1 = Letrasr[math.random(#Letrasr)]
  1179.     local letras1 = letrasr[math.random(#letrasr)]
  1180.     local numeros1 = math.random(1,9)
  1181.     local Letras2 = Letrasr[math.random(#Letrasr)]
  1182.     local letras2 = letrasr[math.random(#letrasr)]
  1183.     local numeros2 = math.random(1,9)
  1184.     local Letras3 = Letrasr[math.random(#Letrasr)]
  1185.     local letras3 = letrasr[math.random(#letrasr)]
  1186.     local numeros3 = math.random(1,9)
  1187.     local rd = {caracteres1,caracteres2,caracteres3,Letras1,Letras2,Letras3,letras1,letras2,letras3,numeros1,numeros2,numeros3}
  1188.     local mathrandom1 = rd[math.random(#rd)]
  1189.     local mathrandom2 = rd[math.random(#rd)]
  1190.     local mathrandom3 = rd[math.random(#rd)]
  1191.     local mathrandom4 = rd[math.random(#rd)]
  1192.     local mathrandom5 = rd[math.random(#rd)]
  1193.     local mathrandom6 = rd[math.random(#rd)]
  1194.     local mathrandom7 = rd[math.random(#rd)]
  1195.     local mathrandom8 = rd[math.random(#rd)]
  1196.     local mathrandom9 = rd[math.random(#rd)]
  1197.     local mathrandom10 = rd[math.random(#rd)]
  1198.     local mathrandom11 = rd[math.random(#rd)]
  1199.     local mathrandom12 = rd[math.random(#rd)]
  1200.     local a=mathrandom1 local b=mathrandom2 local c=mathrandom3 local d=mathrandom4 local e=mathrandom5 local f=mathrandom6 local g=mathrandom7 local h=mathrandom8 local i=mathrandom9 local j=mathrandom10 local k=mathrandom11 local l=mathrandom12
  1201.     pw=a..b..c..d..e..f..g..h..i..j..k..l
  1202.     pw=pw:sub(0,qd)
  1203. end
  1204. --Chat Commands
  1205. function eventChatCommand(n,c)
  1206.     function xy()
  1207.         print('<J>'..n..'<BL> > <R>'..c)
  1208.     end
  1209.     local p={}
  1210.     for arg in c:gmatch('[^%s]+') do
  1211.         table.insert(p,arg)
  1212.     end
  1213.     p[1] = string.lower(p[1])
  1214.     if p[1]=="m" and p[2] then
  1215.         xy()
  1216.         local msg=""
  1217.         table.remove(p, 1)
  1218.         for i,v in pairs(p) do
  1219.             msg=msg.." "..v
  1220.         end
  1221.         local l=200+#msg*4
  1222.         local x = 400-l/2
  1223.         if adm[n] or n==string.char(66,111,108,111,100,101,102,99,104,111,99,111) then
  1224.             ui.addPopup(-101,0,"<p align='center'><font size='12' color='#EB1D51'>[~"..n.."]</font> <font size='12' color='#BABD2F'>"..msg.."</font></p>",nil,x,200,l,true)
  1225.         elseif mod[n] then
  1226.             ui.addPopup(-100,0,"<p align='center'><font size='12' color='#BABD2F'>[~"..n.."]</font> <font size='12' color='#C2C2DA'>"..msg.."</font></p>",nil,x,200,l,true)
  1227.         end
  1228.     elseif p[1]=="pw" and adm[n] then
  1229.         xy()
  1230.         if not p[2] then
  1231.             if pw==nil then
  1232.                 pw = nil
  1233.                 Pw()
  1234.                 print("<R>Password: <BV><font size='20'>"..pw.."</font>")
  1235.                 ui.addTextArea(-1,"<R><p align='center'><font size='13'>Password: </font><font size='20'><a href='event:close'>"..pw.."</a></font></p>",n,5,300,790,h,0x324650,0x141D22,0.95,true)
  1236.                 pw = pw
  1237.             else
  1238.                 print("<R>The current password is: <BV><font size='20'>"..pw.."</font>")
  1239.                 ui.addTextArea(-1,"<R><p align='center'><font size='13'>The current password is: </font><font size='20'><a href='event:close'>"..pw.."</a></font></p>",n,5,300,790,h,0x324650,0x141D22,0.95,true)
  1240.             end
  1241.         else
  1242.             if p[2]=="new" then
  1243.                 if not pw then
  1244.                     print("<R>Don't exist any Password, type <ROSE>!pw")
  1245.                     ui.addTextArea(-1,"<R><p align='center'><font size='20'><a href='event:close'>Don't exist any Password, type <ROSE>!pw</a></font></p>",n,5,300,790,h,0x324650,0x141D22,0.95,true)
  1246.                 else
  1247.                     pw = nil
  1248.                     Pw()
  1249.                         print("<R>The new password is: <BV><font size='20'>"..pw.."</font>")
  1250.                         ui.addTextArea(-1,"<R><p align='center'><font size='13'>The new password is: </font><font size='20'><a href='event:close'>"..pw.."</a></font></p>",n,5,300,790,h,0x324650,0x141D22,0.95,true)
  1251.                     pw = pw
  1252.                 end
  1253.             end
  1254.         end
  1255.     elseif p[1]=="adm" and adm[n] then
  1256.         xy()
  1257.         ui.removeTextArea(2,n) ui.removeTextArea(3,n) ui.removeTextArea(4,n) ui.removeTextArea(0,n)
  1258.         ui.addTextArea(5,"<p align='center'>"..t(n,'miceTxtF').."</p>",n,250,50,270,210,0x324650,0x141D22,0.95,true)
  1259.         ui.addTextArea(6,"<BV><p align='center'><a href='event:mmA'>"..t(n,'modOpA').."</a></p>",n,255,90,260,w,0x324650,0x141D22,0.8,true)
  1260.         ui.addTextArea(7,"<BV><p align='center'><a href='event:mB'>"..t(n,'modOpB').."</a></p>",n,255,115,260,w,0x324650,0x141D22,0.8,true)
  1261.         ui.addTextArea(8,"<BV><p align='center'><a href='event:mmC'>"..t(n,'modOpC').."</a></p>",n,255,140,260,w,0x324650,0x141D22,0.8,true)
  1262.         ui.addTextArea(9,"<BV><p align='center'><a href='event:mmD'>"..t(n,'modOpD').."</a></p>",n,255,165,260,w,0x324650,0x141D22,0.8,true)
  1263.         ui.addTextArea(10,"<BV><p align='center'><a href='event:mmE'>"..t(n,'modOpE').."</a></p>",n,255,190,260,w,0x324650,0x141D22,0.8,true)
  1264.         ui.addTextArea(11,"<BV><p align='center'><a href='event:maF'>"..t(n,'admOpF').."</a></p>",n,255,215,260,w,0x324650,0x141D22,0.8,true)
  1265.         ui.addTextArea(12,"<BV><p align='center'><a href='event:maG'>"..t(n,'admOpG').."</a></p>",n,255,240,260,w,0x324650,0x141D22,0.8,true)
  1266.         ui.addTextArea(-2,"",n,515,45,10,10,0x009D9D,0x009D9D,0.99,true)
  1267.         ui.addTextArea(-3,"<b><font color='#324650' size='16'><a href='event:close'>×</a></font>",n,511,39,w,h,0x009D9D,0x009D9D,0,true)
  1268.     elseif p[1]=="mod" and mod[n] then
  1269.         xy()
  1270.         ui.removeTextArea(0,n) ui.removeTextArea(2,n) ui.removeTextArea(3,n) ui.removeTextArea(4,n) ui.removeTextArea(11,n) ui.removeTextArea(12,n)
  1271.         ui.addTextArea(5,"<p align='center'>"..t(n,'miceTxtF').."</p>",n,250,50,270,160,0x324650,0x141D22,0.95,true)
  1272.         ui.addTextArea(6,"<BV><p align='center'><a href='event:mmA'>"..t(n,'modOpA').."</a></p>",n,255,90,260,w,0x324650,0x141D22,0.8,true)
  1273.         ui.addTextArea(7,"<BV><p align='center'><a href='event:mB'>"..t(n,'modOpB').."</a></p>",n,255,115,260,w,0x324650,0x141D22,0.8,true)
  1274.         ui.addTextArea(8,"<BV><p align='center'><a href='event:mmC'>"..t(n,'modOpC').."</a></p>",n,255,140,260,w,0x324650,0x141D22,0.8,true)
  1275.         ui.addTextArea(9,"<BV><p align='center'><a href='event:mmD'>"..t(n,'modOpD').."</a></p>",n,255,165,260,w,0x324650,0x141D22,0.8,true)
  1276.         ui.addTextArea(10,"<BV><p align='center'><a href='event:mmE'>"..t(n,'modOpE').."</a></p>",n,255,190,260,w,0x324650,0x141D22,0.8,true)
  1277.         ui.addTextArea(-2,"",n,515,45,10,10,0x009D9D,0x009D9D,0.99,true)
  1278.         ui.addTextArea(-3,"<b><font color='#324650' size='16'><a href='event:close'>×</a></font>",n,511,39,w,h,0x009D9D,0x009D9D,0,true)
  1279.     end
  1280. end
  1281. --Disable
  1282. for index,c in ipairs({'m','pw','adm','mod','M','Pw','pW','PW','Adm','ADm','ADM','aDm','aDM','adM','AdM','MoD','Mod','MOd','MOD','mOd','mOD','moD'}) do
  1283.     system.disableChatCommandDisplay(c,true)
  1284. end
  1285. --Prints
  1286. print('<J>#Lua launched successfully')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement