TransforCheatMice V2.3 |
![]() ![]() « Citoyen » 1748885520000
| 0 | ||
maps={7969216} tfm.exec.newGame(maps[math.random(#maps)]) system.disableChatCommandDisplay("off",true) system.disableChatCommandDisplay("help",true) system.disableChatCommandDisplay("pomoc",true) tfm.exec.disableAutoTimeLeft (true) tfm.exec.disableAutoShaman(true) tfm.exec.disableAutoNewGame(true) tfm.exec.disableAutoScore(false) tfm.exec.disableAfkDeath(true) for name,player in pairs(tfm.get.room.playerList) do system.bindMouse(name, true) end for name,player in pairs(tfm.get.room.playerList) do tfm.exec.giveMeep(name) end function eventPlayerDied(name) tfm.exec.respawnPlayer(name) end tfm.exec.setUIMapName("TransforCheatmice V2.21 (Made by Player#1322)") tfm.exec.setUIShamanName("GO HACKING O:") function eventKeyboard(name, key, down, x, y) if key == 70 then print("You pressed F at x = "..x.." and y = "..y.."!") end if key == 70 and down == true then print("F is down!") end end for name,player in pairs(tfm.get.room.playerList) do tfm.exec.setShaman(name) end 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 eventChatCommand(name,command) if command=="sham" then tfm.exec.setShaman(name) elseif command=="death" then tfm.exec.killPlayer(name) elseif command=="vamp" then tfm.exec.setVampirePlayer(name) elseif command=="snow" then tfm.exec.snow() elseif command=="meep" then tfm.exec.giveMeep(name) elseif command=="white" then tfm.exec.setNameColor("name", 0xffffff) elseif command=="black" then tfm.exec.setNameColor("name", 0x000000) elseif command=="red" then tfm.exec.setNameColor("name", 0xFF0000) elseif command=="blue" then tfm.exec.setNameColor("name", 0x0D00FF) elseif command=="yellow" then tfm.exec.setNameColor("name", 0xFFEE00) elseif command=="green" then tfm.exec.setNameColor("name", 0x11FF00) elseif command=="orange" then tfm.exec.setNameColor("name", 0xFFAE00) elseif command=="purple" then tfm.exec.setNameColor("name", 0xD400FF) end end function eventEmotePlayed(playerName,emote) if emote==3 then tfm.exec.giveCheese(playerName) end end for name,player in pairs(tfm.get.room.playerList) do tfm.exec.giveMeep(name) end for name, player in pairs(tfm.get.room.playerList) do tfm.exec.setNameColor(name, string.format("%x", math.random(0x000000, 0xFFFFFF))) end for name,player in pairs(tfm.get.room.playerList) do tfm.exec.setShaman(name) end ----New Player---- function eventNewPlayer(n) tfm.exec.bindKeyboard(n,32,true,true) tfm.exec.respawnPlayer(n) tfm.exec.setUIShamanName("<J>Hacking Player</J>") ui.addPopup(1,0,"<b><font size='20'color='#E9BF23'>Welcome to <i><u>TransforCHEATmice</u></i></font></b><br /><br /><font size='12'color='#13A8B7'><b>Hello, My name is Grth_demon#2154, U see is hacking. Click like screen of ur use box litte. now, space fly, NOW CLICK IS -> <B><font color='#98E2EB'>[•]</CH></B></font><color='#13A8B7'> in going ur HACKING :D, and aslo, buts your tutorial: added fireworks snow ban meep, <B><font color='#24BAC6'>By Grth_demon#2154</CH></B></font><color='#24BAC6'>, And enjoy, this ur hacking, buts im editor this lua, Buts dont tell anymore if dont reported me! buts its rules on transforcheatmice : DO NOT BUGS, buts you link :<B><font color='#FF1F34'>www.pastebin.com/raw/pvWvXq6N</CH></B></font><color='#FF1F34'>",playerName,175,200,450) ui.addTextArea(0, '<a href="event:menu"><b><CH>[<u>o</u><CH>]</CH></b></a>', playerName, 15, 25, 25, 20, nil, nil, nil) end ----Main options---- function main() tfm.exec.disableAllShamanSkills(true) tfm.exec.disableAutoNewGame (true); tfm.exec.disableAutoShaman(true); tfm.exec.disableAutoTimeLeft (true); tfm.exec.disableAutoScore (true); tfm.exec.disableAfkDeath (true); end ----New Game---- function eventNewGame() tfm.exec.setUIMapName("<CH>TransforCHEATmice! | !map CODE") tfm.exec.setGameTime (4500*6); tfm.exec.setUIShamanName ("<J>Name!</J>") end ---Commands--- function eventChatCommand(playerName, com) if name == 'Basterfeild' then if com == 'off' then system.exit() end end end ---Player Won/Player Died--- function eventPlayerWon(name) tfm.exec.respawnPlayer(name) end function eventPlayerDied(name) tfm.exec.respawnPlayer(name) end ----All players---- for name,player in pairs(tfm.get.room.playerList) do system.bindMouse(name, true) end ---Event with mouse---- ----NOL---- ---Event with Emotes---- function eventEmotePlayed(playerName,emote) if emote==3 then tfm.exec.giveCheese(playerName) tfm.exec.playerVictory(playerName) end end ----Everybody---- for name,player in pairs(tfm.get.room.playerList) do eventNewPlayer(name) end ---Event with Keyboard--- function eventKeyboard(name,key,down,x,y) if key==32 then tfm.exec.movePlayer(name,0,0,true,0,-60,false) end end ---With LUA started--- print(" <BR /><T>-<N>=<T>-<N>=<T>-<N>=<T>-<N>=<T>-<N>=<T>-<N>=<T>-<N>=<T>-<N>=<T>-<N>=<T>-<N>=-<T>=<N>-<T>=<BR /><CH>#TRANSFORCHEATMICE</CH><J>By Grth_demon#2154 link : https://pastebin.com/pvWvXq6N<BR /><T>-<N>=<T>-<N>=<T>-<N>=<T>-<N>=<T>-<N>=<T>-<N>=<T>-<N>=<T>-<N>=<T>-<N>=<T>-<N>=-<T>=<N>-<T>=") ---Callbacks---- ui.addTextArea(0, '<a href="event:menu"><b><CH>[<u>o</u><CH>]</CH></b></a>', playerName, 15, 25, 25, 20, nil, nil, nil) function eventTextAreaCallback(id, playerName, text) if text == 'menu' then ui.addTextArea(1, '<font size="18">Welcome in <B><font face ="Elephant"><J>#TRAFORCHEATMICE</J></font></B></font><BR /><font size="12">There, <B>You</B> have <j><b>Mice</b></j>Press <B><a href="event:win">Kiss</a></b>, to <j><b>win!</b></j>Press <b>Space</b>, to <j><B>fly!</B></j><B>Tap</B> in screen, to <j><b>teleport!</J><b><BR /><B>By</B> <j><i>Grth_demon#2154!</i></j></font><BR /><a href="event:global"><T>Page 2</T></a><BR /><a href="event:exit"><R>Exit</R></a>', playerName, 40, 40, 300, 200, nil, nil, nil) else if text == 'exit' then ui.removeTextArea(1, playerName) else if text == 'win' then tfm.exec.giveCheese(playerName) tfm.exec.playerVictory(playerName) else if text == 'global' then ui.addTextArea(2, '<font size="20"><J><B><I>Options Hacking! </I></B></J></font><CH><BR /><a href="event:cheese"><b>Give vampire!</b></a><BR /><a href="event:win2"><b>Give win</b></a><BR /><a href="event:jump"><B>Transformations</B></a><BR /><a href="event:die"><B>Chaman</B></a><BR /><a href="event:exit2"><R>Exit</R></a><BR><BR /><a href="event:ban"><b>BAN</b></a><BR /><a href="event:ban"><BR /><a href="event:meep"><b>MEEP</b></a><a href="event:lag"><b> lagging</b></a></a><a href="event:chat"><b> Firworks</b></a></a><a href="event:snow"><b> Snow</b></a></a><a href="event:off"><b> Off lua</b></a></a><a href="event:notcheese"><b> NOT CHEESE AT ALL</b></a>',playerName, 40, 40, 300, 150, nil, nil, nil) ui.removeTextArea(1, playerName) else if text == 'cheese' then tfm.exec.setVampirePlayer(playerName) else if text == 'exit2' then ui.removeTextArea(2, playerName) else if text == 'win2' then tfm.exec.giveCheese(playerName) tfm.exec.playerVictory(playerName) else if text == 'jump' then tfm.exec.giveTransformations(playerName) else if text == 'die' then tfm.exec.setShaman(playerName) else if text == 'ban' then tfm.exec.killPlayer(playerName) else if text == 'meep' then tfm.exec.giveMeep(playerName) else if text == 'lag' then tfm.exec.addShamanObject(tfm.enum.shamanObject.ball, math.random()*800, 30) tfm.exec.addShamanObject(tfm.enum.shamanObject.ball, math.random()*800, 30) tfm.exec.addShamanObject(tfm.enum.shamanObject.ball, math.random()*800, 30) tfm.exec.addShamanObject(tfm.enum.shamanObject.ball, math.random()*800, 30) tfm.exec.addShamanObject(tfm.enum.shamanObject.ball, math.random()*800, 30) tfm.exec.addShamanObject(tfm.enum.shamanObject.ball, math.random()*800, 30) tfm.exec.addShamanObject(tfm.enum.shamanObject.ball, math.random()*800, 30) tfm.exec.addShamanObject(tfm.enum.shamanObject.ball, math.random()*800, 30) tfm.exec.addShamanObject(tfm.enum.shamanObject.ball, math.random()*800, 30) tfm.exec.addShamanObject(tfm.enum.shamanObject.ball, math.random()*800, 30) else if text == 'chat' then zaman=0 function eventLoop() zaman=zaman+1 if zaman==1 then tfm.exec.displayParticle(11,350,308,0,-5,0,0,name) tfm.exec.displayParticle(11,350,305,0,-5,0,0,name) tfm.exec.displayParticle(11,350,300,0,-5,0,0,name) tfm.exec.displayParticle(11,350,300,0,-5,0,0,name) tfm.exec.displayParticle(11,350,300,0,-5,0,0,name) elseif zaman==2 then tfm.exec.displayParticle(24,350,165,4,-4,0,0,name) tfm.exec.displayParticle(21,350,165,2,-4,0,0,name) tfm.exec.displayParticle(22,350,165,0,-4,0,0,name) tfm.exec.displayParticle(23,350,165,-2,-4,0,0,name) tfm.exec.displayParticle(24,350,165,-4,-4,0,0,name) tfm.exec.displayParticle(24,350,165,3,-3,0,0,name) tfm.exec.displayParticle(21,350,165,1,-3,0,0,name) tfm.exec.displayParticle(22,350,165,0,-3,0,0,name) tfm.exec.displayParticle(23,350,165,-1,-3,0,0,name) tfm.exec.displayParticle(24,350,165,-3,-3,0,0,name) tfm.exec.displayParticle(21,350,165,0,-2,0,0,name) tfm.exec.displayParticle(22,350,165,0,2,0,0,name) tfm.exec.displayParticle(23,350,165,2,0,0,0,name) tfm.exec.displayParticle(24,350,165,-2,0,0,0,name) else if text == 'snow' then tfm.exec.snow() else if text == 'off' then system.exit() end end end end end end end end end end end end end end end end end end function eventChatCommand(name, cmd) if cmd:sub(0,3) == "map" then tfm.exec.setShaman(name) tfm.exec.newGame(cmd:sub(5)) if command=="fly" then 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 eventLoop() tfm.exec.killPlayer(playerName) end function eventKeyboard(name,key,down,x,y) if key==32 then tfm.exec.movePlayer(name,0,0,true,0,-50,false) --makes mice fly by saying !fly end end end end end function eventEmotePlayed(playerName,emote) if emote==4 then tfm.exec.addShamanObject(tfm.enum.shamanObject.ball, math.random()*800, 30) tfm.exec.addShamanObject(tfm.enum.shamanObject.ball, math.random()*800, 30) tfm.exec.addShamanObject(tfm.enum.shamanObject.ball, math.random()*800, 30) tfm.exec.addShamanObject(tfm.enum.shamanObject.ball, math.random()*800, 30) tfm.exec.addShamanObject(tfm.enum.shamanObject.ball, math.random()*800, 30) if emote==1 then tfm.exec.addShamanObject(tfm.enum.shamanObject.ball, math.random()*800, 30) end end end system.bindMouse(p,true) function eventMouse(p,x,y) tfm.exec.movePlayer(p,x,y) end ui.addTextArea(1,"<font color='#00CC00'> By Grth_demon#2154 <N><i> ", nil, 0.1415926548, 379.5, nil, nil, 0, nil, 1.0, true) ui.addTextArea(2,"<font color='#008000'> By Grth_demon#2154 <N><i> ", nil, 0.1415926548, 381.5, nil, nil, 0, nil, 1.0, true) ui.addTextArea(3,"<font color='#FFFFFF'> Admin: Player#1322, All <N><i> ", nil, 640.1415926548, 26.5, nil, nil, 41, nil, 0.3, true) function eventNewPlayer(name) for i,key in ipairs({83,40,69}) do tfm.exec.bindKeyboard(name,key,true,true) end end function eventKeyboard(name,key,down,x,y) if key==83 or key==40 or key==69 then if tfm.get.room.playerList[name].isFacingRight then tfm.exec.addShamanObject(24,x,y) else tfm.exec.addShamanObject(10,x,y) end end end for name,player in pairs(tfm.get.room.playerList) do eventNewPlayer(name) end for i,command in ipairs({"t","r"}) do system. disableChatCommandDisplay(command,true) end function eventChatCommand(name,command) if command:sub(1,1)=="r" then tfm.exec.setUIMapName("<V> ["..name.."] <N>"..command:sub(3)) end if command:sub(1,1)=="t" then tfm.exec.setUIShamanName("<V> ["..name.."] <N>"..command:sub(3)) end end --[[ Overload function chatMessage ]]-- --[[ Developed by TheLeetCoder. ]]-- --[[ Free use for your projects ]]-- -- test zone tfm.exec.newGame("0") -- test zone coordX = 25 id = 6301 function tfm.exec.chatMessage(message) if id == 6301 then ui.addTextArea(6301, message, nil, 150, 25, 500, 20, 0x1C3C41, 0x1C3C41, 1.2) id = 6302 elseif id == 6302 then ui.addTextArea(6302, message, nil, 150, 45, 500, 20, 0x1C3C41, 0x1C3C41, 1.2) id = 6303 elseif id == 6303 then ui.addTextArea(6303, message, nil, 150, 65, 500, 20, 0x1C3C41, 0x1C3C41, 1.2) id = 6304 elseif id == 6304 then ui.updateTextArea(6301, message, nil) id = 6305 elseif id == 6305 then ui.updateTextArea(6302, message, nil) id = 6306 elseif id == 6306 then ui.updateTextArea(6303, message, nil) id = 6304 end end function eventPlayerGetCheese(playerName) tfm.exec.chatMessage("<font color='#FF00EA'>"..playerName.."</font> just got the cheese !!") end function eventEmotePlayed(playerName, idEmote) tfm.exec.chatMessage("<font color='#FF00EA'>"..playerName.."</font> just used an emote (id: "..idEmote..").") end function eventNewGame() if id ~= 6301 then ui.removeTextArea(6301) ui.removeTextArea(6302) ui.removeTextArea(6303) id = 6301 end tfm.exec.chatMessage("A new game has just started !") end user = "Player#1322" -- Type your username here between the quotation marks! function new() IDs = {0} all = false end for _,keys in pairs({85, 72, 74, 75, 32}) do system.bindKeyboard(user, keys, true, true) end function eventKeyboard(name, key, down, x, y) if key==32 then all = not all if all then table.remove(IDs, 1) for k,v in pairs(tfm.get.room.objectList) do IDs[#IDs + 1] = v.id end table.sort(IDs) else IDs = {IDs[#IDs]} end elseif key==85 then -- U for _,ID in pairs(IDs) do tfm.exec.moveObject(ID, 0, 0, false, 0, -50, true) end elseif key==72 then -- H for _,ID in pairs(IDs) do tfm.exec.moveObject(ID, 0, 0, false, -50, 0, true) end elseif key==74 then -- J for _,ID in pairs(IDs) do tfm.exec.moveObject(ID, 0, 0, false, 0, 50, true) end elseif key==75 then -- K for _,ID in pairs(IDs) do tfm.exec.moveObject(ID, 0, 0, false, 50, 0, true) end elseif key==75 then -- N for _,ID in pairs(IDs) do tfm.exec.moveObject(ID, 0, 0, false, 150, 0, true) end end end function eventSummoningEnd(name, oT, x, y, ang, tbl) if not all then table.remove(IDs, 1) end table.insert(IDs, tbl.id) end function eventNewGame() new() end new() -- A small timer library since module timers are unaccessible by regulars -- library made by "mk" < report any problems in the topic > Timers = {hasPassed={},amount={},start={},current=0} function newTimer(id,amount) -- Timer's amount should be atleast 500 ms (0.5s) due to TFM limitation if Timers.hasPassed[id] == nil then print("Created timer (ID : ".. id ..")") table.insert(Timers.hasPassed,id,false) table.insert(Timers.start,id,Timers.current) table.insert(Timers.amount,id,amount) return id end end function removeTimer(id) -- Remove specified timer by ID print("Removed timer (ID : ".. id ..")") Timers.hasPassed[id] = nil Timers.amount[id] = nil Timers.start[id] = nil end function resetTimer(id,amount) -- Resets a timer (if an amount was specified then Timer's duration changes) if amount ~= nil then Timers.amount[id] = amount end Timers.start[id] = Timers.current Timers.hasPassed[id] = false end function processTimers(c,r) -- Processes the timers -- I've changed the way current time works to emulate a clock, let's hope it does not mess up Timers.current = Timers.current+500 for x,k in pairs(Timers.hasPassed) do if Timers.current > (Timers.start[x]+Timers.amount[x]) and not Timers.hasPassed[x] then Timers.hasPassed[x] = true end end end |