×

Langue

Fermer
Atelier 801
  • Forums
  • Dev Tracker
  • Connexion
    • English Français
      Português do Brasil Español
      Türkçe Polski
      Magyar Română
      العربية Skandinavisk
      Nederlands Deutsch
      Bahasa Indonesia Русский
      中文 Filipino
      Lietuvių kalba 日本語
      Suomi עברית
      Italiano Česky
      Hrvatski Slovensky
      Български Latviešu
      Estonian
  • Langue
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • Moje minigry
1 / 2 › »
Moje minigry
Rohere
« Consul »
1393862220000
    • Rohere#0000
    • Profil
    • Derniers messages
    • Tribu
#1
  0
Tu podaje swoje różne minigry.

1. Masagion

Zadanie:

Zrzuć wszystkie myszki na mapce.

Moce:

Przyciąganie



Wady:

Musisz sam resetować mapę puszczając jeszcze raz.

Nie wygrywasz automatycznie (poprawiane).

Kod:

function eventChatCommand(nick,komd)
if komd=="!info" then
ui.addTextArea(0,"<Rohere;Witam w Masgpion zepchni wszystkie myszki i jest ser za całus!",nick,100,100,0,0,0x1c3c41,0x1c3c41)
elseif komd=="szam" then
tfm.exec.setShaman(nick)
end
end

function eventNewPlayer(name)
system.bindMouse(name, true)
end

function eventMouse(name, x, y)
tfm.exec.explosion(x, y, -10, 200, false)
tfm.exec.displayParticle(12, x, y, 0, 0, 0, 0, nil)
end

for name in pairs(tfm.get.room.playerList) do
eventNewPlayer(name)
end

