×

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
  • /
  • [Script] Lightning
« ‹ 2 / 4 › »
[Script] Lightning
Zutto
« Citoyen »
1399048140000
    • Zutto#4451
    • Profil
    • Derniers messages
    • Tribu
#21
  1
Mouldychesse a dit :
Cool!

Can you add two people's name?

http://pastebin.com/vvKGgcP1
Safwaan
« Citoyen »
1399199580000
    • Safwaan#0000
    • Profil
    • Derniers messages
#22
  0
AWESOME!!!!!!!!
Meltedfruit
« Citoyen »
1399293420000
    • Meltedfruit#0000
    • Profil
    • Derniers messages
    • Tribu
#23
  0
im the only one who doesn't knows how it works u.u
Deathnkight
« Citoyen »
1399353720000
    • Deathnkight#0000
    • Profil
    • Derniers messages
#24
  0
NICE MAN
Safwaan
1399564260000
    • Safwaan#0000
    • Profil
    • Derniers messages
#25
[Modéré par Katburger, raison : Spam]
Miiiiigu
« Citoyen »
1399659000000
    • Miiiiigu#0000
    • Profil
    • Derniers messages
    • Tribu
#26
  0
Blirilliant
Jjaakkee
« Citoyen »
1399666260000
    • Jjaakkee#0000
    • Profil
    • Derniers messages
#27
  0
Meltedfruit a dit :
im the only one who doesn't knows how it works u.u

You need particle effects on. You click somewhere and it makes a line of particles from where you were previously and where you clicked.
Stefyproxd
« Citoyen »
1399666680000
    • Stefyproxd#0000
    • Profil
    • Derniers messages
    • Tribu
#28
  0
I can change map 0?
Jjaakkee
« Citoyen »
1400431080000
    • Jjaakkee#0000
    • Profil
    • Derniers messages
#29
  0
How do you change the color of the particles?
Izaazie
« Citoyen »
1400711640000
    • Izaazie#0000
    • Profil
    • Derniers messages
#30
  0
## Init Error: null
I don't get it.
It's not working! I have my particle effects on, what do I do?
Jordy
« Consul »
1400712300000
    • Jordy#0015
    • Profil
    • Derniers messages
    • Tribu
#31
  0
Izaazie a dit :
## Init Error: null
I don't get it.
It's not working! I have my particle effects on, what do I do?

The script isn't causing that error, the lua api is currently broken.
Skynanners
« Citoyen »
1400849640000
    • Skynanners#0000
    • Profil
    • Derniers messages
    • Tribu
#32
  0
Extremly Brilliant!
Williamkang
« Citoyen »
1402178940000
    • Williamkang#0000
    • Profil
    • Derniers messages
#33
  0
I put the lua on Daisyroxs and this happend

## [Williamkang] Lua script loaded in 1 ms (4000 max)
Thanks to Williamkang, we gathered 0 cheese!
You're the shaman! Help your disciples to get the cheese!
[18:02] [Williamkang] Mlp you can use it now
[18:02] [Mlpfangirl] lol
[18:02] [Williamkang] Daisy wait
## [Williamkang] Lua script loaded in 2 ms (4000 max)
Thanks to Williamkang, we gathered 0 cheese!
Mlpfangirl is now your shaman, follow her!
[18:02] [Williamkang] Daisy
[18:03] [Williamkang] clikc on the cheese
[18:03] [Williamkang] click
## Warning : Runtime can't exceed 40 ms in 4 seconds ! Currently : 40 ms.
Event eventMouse : 4 ms
Event eventMouse : 9 ms
Event eventMouse : 5 ms
Event eventMouse : 3 ms
Event eventMouse : 2 ms
Event eventMouse : 1 ms
Event eventMouse : 1 ms
Event eventMouse : 1 ms
Event eventMouse : 3 ms
Event eventMouse : 5 ms
Event eventMouse : 6 ms
Kendlelite just connected.
• [18:03] Kendlelite just connected.
Thanks to Mlpfangirl, we gathered 0 cheese!


What's with
## Warning : Runtime can't exceed 40 ms in 4 seconds ! Currently : 40 ms.
Event eventMouse : 4 ms
Event eventMouse : 9 ms
Event eventMouse : 5 ms
Event eventMouse : 3 ms
Event eventMouse : 2 ms
Event eventMouse : 1 ms
Event eventMouse : 1 ms
Event eventMouse : 1 ms
Event eventMouse : 3 ms
Event eventMouse : 5 ms
Event eventMouse : 6 ms
Grimrice
« Citoyen »
1406162520000
    • Grimrice#0000
    • Profil
    • Derniers messages
    • Tribu
#34
  0
Anyway to make it stay in your tribe house map?? its such a good script but sucks to be only for 2 mins.
Rosuuri
« Censeur »
1406175120000
    • Rosuuri#5639
    • Profil
    • Derniers messages
#35
  0
It worked in all, but the map is literally like 5 seconds... then switches back to the normal tribe house map
Wecwec
« Citoyen »
1406395560000
    • Wecwec#0000
    • Profil
    • Derniers messages
    • Tribu
#36
  0
Grimrice a dit :
Anyway to make it stay in your tribe house map?? its such a good script but sucks to be only for 2 mins.

