×

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
  • /
  • zamówienia na kody.
« ‹ 4 / 149 › »
zamówienia na kody.
Serfeuszka
« Consul »
1383846780000
    • Serfeuszka#0000
    • Profil
    • Derniers messages
    • Tribu
#61
  0
a mogłoby być jeszcze podmienione na balony, a nie cn jakoś? :D
Jufaster
« Citoyen »
1383847020000
    • Jufaster#0000
    • Profil
    • Derniers messages
#62
  0
Serfeuszka a dit :
a mogłoby być jeszcze podmienione na balony, a nie cn jakoś? :D

[quote=#Ballon]tfm.exec.disableAutoNewGame(true)
tfm.exec.disableAutoShaman(true)
players={}
toDespawn={}
maps={3,521255,4387463}
function eventNewPlayer(name)
for i,key in ipairs({32,40,83}) do
tfm.exec.bindKeyboard(name,key,true,true)
end
players[name]={
timestamp=os.time(),
offsets={x=2, y=10}
}
end
function eventKeyboard(name,key,down,x,y)
if (key==32 or key==40 or key==83) and not tfm.get.room.playerList[name].isDead and started then
if players[name].timestamp < os.time()-1000 then
local id
if tfm.get.room.playerList[name].isFacingRight then
id=tfm.exec.addShamanObject(28,x+players[name].offsets.x,y+players[name].offsets.y)
else
id=tfm.exec.addShamanObject(28,x+players[name].offsets.x,y+players[name].offsets.y)
end
players[name].timestamp=os.time()
table.insert(toDespawn,{os.time(),id})
end
end
end
function eventChatCommand(name,command)
local arg={}
for argument in command:gmatch("[^%s]+") do
table.insert(arg,argument)
end
if arg[1]=="off" then
if tonumber(arg[2]) and tonumber(arg[3]) then
players[name].offsets.x=tonumber(arg[2])
players[name].offsets.y=tonumber(arg[3])
else
players[name].offsets.x=2
players[name].offsets.y=10
end
tfm.exec.chatMessage("Offsets changed to X:"..players[name].offsets.x.." Y:"..players[name].offsets.y,name)
end
end
function eventNewGame()
started=false
end
function eventLoop(time,remaining)
if time >= 3000 and not started then
started=true
end
if remaining<=0 then
tfm.exec.newGame(maps[math.random(#maps)])
end
for i,balloon in ipairs(toDespawn) do
if balloon[1] <= os.time()-3000 then
tfm.exec.removeObject(balloon[2])
table.remove(toDespawn,i)
end
end
end
function eventPlayerDied(name)
local i=0
local n
for pname,player in pairs(tfm.get.room.playerList) do
if not player.isDead then
i=i+1
n=pname
end
end
if i==0 then
tfm.exec.newGame(maps[math.random(#maps)])
elseif i==1 then
tfm.exec.giveCheese(n)
tfm.exec.playerVictory(n)
tfm.exec.setGameTime(5)
end
end
for name,player in pairs(tfm.get.room.playerList) do
eventNewPlayer(name)
end
tfm.exec.newGame(maps[math.random(#maps)])[/quote]

'
Serfeuszka
« Consul »
1383847140000
    • Serfeuszka#0000
    • Profil
    • Derniers messages
    • Tribu
#63
  0
ok dzieki, a na strzelanie PRZED siebie, nie pod jest możliwe?
Jufaster
« Citoyen »
1383847140000
    • Jufaster#0000
    • Profil
    • Derniers messages
#64
  0
Serfeuszka a dit :
ok dzieki, a na strzelanie PRZED siebie, nie pod jest możliwe?

Nie umiem. :/
Woterek
« Citoyen »
1383847680000
    • Woterek#0000
    • Profil
    • Derniers messages
    • Tribu
#65
  0
Serfeuszka a dit :
ok dzieki, a na strzelanie PRZED siebie, nie pod jest możliwe?

kod a dit :

tfm.exec.disableAutoNewGame(true)
tfm.exec.disableAutoShaman(true)
players={}
toDespawn={}
maps={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}

function eventNewPlayer(name)
for i,key in ipairs({32,40,83}) do
tfm.exec.bindKeyboard(name,key,true,true)
end
players[name]={
timestamp=os.time(),
offsets={x=2, y=10}
}
end

function eventKeyboard(name,key,down,x,y)
if (key==32 or key==40 or key==83) and not tfm.get.room.playerList[name].isDead and started then
if players[name].timestamp < os.time()-1000 then
local id
if tfm.get.room.playerList[name].isFacingRight then
id=tfm.exec.addShamanObject(28,x+players[name].offsets.x,y+players[name].offsets.y,0,20)
else
id=tfm.exec.addShamanObject(28,x+players[name].offsets.x,y+players[name].offsets.y,0,-20)
end
players[name].timestamp=os.time()
table.insert(toDespawn,{os.time(),id})
end
end
end

function eventChatCommand(name,command)
local arg={}
for argument in command:gmatch("[^%s]+") do
table.insert(arg,argument)
end
if arg[1]=="off" then
if tonumber(arg[2]) and tonumber(arg[3]) then
players[name].offsets.x=tonumber(arg[2])
players[name].offsets.y=tonumber(arg[3])
else
players[name].offsets.x=2
players[name].offsets.y=10
end
tfm.exec.chatMessage("Offsets changed to X:"..players[name].offsets.x.." Y:"..players[name].offsets.y,name)
end
end

function eventNewGame()
started=false
end

function eventLoop(time,remaining)
if time >= 3000 and not started then
started=true
end
if remaining<=0 then
tfm.exec.newGame(maps[math.random(#maps)])
end
for i,cannon in ipairs(toDespawn) do
if cannon[1] <= os.time()-3000 then
tfm.exec.removeObject(cannon[2])
table.remove(toDespawn,i)
end
end
end

function eventPlayerDied(name)
local i=0
local n
for pname,player in pairs(tfm.get.room.playerList) do
if not player.isDead then
i=i+1
n=pname
end
end
if i==0 then
tfm.exec.newGame(maps[math.random(#maps)])
elseif i==1 then
tfm.exec.giveCheese(n)
tfm.exec.playerVictory(n)
tfm.exec.setGameTime(5)
end
end

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

tfm.exec.newGame(maps[math.random(#maps)])

;)
Woterek
« Citoyen »
1383848040000
    • Woterek#0000
    • Profil
    • Derniers messages
    • Tribu
#66
  0
Tomiek a dit :
Da sie zrobić coś takiego że gdzie klikne robi się mała kula z której nie można wyjść?

Wersja 1
Tworzenie kompanion boxa na klikniecie a dit :
function eventNewPlayer(name)
system.bindMouse (name, true)
end

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

function eventMouse(name, x, y)
tfm.exec.addShamanObject(61, x, y, 90, 0, 0, false)
end

Wersja 2
[quote=komenda !zamknij NICKGRACZA oraz !otworz NICKGRACZA z uzyciem companion boxa]function eventChatCommand(name, com)
if string.match(com, 'zamknij .+')then
local name = string.match(com, 'zamknij (.+)')
if tfm.get.room.playerList[name] then
local y = tfm.get.room.playerList[name].y
local x = tfm.get.room.playerList[name].x
zam = tfm.exec.addShamanObject(61, x, y, 90, 0, 0, false)
end
end
if string.match(com, 'otworz .+')then
local name = string.match(com, 'otworz (.+)')
if tfm.get.room.playerList[name] then
tfm.exec.removeObject(zam)
end
end
end[/quote]

Wersja 3 zrobiona przez Ouake'a
[quote=komenda !zamknij NICKGRACZA oraz !otworz NICKGRACZA z uzyciem eventLoop]
zam={}
x,y={},{}

for name in pairs(tfm.get.room.playerList) do
zam[name] = 0
end

function eventChatCommand(name, com)
sekw={}
for arg in com:gmatch("%S+") do
table.insert(sekw,arg)
end
for name in pairs(tfm.get.room.playerList) do
if sekw[1]=="zamknij" and sekw[2]==name then
zam[name] = 1
y[name] = tfm.get.room.playerList[name].y
x[name] = tfm.get.room.playerList[name].x
ui.addTextArea(0, '<R><font size="100">•<font><R>', name, x[name]-33, y[name]-70, nil, nil, 0, 0, 1)
end
if (sekw[1]=="otwórz" or sekw[1]=="otworz") and sekw[2]==name then
zam[name] = 0
ui.removeTextArea(0, name)
end
end
end

function eventLoop()
for name in pairs(tfm.get.room.playerList) do
if zam[name] == 1 then
tfm.exec.movePlayer(name, x[name], y[name], false, 0, 0, true)
end
end
end

[/quote]

;)
Dawidmdxpl
« Citoyen »
1383852240000
    • Dawidmdxpl#0000
    • Profil
    • Derniers messages
#67
  0
kod na automatyczne spawnowanie rzeczy raz na kilka sekund ?
Woterek
« Citoyen »
1383852900000
    • Woterek#0000
    • Profil
    • Derniers messages
    • Tribu
#68
  0
Dawidmdxpl a dit :
kod na automatyczne spawnowanie rzeczy raz na kilka sekund ?

Przydalo by sie wiecej szczegolow w sensie jakie przedmioty w jakich miejscach (moga byc losowe) co okolo jaki czas
Dawidmdxpl
« Citoyen »
1383932520000
    • Dawidmdxpl#0000
    • Profil
    • Derniers messages
#69
  0
tfm.exec.addShamanObject(10, math.random(4)*530, 10)
tfm.exec.addShamanObject(23, math.random(4)*740, 10)
tfm.exec.addShamanObject(18, math.random(4)*950, 10)

zrobisz żeby to sie spawnowało co 3 sekundy ?
Twojadz
« Citoyen »
1383932640000
    • Twojadz#0000
    • Profil
    • Derniers messages
    • Tribu
#70
  0
Jak się robi takie kody?
Ouake
« Censeur »
1383934680000
    • Ouake#0000
    • Profil
    • Derniers messages
    • Tribu
#71
  0
Zrobiłem taki kod, który tworzy wybrany obiekt w wybranym miejscu i co wybraną ilość czasu - co 0.5s, tylko tak się da, czyli 0.5s, 1s, 1.5s, itd.
a dit :
id,X,Y,T,t=0,400,200,1,1

ui.addTextArea(0,"id\t:<V>0\n<N>x\t:<V>400\n<N>y\t:<V>200\n<N>co\t:<V>0.5s <N>(t=<V>1<N>)",nil,20,30,100,0,0x1c3c41,0x1c3c41,0.5)

function eventChatCommand(nick,komd)
sekw={}
for arg in komd:gmatch("%S+") do
table.insert(sekw,arg)
end
if sekw[1]=="id" and tonumber(sekw[2])~=nil then
id=sekw[2]
elseif sekw[1]=="x" and tonumber(sekw[2])~=nil then
X=sekw[2]
elseif sekw[1]=="y" and tonumber(sekw[2])~=nil then
Y=sekw[2]
elseif sekw[1]=="t" and tonumber(sekw[2])==nil then
ui.addPopup(0,0,"Musisz wpisać liczbę.",nick,300,150,200)
elseif sekw[1]=="t" and tonumber(sekw[2])>0 then
T,t=tonumber(sekw[2]),1
end
ui.addTextArea(0,"id\t:<V>"..id.."\n<N>x\t:<V>"..X.."\n<N>y\t:<V>"..Y.."\n<N>co\t:<V>"..(T*0.5).."s <N>(t=<V>"..T.."<N>)",nil,20,30,100,0,0x1c3c41,0x1c3c41,0.5)
end

function eventLoop()
if T==t then
tfm.exec.addShamanObject(id,X,Y)
t=0
end
t=t+1
end

Obsługa:
'!id [id]' - wybiera obiekt
'!x [liczba]' - ustawia pozycję x obiektu
'!y [liczba]' - ustawia pozycję y obiektu
'!t [liczba]' - ustawia okres tworzenia obiektu, t*0.5s

Co do tych trzech:
a dit :
t=1

function eventLoop()
if t==6 then
tfm.exec.addShamanObject(10, math.random(4)*530, 10)
tfm.exec.addShamanObject(23, math.random(4)*740, 10)
tfm.exec.addShamanObject(18, math.random(4)*950, 10)
t=0
end
t=t+1
end

Tak ma być?
Serfeuszka
« Consul »
1383935460000
    • Serfeuszka#0000
    • Profil
    • Derniers messages
    • Tribu
#72
  0
gdy ktos napisze
!losowanie
wylania sie z losowym nickiem okienko
"nickgracza wygral/a!"
Ouake
« Censeur »
1383940200000
    • Ouake#0000
    • Profil
    • Derniers messages
    • Tribu
#73
  0
a dit :
function eventChatCommand(nick,komd)
if komd=="losowanie" then
lista={}
for nick in pairs(tfm.get.room.playerList) do
table.insert(lista,nick)
end
ui.addTextArea(1,"<p align='center'><V>"..(lista[math.random(#lista)]).." <N>wygrał/a!</p>",nil,200,100,150,0,0x1c3c41,0x1c3c41,0.5)
end
end

system.disableChatCommandDisplay("losowanie",true)

Podobno osoba, która była w pokoju i wyszła nadal może wygrać :P
Pookiewolf
« Citoyen »
1383990480000
    • Pookiewolf#0000
    • Profil
    • Derniers messages
#74
  0
Mógłbym poprosić (o ile się da) skrypt gdzie jak wpisze się np !2012 to są mapy z eventu z 2012 itd.
Migotka
« Consul »
1384013940000
    • Migotka#0095
    • Profil
    • Derniers messages
    • Tribu
#75
  0
Cześć! Mam taki mały kłopot, bo nie wiem jak można złaczyć trzy kody w jednym :&amp;lt;
O ile to jest w ogóle możliwe, to proszę o pomoc, bo ja kompletnie nie wiem jak się za to zabrać xD

Pierwszy kod na zamianę w wampira:
a dit :
function eventEmotePlayed(playerName,emote)
if emote==9 then
tfm.exec.setVampirePlayer(playerName)
end
end

Drugi na wyświetlenie komunikatu:
a dit :
function eventEmotePlayed(player, emote)
if emote == 3 then
ui.addTextArea(0, player .. " jest super! *-*")
end
end

I trzeci na latanie
a dit :
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 eventKeyboard(name,key)
if key == 32 then
tfm.exec.movePlayer(name,0,0,true,0,-50,true)
end
end

Z góry dzięki :)
Ouake
« Censeur »
1384015080000
    • Ouake#0000
    • Profil
    • Derniers messages
    • Tribu
#76
  0
Proszę:
a dit :
function eventEmotePlayed(name,emote)
if emote == 9 then
tfm.exec.setVampirePlayer(name)
elseif emote == 3 then
ui.addTextArea(0, name .. " jest super! *-*")
end
end

function eventChatCommand(name, com)
if string.match(com, 'zamknij .+')then
local name = string.match(com, 'zamknij (.+)')
if tfm.get.room.playerList[name] then
local y = tfm.get.room.playerList[name].y
local x = tfm.get.room.playerList[name].x
zam = tfm.exec.addShamanObject(61, x, y, 90, 0, 0, false)
end
end
if string.match(com, 'otworz .+')then
local name = string.match(com, 'otworz (.+)')
if tfm.get.room.playerList[name] then
tfm.exec.removeObject(zam)
end
end
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 eventKeyboard(name,key)
if key == 32 then
tfm.exec.movePlayer(name,0,0,true,0,-50,true)
end
end

Różnych funkcji nie da się połączyć, więc można tylko pierwsze z drugim. Zmieniłem pierwsze playerName na name, lepiej jak te same dane będą tak samo nazwane - przy różnych jest łatwo zrobić błąd.
Pookiewolf a dit :
Mógłbym poprosić (o ile się da) skrypt gdzie jak wpisze się np !2012 to są mapy z eventu z 2012 itd.

Jest możliwe, ale większy problem jest z mapami, trzeba je stworzyć :P (ja mam 3 mapki z eventów 2012r.)
Migotka
« Consul »
1384016880000
    • Migotka#0095
    • Profil
    • Derniers messages
    • Tribu
#77
  0
Ouake a dit :
Proszę:Różnych funkcji nie da się połączyć, więc można tylko pierwsze z drugim. Zmieniłem pierwsze playerName na name, lepiej jak te same dane będą tak samo nazwane - przy różnych jest łatwo zrobić błąd.Jest możliwe, ale większy problem jest z mapami, trzeba je stworzyć :P (ja mam 3 mapki z eventów 2012r.)

Dziękuję! ^u^
Chmurkaz
« Citoyen »
1384078080000
    • Chmurkaz#7119
    • Profil
    • Derniers messages
    • Tribu
#78
  0
Można tak zrobić ,że jak klikniesz 1 to klikając spacje skaczesz na sp 2 na balonach,3 na runach,4 na pudełkach,5 na dużych pudłach,6 na trampolinach,7 małych deskach,8 dużych deskach,9 na piłkach a 0 na losowych
Ouake
« Censeur »
1384099320000
    • Ouake#0000
    • Profil
    • Derniers messages
    • Tribu
#79
  0
a dit :
  •Chmurkaz:
A,vy,k,L,t={},{},{},{},{}
los={1,2,3,4,6,7,10,23,28,34,35,39,40,45,46,54,59,60,61}

function eventNewPlayer(nick)
tfm.exec.bindKeyboard(nick,32,true,true)
tfm.exec.bindKeyboard(nick,48,true,true)
tfm.exec.bindKeyboard(nick,49,true,true)
tfm.exec.bindKeyboard(nick,50,true,true)
tfm.exec.bindKeyboard(nick,51,true,true)
tfm.exec.bindKeyboard(nick,52,true,true)
tfm.exec.bindKeyboard(nick,53,true,true)
tfm.exec.bindKeyboard(nick,54,true,true)
tfm.exec.bindKeyboard(nick,55,true,true)
tfm.exec.bindKeyboard(nick,56,true,true)
tfm.exec.bindKeyboard(nick,57,true,true)
A[nick],vy[nick],k[nick],L[nick],t[nick]=0,0,0,0,0
end

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

function eventKeyboard(nick,klaw,wd,x,y)
if t[nick]==0 then
if klaw==32 and A[nick]~=0 then
if L[nick]==1 then
A[nick]=los[math.random(#los)]
end
tfm.exec.addShamanObject(A[nick],x,y+20,k[nick],0,vy[nick],k[nick])
elseif klaw==48 then
A[nick],L[nick],vy[nick]=5,1,-10
elseif klaw==49 then
A[nick],vy[nick]=24,0
elseif klaw==50 then
A[nick],vy[nick]=28,0
elseif klaw==51 then
A[nick],vy[nick],k[nick]=62,0,270
elseif klaw==52 then
A[nick],vy[nick]=1,-10
elseif klaw==53 then
A[nick],vy[nick]=2,-10
elseif klaw==54 then
A[nick],vy[nick]=7,-5
elseif klaw==55 then
A[nick],vy[nick]=3,-10
elseif klaw==56 then
A[nick],vy[nick]=4,-10
elseif klaw==57 then
A[nick],vy[nick]=6,-20
end
if klaw~=48 and klaw~=32 then
L[nick]=0
end
if klaw~=51 and klaw~=32 then
k[nick]=false
end
t[nick]=1
end
end

function eventLoop()
for nick in pairs(tfm.get.room.playerList) do
if t[nick]>0 then
t[nick]=0
end
end
end
Chmurkaz
« Citoyen »
1384101600000
    • Chmurkaz#7119
    • Profil
    • Derniers messages
    • Tribu
#80
  0
dzięki a można jeszcze do tego kodu dodać ,że jak wpiszesz !flufft plant to jako szaman robisz puchate deski (takie jak na retro)jak !transform plant to transform deski ( i zmowu takie jak na retro)snow plant to deski śnierzne itp.... i wpiszesz !envil (czy jakoś tak ) to spawnujesz kowadłowego potwora?

a jeśli z tym envil to niemorzliwe to tylko tamto :>
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • zamówienia na kody.
« ‹ 4 / 149 › »
© Atelier801 2018

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

Version 1.27