tfm.exec.setNameColor("Rohere", 0xFF1900)
tfm.exec.setNameColor("Snajperrrrr", 0xFF1900)
system.disableChatCommandDisplay(komendy,true)
tfm.exec.disableAutoShaman(true)
tfm.exec.disableAutoNewGame(true)
tfm.exec.disableAutoTimeLeft(true)
tfm.exec.disableAutoScore(true)
tfm.exec.disableAfkDeath(true)
maps={4479038,521833,401421,541917,541928,541936,541943,527935,559634,559644,888052,878047,885641,770600,770656,772172,891472,589736,589800,589708,900012,901062,754380,901337,901411,907870,910078,1190467,1252043,1124380,1016258,1252299,1255902,1256808,986790,1285380,1271249,1255944,1255983,1085344,1273114,1276664,1279258,1286824,1280135,1280342,1284861,1287556,1057753,1196679,1288489,1292983,1298164,1298521,1293189,1296949,1308378,1311136,1314419,1314982,1318248,1312411,1312589,1312845,1312933,1313969,1338762,1339474,1349878,1297154,644588,1351237,1354040,1354375,1362386,1283234,1370578,1306592,1360889,1362753,1408124,1407949,1407849,1343986,1408028,1441370,1443416,1389255,1427349,1450527,1424739,869836,1459902,1392993,1426457,1542824,1533474,1561467,1563534,1566991,1587241,1416119,1596270,1601580,1525751,1582146,1558167,1420943,1466487,1642575,1648013,1646094,1393097,1643446,1545219,1583484,1613092,1627981,1633374,1633277,1633251,1585138,1624034,1616785,1625916,1667582,1666996,1675013,1675316,1531316,1665413,1681719,1699880,1688696,623770,1727243,1531329,1683915,1689533,1738601,3756146,912118,3326933,3722005,3566478,1456622,1357994,1985670,1884075,1708065,1700322,2124484,3699046,2965313,4057963,4019126,3335202,2050466}
tfm.exec.newGame(maps[math.random(#maps)])

function eventEmotePlayed(nick,id)
if id==3 then
tfm.exec.giveCheese(nick)
end
end

tfm.exec.snow()

local loopCount = 0
function eventLoop()
if loopCount == 0 then
tfm.exec.snow()
tfm.exec.snow()
end
loopCount = (loopCount + 1) % 100
end

function eventChatCommand(playerName,command)
if command=="szam" then
tfm.exec.setShaman(playerName)
end
end

function eventNewPlayer()
tfm.exec.bindKeyboard("Rohere",32,true)
end





Berek!

Łapiesz na X (czerwony nick goni)

maps = {"@650592","@4385075"}

tfm.exec.setGameTime(10)



function eventNewGame()
tfm.exec.newGame(maps[math.random(#maps)])
tfm.exec.setNameColor(players[math.random(#players)], 0xFF1900)
system.bindKeyboard(players[math.random(#players)],88,true,true)
ui.addTextArea(0,'<J><a href="event:pomoc">Pomoc',nick,5,190,0,20,0x1c3c41,0x1c3c41,1)
tfm.exec.setGameTime(30)
end

function eventTextAreaCallback(id,nick,klik)
if klik=="pomoc" then
ui.addPopup(0, 0, "Witaj w berku! <br><br>Gdy masz czerwony nick postaraj się przekazać czerwoność innej myszce z białym nickiem.<br>Jeśli masz biały nick, staraj się jak najprędzej uciekać!<br><br>X - gdy masz czerwony nick przekazujesz go za pomocą kliknięcia klawisza przy kimś<br><br><br>Kod : Rohere,Krzysiul,Rkubi<br><br>Pomysł : Rohere,Krzysiul<br><br>",nick, 292, 91, 200, true)
end
end

players = {}

for nick,player in pairs(tfm.get.room.playerList) do
table.insert(players,nick)
end


function eventKeyboard(nick,key,d,x,y)
for n,p in pairs(tfm.get.room.playerList) do
if key==88 and p.x>x-20 and p.x<x+20 and p.y>y-20 and p.y<y+20 and n~=nick then
system.bindKeyboard(n,88,true,true)
tfm.exec.setNameColor(n, 0xFF1900)
table.insert(czer,n)
table.invert(czer,nick)
system.bindKeyboard(nick,88,true,false)
tfm.exec.setNameColor(nick, 0xFFFFFF)
end
end
end



tfm.exec.disableAutoShaman(true)
tfm.exec.disableAutoScore(true)



function eventLoop(t,r)
if r<=0 then
tfm.exec.newGame(maps[math.random(#maps)])
tfm.exec.setNameColor(all, 0xFFFFFF)
end
end

Dernière modification le 1460731260000
Basterfeild
« Citoyen »
1393864140000
    • Basterfeild#0000
    • Profil
    • Derniers messages
#2
  0
Nie edytuj bo HTML wszystko zepsuje. (np cent to &cent po edycji) Skopiuj sobie w notatnik :)
Rohere
« Consul »
1393870200000
    • Rohere#0000
    • Profil
    • Derniers messages
    • Tribu
#3
  0
Basterfeild a dit :
Nie edytuj bo HTML wszystko zepsuje. (np cent to &amp;cent po edycji) Skopiuj sobie w notatnik :)

Wiem :/ dzienki.
Ouake
« Censeur »
1393878000000
    • Ouake#0000
    • Profil
    • Derniers messages
    • Tribu
#4
  0
Ta pomoc nie działa, bo definiujesz jedną funkcję dwukrotnie i po drugim wczytaniu ten pierwszy raz zostaje usunięty.
Czyli - przełóż zawartość jednej definicji do drugiej, na przykład z drugiej do pierwszej:
a dit :
function eventChatCommand(nick,komd)
if komd=="!info" then
ui.addTextArea(0,"<Rohere;Witam w Masgpion zepchni wszystkie myszki i jest ser za całus!",nick,100,100,0,0,0x1c3c41,0x1c3c41)
elseif komd=="szam" then
tfm.exec.setShaman(nick)
end
end

teraz tą drugą można usunąć i wszystko będzie działać jak należy.

Co do psucia się znaków "<" i "&" polecam zapisywać skrypty na komputerze chociażby w Notatniku i cały czas edytować zawartość tego pliku, a na forum tylko kopiuj, wklej.
Rohere
« Consul »
1393949040000
    • Rohere#0000
    • Profil
    • Derniers messages
    • Tribu
#5
  0
/Delete
Maikeru
« Citoyen »
1393959900000
    • Maikeru#1000
    • Profil
    • Derniers messages
    • Tribu
#6
  0
Rohere a dit :
Na szybko:

red={}
blue={}
function makeTeams()
local playerList={}
for name,player in pairs(tfm.get.room.playerList) do
table.insert(playerList,name)
end
for i=1,#playerList,1 do
local index=math.random(#playerList)
local name=playerList[index]
if i%2==0 then
table.insert(red,name)
else
table.insert(blue,name)
end
table.remove(playerList,index)
end
end

players = {}

for name,player in pairs(tfm.get.room.playerList) do
table.insert(players,name)
end

tfm.exec.setVampirePlayer(players[math.random(#players)])

function eventPlayerDied(name)
tfm.exec.respawnPlayer(name)
end

function eventChatCommand(n,c)
txt = c
end
function eventLoop()
ui.addTextArea(0, "&lt;font size='100'&gt;"..txt.."&lt;/font&gt;", nil, 20, 20, 900, 600, nil, nil, 0, false)
end
txt = 0

He...

Moze bys Wytlumaczyl o co chodzi?
Rohere
« Consul »
1394465280000
    • Rohere#0000
    • Profil
    • Derniers messages
    • Tribu
#7
  0
http://pastebin.com/W5cfXyFu Masagion
Roheretfm
« Citoyen »
1395252060000
    • Roheretfm#0000
    • Profil
    • Derniers messages
#8
  0
Mrmichas a dit :


Moze bys Wytlumaczyl o co chodzi?

Nie wiem.
Nicknamepll
« Citoyen »
1395259260000
    • Nicknamepll#0000
    • Profil
    • Derniers messages
    • Tribu
#9
  0
Roheretfm a dit :


Nie wiem.

Mhm... Robisz skrypt i nie wiesz o co w nim chodzi.
Kaskanatalia
« Citoyen »
1395332460000
    • Kaskanatalia#0000
    • Profil
    • Derniers messages
#10
  0
Rohere a dit :
Tu podaje swoje różne minigry.

1. Masagion

Zadanie:

Zrzuć wszystkie myszki na mapce.

Moce:

!szam stajesz się szamanem.

Emotka serca dostajesz ser.

Wady:

Musisz sam resetować mape puszczając jeszcze raz.

Nie wygrywasz ałtomatycznie (poprawiane).
Kod:

function eventChatCommand(nick,komd)
if komd=="!info" then
ui.addTextArea(0,"&lt;Rohere;Witam w Masgpion zepchni wszystkie myszki i jest ser za całus!",nick,100,100,0,0,0x1c3c41,0x1c3c41)
elseif komd=="szam" then
tfm.exec.setShaman(nick)
end
end

function eventNewPlayer(name)
system.bindMouse(name, true)
end

function eventMouse(name, x, y)
tfm.exec.explosion(x, y, -10, 200, false)
tfm.exec.displayParticle(12, x, y, 0, 0, 0, 0, nil)
end

for name in pairs(tfm.get.room.playerList) do
eventNewPlayer(name)
end

tfm.exec.setNameColor("Rohere", 0xFF1900)
tfm.exec.setNameColor("Snajperrrrr", 0xFF1900)
system.disableChatCommandDisplay(komendy,true)
tfm.exec.disableAutoShaman(true)
tfm.exec.disableAutoNewGame(true)
tfm.exec.disableAutoTimeLeft(true)
tfm.exec.disableAutoScore(true)
tfm.exec.disableAfkDeath(true)
maps={4479038,521833,401421,541917,541928,541936,541943,527935,559634,559644,888052,878047,885641,770600,770656,772172,891472,589736,589800,589708,900012,901062,754380,901337,901411,907870,910078,1190467,1252043,1124380,1016258,1252299,1255902,1256808,986790,1285380,1271249,1255944,1255983,1085344,1273114,1276664,1279258,1286824,1280135,1280342,1284861,1287556,1057753,1196679,1288489,1292983,1298164,1298521,1293189,1296949,1308378,1311136,1314419,1314982,1318248,1312411,1312589,1312845,1312933,1313969,1338762,1339474,1349878,1297154,644588,1351237,1354040,1354375,1362386,1283234,1370578,1306592,1360889,1362753,1408124,1407949,1407849,1343986,1408028,1441370,1443416,1389255,1427349,1450527,1424739,869836,1459902,1392993,1426457,1542824,1533474,1561467,1563534,1566991,1587241,1416119,1596270,1601580,1525751,1582146,1558167,1420943,1466487,1642575,1648013,1646094,1393097,1643446,1545219,1583484,1613092,1627981,1633374,1633277,1633251,1585138,1624034,1616785,1625916,1667582,1666996,1675013,1675316,1531316,1665413,1681719,1699880,1688696,623770,1727243,1531329,1683915,1689533,1738601,3756146,912118,3326933,3722005,3566478,1456622,1357994,1985670,1884075,1708065,1700322,2124484,3699046,2965313,4057963,4019126,3335202,2050466}
tfm.exec.newGame(maps[math.random(#maps)])

function eventEmotePlayed(nick,id)
if id==3 then
tfm.exec.giveCheese(nick)
end
end

tfm.exec.snow()

local loopCount = 0
function eventLoop()
if loopCount == 0 then
tfm.exec.snow()
tfm.exec.snow()
end
loopCount = (loopCount + 1) % 100
end

function eventChatCommand(playerName,command)
if command=="szam" then
tfm.exec.setShaman(playerName)
end
end

function eventNewPlayer()
tfm.exec.bindKeyboard("Rohere",32,true)
end



Ten wątek jest po to żeby nie było spamów np: Minigry dla wszystkich,Njlepsze minigry.

Tu piszecie swoje minigry.

super kocham was
Rohere
« Consul »
1395407460000
    • Rohere#0000
    • Profil
    • Derniers messages
    • Tribu
#11
  0
Roheretfm a dit :


Nie wiem.

To nie ja.
Ouake
« Censeur »
1395691080000
    • Ouake#0000
    • Profil
    • Derniers messages
    • Tribu
#12
  0
Masz nieco poprawione: (2 flaga)
a dit :
function eventChatCommand(nick,komd)
if komd=="info" then
ui.addTextArea(0,"<V>Rohere<N>\n\nWitam w Masagion. Zepchnij wszystkie myszki i jest ser za całus!",nick,100,100,n,n,0x1c3c41,0x1c3c41)
elseif komd=="szam" then
tfm.exec.setShaman(nick)
end
end

function eventNewPlayer(nick)
system.bindMouse(nick, true)
tfm.exec.bindKeyboard("Rohere",32,true)
end

function eventMouse(nick, x, y)
tfm.exec.explosion(x, y, -10, 200)
tfm.exec.displayParticle(12, x, y, 0, 0, 0, 0)
ui.removeTextArea(0,nick)
end

for nick in pairs(tfm.get.room.playerList) do
eventNewPlayer(nick)
end

tfm.exec.setNameColor("Rohere", 0xFF1900)
tfm.exec.setNameColor("Snajperrrrr", 0xFF1900)
system.disableChatCommandDisplay("info",true)
system.disableChatCommandDisplay("szam",true)
for v,k in pairs({"utoShaman","utoNewGame","utoTimeLeft","utoScore","fkDeath"}) do
tfm.exec["disableA"..k](true)
end
maps={4479038,521833,401421,541917,541928,541936,541943,527935,559634,559644,888052,878047,885641,770600,770656,772172,891472,589736,589800,589708,900012,901062,754380,901337,901411,907870,910078,1190467,1252043,1124380,1016258,1252299,1255902,1256808,986790,1285380,1271249,1255944,1255983,1085344,1273114,1276664,1279258,1286824,1280135,1280342,1284861,1287556,1057753,1196679,1288489,1292983,1298164,1298521,1293189,1296949,1308378,1311136,1314419,1314982,1318248,1312411,1312589,1312845,1312933,1313969,1338762,1339474,1349878,1297154,644588,1351237,1354040,1354375,1362386,1283234,1370578,1306592,1360889,1362753,1408124,1407949,1407849,1343986,1408028,1441370,1443416,1389255,1427349,1450527,1424739,869836,1459902,1392993,1426457,1542824,1533474,1561467,1563534,1566991,1587241,1416119,1596270,1601580,1525751,1582146,1558167,1420943,1466487,1642575,1648013,1646094,1393097,1643446,1545219,1583484,1613092,1627981,1633374,1633277,1633251,1585138,1624034,1616785,1625916,1667582,1666996,1675013,1675316,1531316,1665413,1681719,1699880,1688696,623770,1727243,1531329,1683915,1689533,1738601,3756146,912118,3326933,3722005,3566478,1456622,1357994,1985670,1884075,1708065,1700322,2124484,3699046,2965313,4057963,4019126,3335202,2050466}
tfm.exec.newGame(maps[math.random(#maps)])
tfm.exec.snow(1e9)

function eventEmotePlayed(nick,id)
if id==3 then
tfm.exec.giveCheese(nick)
end
end

Rohere
« Consul »
1395759960000
    • Rohere#0000
    • Profil
    • Derniers messages
    • Tribu
#13
  0
Thx Ouake.
Wikitikk
« Citoyen »
1395846360000
    • Wikitikk#0000
    • Profil
    • Derniers messages
    • Tribu
#14
  0
jak się wpisuje
Rohere
« Consul »
1395849420000
    • Rohere#0000
    • Profil
    • Derniers messages
    • Tribu
#15
  0
Wikitikk a dit :
jak się wpisuje

Piszesz /lua kopiujesz kod i wklejasz
Rohere
« Consul »
1397138280000
    • Rohere#0000
    • Profil
    • Derniers messages
    • Tribu
#16
  0
Delete

Dernière modification le 1449047580000
Rkubi
« Censeur »
1457818920000
    • Rkubi#0000
    • Profil
    • Derniers messages
    • Tribu
#17
  0
Ciekawe :p
Blackshinee
« Citoyen »
1457859540000
    • Blackshinee#0000
    • Profil
    • Derniers messages
#18
  0

Ciekawy pomysł..choć nie wiem,czy
do końca dopracowany.

Rohere
« Consul »
1457864640000
    • Rohere#0000
    • Profil
    • Derniers messages
    • Tribu
#19
  0
blackshinee a dit :

Ciekawy pomysł..choć nie wiem,czy
do końca dopracowany.


Ten wątek był dawno zakopany, może by tak go nie odkopywać?

Pierwszy kod z 2014 a drugi z 2016, i to są początkowe projekty które gdy mam czas dopracowuje

Dlatego trzymałem w zakopaniu tyle czasu żeby je dopracować tak, aby nie było hejterów

Dernière modification le 1457864880000
Blackshinee
« Citoyen »
1457866560000
    • Blackshinee#0000
    • Profil
    • Derniers messages
#20
  0
Rohere a dit :
blackshinee a dit :

Ciekawy pomysł..choć nie wiem,czy
do końca dopracowany.


Ten wątek był dawno zakopany, może by tak go nie odkopywać?

Pierwszy kod z 2014 a drugi z 2016, i to są początkowe projekty które gdy mam czas dopracowuje

Dlatego trzymałem w zakopaniu tyle czasu żeby je dopracować tak, aby nie było hejterów

Jak wolisz. c;

  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • Moje minigry
1 / 2 › »
© Atelier801 2018

Equipe Conditions Générales d'Utilisation Politique de Confidentialité Contact

Version 1.27