[Script] New Year's event module |
Evilsantah « Citoyen » 1402322040000
| 1 | ||
I thought this might be worth looking at if you're interested. It has some nice snippets of code, don't flame if some things are a bit confusing or sloppy (such as the firework trail). So yeah, here it is: http://pastebin.com/LzhrCtc8 You probably won't be able to run this as a normal player because of the timers and stuff but you can learn a few things from it I guess. This is pretty much a piece of art, with a lot of LUA people involved. Credits to Impuredeath for the original idea, map and background; Paperonaruto for help on math functions; Fierying for the art; Thewav for event-module stuff and Leafileaf for a snippet of code for timers. And me, welp. Boooo to Tigrounette for promising specific LUA functionality that would've made it better (with sound effects and rewards and such) but not keeping his promise. EDIT: Here's a script anyone can use. (without fancy timers though...) It is based on the script above. I used this to draw custom fireworks and you can test them live. http://pastebin.com/5PuTnD5r You should add your name in the drawers table, then you can use the followings things: - Click inside the box to add a particle - Click outside the box to fire! - Press Backspace to undo your last step - Press Del to clear all - Press M to mirror your drawing horizontally - Press Ctrl-M to mirror your drawing vertically - Press Space to print out the LUA table of the particles (this was used to create the 2014 fireworks) - Use !add Namemouse to give someone drawing ability. |
Enesxfbxpro « Censeur » 1402322160000
| 0 | ||
thanks... |
Bushmeister « Consul » 1402322760000
| 0 | ||
OMG thanks!!! |
Yteizz « Citoyen » 1402324200000
| 0 | ||
## You don't have the right to use this function (tfm.exec.addImage). :'( |
Evilsantah « Citoyen » 1402324200000
| 0 | ||
Here's a script anyone can use. (without fancy timers though...) It is based on the script above. I used this to draw custom fireworks and you can test them live. http://pastebin.com/5PuTnD5r You should add your name in the drawers table, then you can use the followings things: - Click inside the box to add a particle - Click outside the box to fire! - Press Backspace to undo your last step - Press Del to clear all - Press M to mirror your drawing horizontally - Press Ctrl-M to mirror your drawing vertically - Press Space to print out the LUA table of the particles (this was used to create the 2014 fireworks) - Use !add Namemouse to give someone drawing ability. |
0 | ||
## Init Error : Ediz.lua:274: [string "Arber.lua"]:44: '=' expected emmmmmmmmmm 44 is the GLITTERS = {0, 1, 2, 9, 11, 13} i dun see any probs with it :( becuse the 1-43 are useless things that dont screw lua scripts. |
0 | ||
No work in tribe house.... |
Techtriostep « Citoyen » 1402329060000
| 0 | ||
mann when this event came out everyone was so desperate for titles and items, all crazy with insults lol It was a nice event really and im glad it is brought back up.. well only if you fix it lol. |
Evilsantah « Citoyen » 1402346220000
| 0 | ||
@Yteizz, Dobrjik, Techtriostep: Read top post. @Arber line 44 is not even the GLITTERS... Both scripts work fine, just note that the full script doesn't work in tribe house. I've clearly stated that. |
0 | ||
Evilsantah a dit : well i said 44 is glitters for me because 1-43 are things i saved with -- nvm though its workig now :l |
Haneyt « Citoyen » 1402394100000
| 0 | ||
Thanks,this is perfect. |
Eliaseeg « Citoyen » 1402408680000
| 0 | ||
OMG Thank you o/!! |
Hasannj « Citoyen » 1402484580000
| 0 | ||
## Runtime Error : Hasannj.lua:610: attempt to compare nil with number |
Elyesou « Citoyen » 1403620440000
| 0 | ||
Doesn't work :c |
Papero « Citoyen » 1403842740000
| 0 | ||
Evilsantah a dit : I've totally forgotten how the trail functions worked... Been trying to reverse engineer it for some time already @_@ Dernière modification le 1403842800000 |