Rosuuri a dit :
It worked in all, but the map is literally like 5 seconds... then switches back to the normal tribe house map

To avoid changing the map/refreshing the map every time you play it remove the

tfm.exec.newGame(0)
tfm.exec.disableAutoNewGame(true)

from the end of the script. Then change the username at the top to yours, load it in and you're good.
Hydroperhy
« Citoyen »
1406418960000
    • Hydroperhy#0000
    • Profil
    • Derniers messages
    • Tribu
#37
  0
OMG! Thankss FinalNova! Congratulationssss!
Grimrice
« Citoyen »
1408319220000
    • Grimrice#0000
    • Profil
    • Derniers messages
    • Tribu
#38
  0
Wecwec a dit :
Grimrice a dit :
Anyway to make it stay in your tribe house map?? its such a good script but sucks to be only for 2 mins.

Rosuuri a dit :
It worked in all, but the map is literally like 5 seconds... then switches back to the normal tribe house map

To avoid changing the map/refreshing the map every time you play it remove the

tfm.exec.newGame(0)
tfm.exec.disableAutoNewGame(true)

from the end of the script. Then change the username at the top to yours, load it in and you're good.

Where on the top do i enter my username
Wolfclawgem
« Citoyen »
1411103520000
    • Wolfclawgem#0000
    • Profil
    • Derniers messages
    • Tribu
#39
  0
None of the scripts are working for me!!!!!!!!!!! UGH! I have the dumb map where there is a platform in the sky and the shaman has to build to help the mice and the tribe house never changed ever and it doesn't work for lua either! NOT EVEN CODES!!!!
Dreamingmous
« Citoyen »
1411127880000
    • Dreamingmous#0000
    • Profil
    • Derniers messages
    • Tribu
#40
  0
wtf?

I wrote:
Dreamingmous = "Finalnova"

for i=0,200 do
tfm.exec.bindKeyboard(username,i,true,true)
end

system.bindMouse(username,true)

function randomId()

local idHolder = {0,1,9}
return idHolder[math.random(0,#idHolder)]

end

function eventMouse(n,x,y)

local p = tfm.get.room.playerList[n]
drawLightining(p.x,p.y,x,y,randomId())
drawLightining(p.x,p.y,x,y,randomId())
drawLightining(p.x,p.y,x,y,randomId())
tfm.exec.movePlayer(n,x,y)

end

function eventKeyboard(n,k,d,x,y)

local p = tfm.get.room.playerList[n]
p.x = x
p.y = y

end

move = 3
ms = move/20
ma = ms/1200

function drawLine(x1,y1,x2,y2,spaces,id)

id = id or 9
spaces = spaces or 3


local distance = getDistance(x1,y1,x2,y2)
local numOfParticles = math.floor(distance/spaces)
local angle = getAngle(x1,y1,x2,y2)
for i=0,numOfParticles do

local dotX = x1+math.cos(angle)*(i*spaces)
local dotY = y1+math.sin(angle)*(i*spaces)
tfm.exec.displayParticle(id,dotX,dotY,math.random()*ms-ms/2,math.random()*ms-ms/2,math.random()*ma-ma/2,math.random()*ma-ma/2)

end

end

function getDistance(x1,y1,x2,y2)

return math.sqrt(math.abs(x1-x2)^2+math.abs(y1-y2)^2)

end

function getAngle(x1,y1,x2,y2)

return math.atan2(y2-y1,x2-x1)

end

function radToDeg(i)

i = i*180/math.pi
i = i<0 and i+360 or i
return i

end

function degToRad(i)

return i*math.pi/180

end


function drawLightining(x1,y1,x2,y2,id)

local ang = getAngle(x1,y1,x2,y2)
local dis = getDistance(x1,y1,x2,y2)
local rd = function() return math.random()*25+25 end
local ra = function() return math.pi/(math.random()*120+30) end
local wave = {}
local addWave = function(k,xx,yy) wave[k] = {x=xx,y=yy} end

--------------------------------------

addWave(0,x1,y1)
local td = 0
local randomDistance = rd()
local randomAngle = ra()*((dis-td)/100)
local zigZag = math.random()<0.5 and 1 or -1
local ca = ang + randomAngle*zigZag


while randomDistance<dis-td do

td = td + randomDistance

local tx = x1+math.cos(ca)*td
local ty = y1+math.sin(ca)*td

addWave(#wave+1,tx,ty)

randomDistance = rd()
randomAngle = ra()*((dis-td)/100)
zigZag = zigZag * -1
ca = ang + randomAngle*zigZag

end

addWave(#wave+1,x2,y2)

for i=0,#wave-1 do

local cw = wave
local nw = wave[i+1]
drawLine(cw.x,cw.y,nw.x,nw.y,3,id)

end


end
tfm.exec.newGame(0)
tfm.exec.disableAutoNewGame(true)


And this happened:
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] tfm.exec.bindKeyboard : argument 1 can't be NIL.
[Lua] # [*Rockin Cuties] system.bindMouse : argument 1 can't be NIL.


Have I done something wrong? ;-;
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • [Script] Lightning
« ‹ 2 / 4 › »
© Atelier801 2018

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

Version 1.27